Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to fix the following mingw32-make error.

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

[ 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/CMake
odecs.dir/src/loadsave.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:4455: modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/all] Error
mingw32-make: *** [Makefile:162: all] Error 2

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

How to fix this error??

How to fix the following mingw32-make error.

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/CMake
modules/imgcodecs/CMakeFiles/opencv_imgc
odecs.dir/src/loadsave.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:4455: [CMakeFiles\Makefile2:4418: modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/all] Error
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??