Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv build w qt

Dears,

I'm trying to build OpenCV WITH_QT, at WIndows 7 64bit using MinGW. Linking ends with error:

Scanning dependencies of target opencv_highgui
[ 40%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window.cpp.obj
[ 40%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.obj
[ 40%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/qrc_window_QT.cpp.obj
[ 40%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/opencv_highgui_automoc.cpp.obj
[ 40%] Linking CXX shared library ..\..\bin\libopencv_highgui300.dll
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.cpp.obj):window_QT.cpp:(.text$_ZN11GuiReceiverD2Ev+0x27): undefined reference
to `_imp___ZN7QObjectD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.cpp.obj):window_QT.cpp:(.text$_ZN11GuiReceiverD2Ev+0x3a): undefined reference
to `_imp___ZN7QObjectD2Ev'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: CMakeFiles\opencv_highgui.dir/objects.a(window_QT.cpp.obj): bad reloc address 0x3a in section `.text$_ZN11GuiReceiverD2Ev'
collect2.exe: error: ld returned 1 exit status
modules\highgui\CMakeFiles\opencv_highgui.dir\build.make:203: recipe for target 'bin/libopencv_highgui300.dll' failed
mingw32-make[2]: *** [bin/libopencv_highgui300.dll] Error 1
CMakeFiles\Makefile2:4908: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
mingw32-make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

I'm not yet familiar with OpenCV yet so I'm looking for any idea what problem might be?

Thank you very much.

Regards,

Peter

opencv build w with qt

Dears,

I'm trying to build OpenCV WITH_QT, at WIndows 7 64bit using MinGW. Linking ends with error:

Scanning dependencies of target opencv_highgui
[ 40%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window.cpp.obj
[ 40%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.obj
[ 40%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/qrc_window_QT.cpp.obj
[ 40%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/opencv_highgui_automoc.cpp.obj
[ 40%] Linking CXX shared library ..\..\bin\libopencv_highgui300.dll
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.cpp.obj):window_QT.cpp:(.text$_ZN11GuiReceiverD2Ev+0x27): undefined reference
to `_imp___ZN7QObjectD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.cpp.obj):window_QT.cpp:(.text$_ZN11GuiReceiverD2Ev+0x3a): undefined reference
to `_imp___ZN7QObjectD2Ev'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: CMakeFiles\opencv_highgui.dir/objects.a(window_QT.cpp.obj): bad reloc address 0x3a in section `.text$_ZN11GuiReceiverD2Ev'
collect2.exe: error: ld returned 1 exit status
modules\highgui\CMakeFiles\opencv_highgui.dir\build.make:203: recipe for target 'bin/libopencv_highgui300.dll' failed
mingw32-make[2]: *** [bin/libopencv_highgui300.dll] Error 1
CMakeFiles\Makefile2:4908: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
mingw32-make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

I'm not yet familiar with OpenCV yet so I'm looking for any idea what problem might be?

Thank you very much.

Regards,

Peter