I turned on WITH_OPENGL using CMake, and rebuild the project. imshow() reports runtime error. How can I fix this problem??
include <opencv2 opencv.hpp="">
int main(int argc, const char * argv[]) { cv::Mat I = cv::imread("D:/PyramidPattern.jpg"); cv::imshow("test",I); return 0; }
runtime error: OpenCV Error: OpenGL API call (Can't load OpenGL extension [glGenerateMipmap]) i n unknown function, file C:\OpenCV\modules\core\src\gl_core_3_1.cpp, line 141