Trying to build OpenCV 2.4.1 with OpenGL support

后端 未结 6 1568
北恋
北恋 2020-12-16 02:08

I am trying to build OpenCV 2.4.1 with OpenGL support, and it keeps faling. I have OpenGL installed in my Ubuntu 11.04, libs are under /usr/lib/libGL.so as usual. I know my

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-16 02:41

    I couldn't get the WITH_OPENGL flag to show up in my openCV 2.4.3 CMake options (I am running on a Mac - Snow Leopard 10.6.8)... I finally got it working by just opening up CMakeLists.txt and editing line 128 to:

    OCV_OPTION(WITH_OPENGL "Include OpenGL support" ON)

    Then run your CMake configurator/generator and it should build.

提交回复
热议问题