How to fix the following mingw32-make error. [closed]

asked 2018-04-12 08:26:34 -0600

nyrflat gravatar image

updated 2018-04-12 08:54:36 -0600

System information (version)

OpenCV => 3.4.1

Operating System / Platform => Windows 10 64 Bit

Compiler => MinGW 15.4(contains GCC 7.3.0) download link

Detailed description

After using cmake to generate the build files using MinGW makefiles. when i run mingw32-make i get the following error

Scanning dependencies of target opencv_imgcodecs_pch_dephelp
[ 42%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs_pch_dephelp.dir/opencv_imgcodecs_pch_dephelp.cxx.obj
[ 42%] Linking CXX static library ..\..\lib\libopencv_imgcodecs_pch_dephelp.a
[ 42%] Built target opencv_imgcodecs_pch_dephelp
Scanning dependencies of target pch_Generate_opencv_imgcodecs
[ 42%] Generating precomp.hpp
[ 42%] Generating precomp.hpp.gch/opencv_imgcodecs_Release.gch
[ 42%] Built target pch_Generate_opencv_imgcodecs
Scanning dependencies of target opencv_imgcodecs
[ 42%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/loadsave.cpp.obj

mingw32-make[2]: *** [modules\imgcodecs\CMakeFiles\opencv_imgcodecs.dir\build.make:63: modules/imgcodecs/CMakeFiles/opencv_imgc
odecs.dir/src/loadsave.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:4418: modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/all] Error 2
mingw32-make: *** [Makefile:162: all] Error 2

and windows gives this error messagge cc1plus.exe has stopped working.

How to fix this error??

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by nyrflat
close date 2018-04-12 21:00:45.255364

Comments

you don't show the acual error(s), which must be a few lines above from there.

please look it up, and edit your question again, thank you !

berak gravatar imageberak ( 2018-04-12 08:29:07 -0600 )edit

hi, i added the lines above.

nyrflat gravatar imagenyrflat ( 2018-04-12 08:54:25 -0600 )edit

sorry, but you'll have to try again. (still no error visible)

berak gravatar imageberak ( 2018-04-12 08:59:30 -0600 )edit

what do you mean by no error visible? are you implying that the error has nothing to do with the opencv files, and that the problem lies with the mingw files??? because that's what was displayed, and cc1plus.exe crashes.

nyrflat gravatar imagenyrflat ( 2018-04-12 09:08:17 -0600 )edit

no, you did not scoll far enough up. there must be something there.

berak gravatar imageberak ( 2018-04-12 09:20:54 -0600 )edit
1

i did scroll far up, there wasn't any errors. i think its probably something to do with the mingw distro that i downloaded from here, anyways i downloaded this version: mingw-x64, and so far no errors. thanks.

nyrflat gravatar imagenyrflat ( 2018-04-12 10:07:22 -0600 )edit

in that case, kindly close your issue here , too.

berak gravatar imageberak ( 2018-04-12 10:51:38 -0600 )edit