recipe for target 'main.o' failed

tim_p picture tim_p · Sep 18, 2016 · Viewed 8.8k times · Source

I am trying to install SIP to be able to install PyQt on my Windows system. I'm following a guide "https://riverbankcomputing.com/pipermail/pyqt/2010-May/026642.html" but @ step 8

Then launch : C:\MinGW\bin\mingw32-make.exe

I'm receiving following error. I have no clue what to do due to little experience with C. After research I found this similar error Cygwin - Makefile-error: recipe for target `main.o' failed but apparently the cause should be different because the solution there doesn't apply with my case.

C:\Users\timpi\Downloads\sip-4.18.1\sip-4.18.1>"C:\MinGW\bin\mingw32-make.exe"
mingw32-make[1]: Entering directory 'C:/Users/timpi/Downloads/sip-4.18.1/sip-4.18.1/sipgen'
gcc -c -O2 -Wall -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o main.o main.c
process_begin: CreateProcess(NULL, gcc -c -O2 -Wall -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o main.o main.c, ...) failed.
make (e=2): The system cannot find the file specified.
Makefile:29: recipe for target 'main.o' failed
mingw32-make[1]: *** [main.o] Error 2
mingw32-make[1]: Leaving directory 'C:/Users/timpi/Downloads/sip-4.18.1/sip-4.18.1/sipgen'
Makefile:3: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

Any thoughts?

Answer