[solved] - The process "... make.exe" exited with code 2
looks like every-time I jump to a newer Qt version, I have troubles running the old projects. This time I installed yesterday the Qt 5.4.1 for Android (Windows 32 bit), that contains the MinGW 4.9.1. operating system Win 7.
I receive the following error:
11:56:11: Running steps for project amps3...
11:56:11: Configuration unchanged, skipping qmake step.
11:56:11: Starting: "C:\Qt\Qt5.4.1\Tools\mingw491_32\bin\mingw32-make.exe"
C:/Qt/Qt5.4.1/Tools/mingw491_32/bin/mingw32-make -f Makefile.Release
mingw32-make: Entering directory 'C:/Users/A/Documents/QT_ex/tot/tot/build-tot-Desktop_Qt_5_4_1_MinGW_32bit-Debug'
Makefile.Release:3319: warning: overriding recipe for target 'release/moc_amenu.cpp'
./release\main.o: file not recognized: File truncated
collect2.exe: error: ld returned 1 exit status
Makefile.Release:265: recipe for target 'release\tot.exe' failed
mingw32-make: *** [release\tot.exe] Error 1
mingw32-make: Leaving directory 'C:/Users/A/Documents/QT_ex/tot/tot/build-tot-Desktop_Qt_5_4_1_MinGW_32bit-Debug'
makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2
11:59:21: The process "C:\Qt\Qt5.4.1\Tools\mingw491_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project tot (kit: Desktop Qt 5.4.1 MinGW 32bit)
When executing step "Make"
11:59:21: Elapsed time: 03:10.
Any idea what's this all about?
I checked the Project Build&Run setting, including the Environmental Paths.
thanks for your input.
Configuration unchanged, skipping qmake step.
This tells me that you are trying to compile with newer Qt version without properly cleaning the old build. Please make sure you remove the old Makefiles and then run qmake, and finally - rebuild the project. Should work.
thanks for your guideline. I managed to discover what was wrong: in .pro file all the headers were copied at least twice, same for sources and forms. no idea why.