Ask Your Question

Revision history [back]

Build opencv

Hi. Today I'm trying to compile OpenCV on a Windows Xp machine with mingw32. At the 91% of the process I obtain this error:

global_motion.cpp.obj [ 89%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ gpumat.cpp.obj [ 89%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ hough.cpp.obj [ 89%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ imgproc.cpp.obj [ 89%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ labeling.cpp.obj [ 89%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ nvidia.cpp.obj [ 89%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ objdetect.cpp.obj [ 89%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ opengl.cpp.obj [ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ optflow.cpp.obj [ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ precomp.cpp.obj [ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ pyramids.cpp.obj [ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ remap.cpp.obj [ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ resize.cpp.obj [ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ stream.cpp.obj [ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ threshold.cpp.obj [ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ video.cpp.obj [ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ warp_affine.cpp.obj [ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_ warp_perspective.cpp.obj Linking CXX executable ....\bin\RELEASEopencv_test_gpu.exe [ 90%] Built target opencv_test_gpu [ 90%] Generating opencv_nonfree_pch_dephelp.cxx Scanning dependencies of target opencv_nonfree_pch_dephelp [ 90%] Building CXX object modules/nonfree/CMakeFiles/opencv_nonfree_pch_dephelp .dir/opencv_nonfree_pch_dephelp.cxx.obj Linking CXX static library ....\lib\libopencv_nonfree_pch_dephelp.a [ 90%] Built target opencv_nonfree_pch_dephelp Scanning dependencies of target pch_Generate_opencv_nonfree [ 90%] Generating precomp.hpp [ 90%] Generating precomp.hpp.gch/opencv_nonfree_Release.gch [ 90%] Built target pch_Generate_opencv_nonfree Scanning dependencies of target opencv_nonfree [ 90%] Building CXX object modules/nonfree/CMakeFiles/opencv_nonfree.dir/src/non free_init.cpp.obj [ 90%] Building CXX object modules/nonfree/CMakeFiles/opencv_nonfree.dir/src/pre comp.cpp.obj [ 90%] Building CXX object modules/nonfree/CMakeFiles/opencv_nonfree.dir/src/sif t.cpp.obj [ 90%] Building CXX object modules/nonfree/CMakeFiles/opencv_nonfree.dir/src/sur f.cpp.obj [ 90%] Building CXX object modules/nonfree/CMakeFiles/opencv_nonfree.dir/src/sur f.ocl.cpp.obj [ 90%] Building CXX object modules/nonfree/CMakeFiles/opencv_nonfree.dir/src/sur f_gpu.cpp.obj Linking CXX shared library ....\bin\libopencv_nonfree246.dll Creating library file: ....\lib\libopencv_nonfree246.dll.a [ 90%] Built target opencv_nonfree [ 90%] Generating opencv_perf_nonfree_pch_dephelp.cxx Scanning dependencies of target opencv_perf_nonfree_pch_dephelp [ 91%] Building CXX object modules/nonfree/CMakeFiles/opencv_perf_nonfree_pch_de phelp.dir/opencv_perf_nonfree_pch_dephelp.cxx.obj Linking CXX static library ....\lib\libopencv_perf_nonfree_pch_dephelp.a [ 91%] Built target opencv_perf_nonfree_pch_dephelp Scanning dependencies of target pch_Generate_opencv_perf_nonfree [ 91%] Generating perf_precomp.hpp [ 91%] Generating perf_precomp.hpp.gch/opencv_perf_nonfree_Release.gch [ 91%] Built target pch_Generate_opencv_perf_nonfree Scanning dependencies of target opencv_perf_nonfree [ 91%] Building CXX object modules/nonfree/CMakeFiles/opencv_perf_nonfree.dir/pe rf/perf_gpu.cpp.obj [ 91%] Building CXX object modules/nonfree/CMakeFiles/opencv_perf_nonfree.dir/pe rf/perf_main.cpp.obj [ 91%] Building CXX object modules/nonfree/CMakeFiles/opencv_perf_nonfree.dir/pe rf/perf_precomp.cpp.obj [ 91%] Building CXX object modules/nonfree/CMakeFiles/opencv_perf_nonfree.dir/pe rf/perf_surf.cpp.obj [ 91%] Building CXX object modules/nonfree/CMakeFiles/opencv_perf_nonfree.dir/pe rf/perf_surf.ocl.cpp.obj Linking CXX executable ....\bin\RELEASEopencv_perf_nonfree.exe Info: resolving VTT for cv::SURF by linking to __imp___ZTTN2cv4SURFE (auto-impor t) Info: resolving vtable for cv::_OutputArray by linking to __imp___ZTVN2cv12_Outp utArrayE (auto-import) Info: resolving vtable for cv::_InputArray by linking to __imp___ZTVN2cv11_Input ArrayE (auto-import) Info: resolving vtable for cv::Exception by linking to __imp___ZTVN2cv9Exception E (auto-import) Creating library file: ....\bin\libopencv_perf_nonfree.dll.a c:/mingw4/bin/../lib/gcc/mingw32/4.4.1-dw2/../../../../mingw32/bin/ld.exe: warni ng: auto-importing has been activated without --enable-auto-import specified on the command line. This should work unless it involves constant data structures referencing symbols from auto-imported DLLs. [ 91%] Built target opencv_perf_nonfree [ 91%] Generating opencv_test_nonfree_pch_dephelp.cxx Scanning dependencies of target opencv_test_nonfree_pch_dephelp [ 91%] Building CXX object modules/nonfree/CMakeFiles/opencv_test_nonfree_pch_de phelp.dir/opencv_test_nonfree_pch_dephelp.cxx.obj Linking CXX static library ....\lib\libopencv_test_nonfree_pch_dephelp.a [ 91%] Built target opencv_test_nonfree_pch_dephelp Impossibile eseguire il programma specificato. mingw32-make[2]: * [modules/nonfree/CMakeFiles/pch_Generate_opencv_test_nonfre e.dir/depend] Error 1 mingw32-make[1]: [modules/nonfree/CMakeFiles/pch_Generate_opencv_test_nonfre e.dir/all] Error 2 mingw32-make: ** [all] Error 2

C:\home\denis\Cpp\opencv-2.4.6.1>

Fortunately the libraries that are needed at my program are already compiled. How can I do to complete the compilation?

Build opencv

Hi. Today I'm trying to compile OpenCV on a Windows Xp machine with mingw32. At the 91% of the process I obtain this error:

global_motion.cpp.obj
[ 89%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
gpumat.cpp.obj
[ 89%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
hough.cpp.obj
[ 89%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
imgproc.cpp.obj
[ 89%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
labeling.cpp.obj
[ 89%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
nvidia.cpp.obj
[ 89%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
objdetect.cpp.obj
[ 89%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
opengl.cpp.obj
[ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
optflow.cpp.obj
[ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
precomp.cpp.obj
[ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
pyramids.cpp.obj
[ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
remap.cpp.obj
[ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
resize.cpp.obj
[ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
stream.cpp.obj
[ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
threshold.cpp.obj
[ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
video.cpp.obj
[ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
warp_affine.cpp.obj
[ 90%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_
warp_perspective.cpp.obj
Linking CXX executable ....\bin\RELEASEopencv_test_gpu.exe
..\..\bin\RELEASEopencv_test_gpu.exe
[ 90%] Built target opencv_test_gpu
[ 90%] Generating opencv_nonfree_pch_dephelp.cxx
Scanning dependencies of target opencv_nonfree_pch_dephelp
[ 90%] Building CXX object modules/nonfree/CMakeFiles/opencv_nonfree_pch_dephelp
.dir/opencv_nonfree_pch_dephelp.cxx.obj
Linking CXX static library ....\lib\libopencv_nonfree_pch_dephelp.a
..\..\lib\libopencv_nonfree_pch_dephelp.a
[ 90%] Built target opencv_nonfree_pch_dephelp
Scanning dependencies of target pch_Generate_opencv_nonfree
[ 90%] Generating precomp.hpp
[ 90%] Generating precomp.hpp.gch/opencv_nonfree_Release.gch
[ 90%] Built target pch_Generate_opencv_nonfree
Scanning dependencies of target opencv_nonfree
[ 90%] Building CXX object modules/nonfree/CMakeFiles/opencv_nonfree.dir/src/non
free_init.cpp.obj
[ 90%] Building CXX object modules/nonfree/CMakeFiles/opencv_nonfree.dir/src/pre
comp.cpp.obj
[ 90%] Building CXX object modules/nonfree/CMakeFiles/opencv_nonfree.dir/src/sif
t.cpp.obj
[ 90%] Building CXX object modules/nonfree/CMakeFiles/opencv_nonfree.dir/src/sur
f.cpp.obj
[ 90%] Building CXX object modules/nonfree/CMakeFiles/opencv_nonfree.dir/src/sur
f.ocl.cpp.obj
[ 90%] Building CXX object modules/nonfree/CMakeFiles/opencv_nonfree.dir/src/sur
f_gpu.cpp.obj
Linking CXX shared library ....\bin\libopencv_nonfree246.dll
..\..\bin\libopencv_nonfree246.dll
Creating library file: ....\lib\libopencv_nonfree246.dll.a
..\..\lib\libopencv_nonfree246.dll.a
[ 90%] Built target opencv_nonfree
[ 90%] Generating opencv_perf_nonfree_pch_dephelp.cxx
Scanning dependencies of target opencv_perf_nonfree_pch_dephelp
[ 91%] Building CXX object modules/nonfree/CMakeFiles/opencv_perf_nonfree_pch_de
phelp.dir/opencv_perf_nonfree_pch_dephelp.cxx.obj
Linking CXX static library ....\lib\libopencv_perf_nonfree_pch_dephelp.a
..\..\lib\libopencv_perf_nonfree_pch_dephelp.a
[ 91%] Built target opencv_perf_nonfree_pch_dephelp
Scanning dependencies of target pch_Generate_opencv_perf_nonfree
[ 91%] Generating perf_precomp.hpp
[ 91%] Generating perf_precomp.hpp.gch/opencv_perf_nonfree_Release.gch
[ 91%] Built target pch_Generate_opencv_perf_nonfree
Scanning dependencies of target opencv_perf_nonfree
[ 91%] Building CXX object modules/nonfree/CMakeFiles/opencv_perf_nonfree.dir/pe
rf/perf_gpu.cpp.obj
[ 91%] Building CXX object modules/nonfree/CMakeFiles/opencv_perf_nonfree.dir/pe
rf/perf_main.cpp.obj
[ 91%] Building CXX object modules/nonfree/CMakeFiles/opencv_perf_nonfree.dir/pe
rf/perf_precomp.cpp.obj
[ 91%] Building CXX object modules/nonfree/CMakeFiles/opencv_perf_nonfree.dir/pe
rf/perf_surf.cpp.obj
[ 91%] Building CXX object modules/nonfree/CMakeFiles/opencv_perf_nonfree.dir/pe
rf/perf_surf.ocl.cpp.obj
Linking CXX executable ....\bin\RELEASEopencv_perf_nonfree.exe
..\..\bin\RELEASEopencv_perf_nonfree.exe
Info: resolving VTT for cv::SURF by linking to __imp___ZTTN2cv4SURFE (auto-impor
t)
Info: resolving vtable for cv::_OutputArray by linking to __imp___ZTVN2cv12_Outp
utArrayE (auto-import)
Info: resolving vtable for cv::_InputArray by linking to __imp___ZTVN2cv11_Input
ArrayE (auto-import)
Info: resolving vtable for cv::Exception by linking to __imp___ZTVN2cv9Exception
E (auto-import)
Creating library file: ....\bin\libopencv_perf_nonfree.dll.a
..\..\bin\libopencv_perf_nonfree.dll.a
c:/mingw4/bin/../lib/gcc/mingw32/4.4.1-dw2/../../../../mingw32/bin/ld.exe: warni
ng: auto-importing has been activated without --enable-auto-import specified on
the command line.
This should work unless it involves constant data structures referencing symbols
 from auto-imported DLLs.
[ 91%] Built target opencv_perf_nonfree
[ 91%] Generating opencv_test_nonfree_pch_dephelp.cxx
Scanning dependencies of target opencv_test_nonfree_pch_dephelp
[ 91%] Building CXX object modules/nonfree/CMakeFiles/opencv_test_nonfree_pch_de
phelp.dir/opencv_test_nonfree_pch_dephelp.cxx.obj
Linking CXX static library ....\lib\libopencv_test_nonfree_pch_dephelp.a
..\..\lib\libopencv_test_nonfree_pch_dephelp.a
[ 91%] Built target opencv_test_nonfree_pch_dephelp
Impossibile eseguire il programma specificato.
mingw32-make[2]: * *** [modules/nonfree/CMakeFiles/pch_Generate_opencv_test_nonfre
e.dir/depend] Error 1
mingw32-make[1]:  *** [modules/nonfree/CMakeFiles/pch_Generate_opencv_test_nonfre
e.dir/all] Error 2
mingw32-make: ** *** [all] Error 2

C:\home\denis\Cpp\opencv-2.4.6.1>

2 C:\home\denis\Cpp\opencv-2.4.6.1>

Fortunately the libraries that are needed at my program are already compiled. How can I do to complete the compilation?