c++ - Error when compiling OpenCV for Qt -
in order use opencv in qt, have compile mingw cmake.
software following:
- qt 5.4.0
- opencv 2.4.11
- cmake 3.2.2
- mingw version unknown, gcc 4.8.1
a fatal error occurred when make file , have no idea how solve @ all.
[ 29%] automatic moc target opencv_highgui generating moc_window_qt.cpp exit code 0xc000007b autogen: error: process c:/opencvbuild/modules/highgui/moc_window_qt.cpp failed: exit code 0xc000007b moc failed... modules\highgui\cmakefiles\opencv_highgui_automoc.dir\build.make:48: recipe target 'modules/highgui/cmakefiles/opencv_highgui_automoc' failed mingw32-make[2]: *** [modules/highgui/cmakefiles/opencv_highgui_automoc] error 1 cmakefiles\makefile2:2066: recipe target 'modules/highgui/cmakefiles/opencv_highgui_automoc.dir/all' failed mingw32-make[1]: *** [modules/highgui/cmakefiles/opencv_highgui_automoc.dir/all] error 2 makefile:145: recipe target 'all' failed mingw32-make: *** [all] error 2
these messages shown in cmd.
then revised cmakelists.txt, set(cmake_automoc off)
modules\highgui\cmakefiles\opencv_highgui_automoc.dir\build.make:64: recipe target 'modules/highgui/qrc_window_qt.cpp' failed
does know solution?
2 items try.
try running
make
verbose=1
increase output on makefile. should give better idea of wrong.try running
cmake-gui
, turn on advanced mode check out cmake found different qt5 dependencies. on mac, install latest qt home directory, causing me have manually set variables. looks me.
hopefully provides useful information.
Comments
Post a Comment