Build fails with WITH_OPENGL=ON (Bug #3568)
Description
cmake was run as follows:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D BUILD_DOCS=ON -D BUILD_EXAMPLES=ON -D BUILD_TESTS=ON -D BUILD_PERF_TESTS=ON -D BUILD_opencv_python=ON -D WITH_OPENGL=ON /home/arun/opencv/opencv
make fails then:
[ 92%] Building CXX object samples/cpp/CMakeFiles/example_qt_opengl.dir/Qt_sample/qt_opengl.cpp.o
/home/arun/opencv/opencv/samples/cpp/Qt_sample/qt_opengl.cpp: In function ‘int main()’:
/home/arun/opencv/opencv/samples/cpp/Qt_sample/qt_opengl.cpp:216:47: error: ‘CV_WINDOW_FREERATIO’ was not declared in this scope
/home/arun/opencv/opencv/samples/cpp/Qt_sample/qt_opengl.cpp:235:5: error: ‘CvPOSITObject’ was not declared in this scope
/home/arun/opencv/opencv/samples/cpp/Qt_sample/qt_opengl.cpp:235:20: error: ‘positObject’ was not declared in this scope
/home/arun/opencv/opencv/samples/cpp/Qt_sample/qt_opengl.cpp:235:95: error: ‘cvCreatePOSITObject’ was not declared in this scope
/home/arun/opencv/opencv/samples/cpp/Qt_sample/qt_opengl.cpp:251:109: error: ‘cvPOSIT’ was not declared in this scope
/home/arun/opencv/opencv/samples/cpp/Qt_sample/qt_opengl.cpp:256:23: error: ‘CV_CAP_PROP_POS_AVI_RATIO’ was not declared in this scope
/home/arun/opencv/opencv/samples/cpp/Qt_sample/qt_opengl.cpp:262:38: error: ‘cvReleasePOSITObject’ was not declared in this scope
Looks like old code that uses depricated API.
I'm willing to clean it up - any pointers on what happened to the POSIT algorithm used in qt_opengl.cpp?
Also I must say it is a high priority issue - is it that build testing is not done with OpenGL enabled?
Associated revisions
Fixed Bug #3568: Build fails with WITH_OPENGL=ON
Merge pull request #3568 from ilya-lavrenov:neon_runtime
History
Updated by Alexander Smorkalov about 11 years ago
- Difficulty set to Easy
- Assignee deleted (
Kirill Kornyakov) - Target version set to 3.0-alpha
Updated by Arun JVS about 11 years ago
Sorry for being a noob.
Figured that out. Missing header and some constants changed.
PR Here: https://github.com/Itseez/opencv/pull/2412
Updated by Arun JVS about 11 years ago
- Assignee set to Arun JVS
- % Done changed from 0 to 90
Updated by Alexander Smorkalov about 11 years ago
- Status changed from New to Done
Updated by Roman Donchenko about 11 years ago
is it that build testing is not done with OpenGL enabled?
Yes, unfortunately. I gotta do something about that, because that sample has been a thorn in my side for quite some time now.
- Pull request set to https://github.com/Itseez/opencv/pull/2412
Updated by Arun JVS about 11 years ago
- % Done changed from 90 to 100