7009 compile error: multiple definition of `cvCreateOpenGLCallback' window_QT.cpp window.cpp (Bug #1485)
Description
compiling on ubuntu 11.10 x64
[ 19%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_tiff.cpp.o [ 19%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_base.cpp.o [ 19%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_png.cpp.o Linking CXX shared library ../../lib/libopencv_highgui.so CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o: In function @cvCreateOpenGLCallback': window_QT.cpp:(.text.cvCreateOpenGLCallback+0x0): multiple definition of @cvCreateOpenGLCallback' CMakeFiles/opencv_highgui.dir/src/window.cpp.o:window.cpp:(.text.cvCreateOpenGLCallback+0x0): first defined here collect2: ld returned 1 exit status maker2: *** [lib/libopencv_highgui.so.2.3.2] Error 1 maker1: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make: *** [all] Error 2
my config is
-- Extracting svn version, please wait... -- SVNVERSION: svn:7009 -- Detected version of GNU GCC: 46 (406) -- checking for module 'libdc1394-2' -- package 'libdc1394-2' not found -- checking for module 'libdc1394' -- package 'libdc1394' not found -- NOT OPENCV_BUILD_3RDPARTY_LIBS ************************************************** -- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) -- Use [[NumPy]] headers from: /usr/lib/pymodules/python2.7/numpy/core/include Traceback (most recent call last): File "<string>", line 1, in <module> [[ImportError]]: No module named sphinx -- Parsing 'cvconfig.h.cmake' -- -- General configuration for opencv 2.3.2 ===================================== -- -- Built as dynamic libs?: YES -- Compiler: /usr/bin/c++ -- C++ flags (Release): -Wall -Wno-long-long -pthread -ffunction-sections -O3 -DNDEBUG -fomit-frame-pointer -msse -msse2 -msse3 -DNDEBUG -- C++ flags (Debug): -Wall -Wno-long-long -pthread -ffunction-sections -g -O0 -DDEBUG -D_DEBUG -ggdb3 -- Linker flags (Release): -- Linker flags (Debug): -- -- GUI: -- QT 4.x: YES -- QT [[OpenGL]] support: YES -- [[OpenGL]] support: NO -- -- Media I/O: -- ZLib: TRUE -- JPEG: TRUE -- PNG: TRUE -- TIFF: build -- JPEG 2000: TRUE -- [[OpenEXR]]: NO -- [[OpenNI]]: NO -- [[OpenNI]] PrimeSensor Modules: NO -- XIMEA: NO -- -- Video I/O: -- DC1394 1.x: NO -- DC1394 2.x: NO -- FFMPEG: YES -- codec: YES -- format: YES -- util: YES -- swscale: YES -- gentoo-style: YES -- GStreamer: YES -- [[UniCap]]: NO -- [[PvAPI]]: NO -- V4L/V4L2: Using libv4l -- Xine: NO -- -- Other third-party libraries: -- Use IPP: NO -- Use TBB: YES -- Use [[ThreadingFramework]]: NO -- Use Cuda: NO -- Use Eigen: NO -- -- Python interpreter: /usr/bin/python2.7 -B (ver 2.7) -- -- Interfaces: -- Python: YES -- Python numpy: YES -- Java: NO -- -- Documentation: -- Sphinx: NO -- [[PdfLaTeX]] compiler: NO -- Build Documentation: NO -- -- Tests and samples: -- Tests: YES -- Performance tests: YES -- Examples: YES -- -- Install path: /usr/local -- -- cvconfig.h is in: /home/devel/openCV/build/7009 -- -----------------------------------------------------------------
other possibly (but probably not) useful stuff from ccmake:
ENABLE_SSE ON ENABLE_SSE2 ON ENABLE_SSE3 ON ENABLE_SSE41 OFF ENABLE_SSE42 OFF ENABLE_SSSE3 OFF
unrelated: i have BUILD_DOCS ON, so i'm not sure why it says under Documentation that it's not doing Build Documentation.
Associated revisions
Merge pull request #1485 from vpisarev:ipp_fixes
History
Updated by synth - over 13 years ago
re:
unrelated: i have BUILD_DOCS ON, so i'm not sure why it says under Documentation that it's not doing Build Documentation.
nevermind, i got documentation to build by installing Sphinx in python along with: texlive-latex-recommended, texlive-latex-extra, texlive-fonts-recommended
but the compile issue on lunix x64 WITH_QT ON is unresolved
Updated by Andrey Kamaev about 13 years ago
The problem seems to be already fixed in trunk.
- Status changed from Open to Done
- (deleted custom field) set to fixed
Updated by Andrey Kamaev about 13 years ago
- Target version set to 2.4.0
Updated by Andrey Kamaev over 12 years ago
- Category changed from highgui-images to highgui-gui