我跟随this链接构建opencv以便与QtCreator一起使用,程序顺利地调用mingw32-make
命令,这会产生此错误:
[ 2%] Built target zlib
[ 5%] Built target libtiff
[ 9%] Built target libjpeg
[ 12%] Built target libjasper
[ 14%] Built target libpng
[ 20%] Built target IlmImf
[ 20%] Built target opencv_core_pch_dephelp
[ 20%] Built target pch_Generate_opencv_core
[ 23%] Built target opencv_core
[ 24%] Built target opencv_ts_pch_dephelp
[ 24%] Built target pch_Generate_opencv_ts
[ 25%] Automatic moc for target opencv_highgui
[ 25%] Built target opencv_highgui_automoc
[ 25%] Automatic moc for target opencv_highgui_pch_dephelp
[ 25%] Built target opencv_highgui_pch_dephelp_automoc
[ 25%] Built target opencv_highgui_pch_dephelp
[ 25%] Built target pch_Generate_opencv_highgui
[ 26%] Built target opencv_imgproc_pch_dephelp
[ 26%] Built target pch_Generate_opencv_imgproc
[ 29%] Built target opencv_imgproc
Linking CXX shared library ..\..\bin\libopencv_highgui249d.dll
modules\highgui\CMakeFiles\opencv_highgui.dir\build.make:690: recipe for target 'bin/libopencv_highgui249d.dll' failed
CMakeFiles\Makefile2:2026: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
makefile:136: recipe for target 'all' failed
我尝试过使用opencv 2.4.10和2.4.9,我得到了同样的错误。我试过cmake版本3.1.3和3.2.2并且没有改变。 我的Qt版本是:Qt Creator 2.8.1基于Qt 5.1.1(MSVC 2010,32位)。
有人可以建议我尝试别的吗?
由于