Ask Your Question
0

Build opencv

asked 2013-07-18 14:20:31 -0600

updated 2013-07-19 06:12:45 -0600

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 ...
(more)
edit retag flag offensive close merge delete

Comments

you do not need to compile, you can just download the .exe of opencv from http://opencv.org/downloads.html and run it.

Pinky gravatar imagePinky ( 2013-07-18 21:36:01 -0600 )edit

I have tried that package but my program goes to crash on startup. Using the libraries compiled from myself my program works well. The program is based on Qt 5.1 (mingw).

Denis Gottardello gravatar imageDenis Gottardello ( 2013-07-19 02:20:43 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-07-19 06:15:29 -0600

@Pinky : The prebuilt libraries won't work with QT, they are built without that option so for QT support you need to build the openCV library yourself.

@Denis Gottardello : make sure that you are building the openCV 2.4 branch if you retrieve the sourcecode from GIT and not the master branch. Master branch is most of the time unstable and cannot guarantee that build will finalize completely.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-18 14:20:31 -0600

Seen: 1,243 times

Last updated: Jul 19 '13