未使用OpenGL编译OpenCV

未使用OpenGL编译OpenCV,opencv,opengl,Opencv,Opengl,我正在尝试在OpenCV视频流上渲染OpenGL图形,但当我运行程序时,出现以下错误: libc++abi.dylib: terminating with uncaught exception of type cv::Exception: OpenCV(4.4.0) /tmp/opencv-20200909-20320-7icpjn/opencv-4.4.0/modules/highgui/src/window.cpp:478: error: (-218:No OpenGL support) T

我正在尝试在OpenCV视频流上渲染OpenGL图形,但当我运行程序时,出现以下错误:

libc++abi.dylib: terminating with uncaught exception of type cv::Exception: OpenCV(4.4.0) /tmp/opencv-20200909-20320-7icpjn/opencv-4.4.0/modules/highgui/src/window.cpp:478: error: (-218:No OpenGL support) The library is compiled without OpenGL support in function 'cvSetOpenGlContext'
我目前使用的是Mac电脑,我看到的每个解决方案都与Linux相关。感谢您的帮助