[PyQt] Building SIP on MinGW : problem at "make install"

luper rouch luper.rouch at gmail.com
Thu Jun 17 03:17:11 BST 2010

2010/6/17 luper rouch <luper.rouch at gmail.com>:
> 2010/6/17 luper rouch <luper.rouch at gmail.com>:
>> Hi,
>> There seems to be a problem with the makefile generation of SIP for
>> the win32-g++ target. The compilation works fine, but the install
>> phase uses DOS commands instead of the POSIX commands supplied by
>> MinGW (e.g. del and copy instead of rm and cp).
>> Here is the output of make install:
>> $ make install
>> make[1]: Entering directory `/c/s/sipgen'
>> /bin/sh: -c: line 1: syntax error: unexpected end of file
>> make[1]: *** [install] Error 2
>> make[1]: Leaving directory `/c/s/sipgen'
>> make: *** [install] Error 2
>> and the corresponding section in the makefile:
>> install: $(TARGET)
>>        @if not exist c:\python26 mkdir c:\python26
>>        copy /y $(TARGET) c:\python26\$(TARGET)
> The problem is the same for PyQt

I found the cause of this problem, mingw32-make defaults to using
sh.exe if it's present in the path. Renaming sh.exe (normally present
in c:\msys\1.0\bin\) to something else solves the issue.

More information about the PyQt mailing list