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 ...
you do not need to compile, you can just download the .exe of opencv from http://opencv.org/downloads.html and run it.
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).