[PyQt] problem building PyQt-win-gpl-4.4.3-snapshot-20080601

Igor Prischepoff igor at tyumbit.ru
Mon Jun 2 09:06:19 BST 2008

Trying to build fresh snapshot with mingw compiler on windows.
here is my build cmd file (c:\tmp\ is temporary directory where sources is

 cd C:\tmp\sip-4.7.7-snapshot-20080530 
 C:/Python25/python configure.py -p win32-g++
 mingw32-make install
 cd ..\
 cd c:\tmp\PyQt-win-gpl-4.4.3-snapshot-20080601
 rem Next command is failed to complete ok.
 C:/Python25/python configure.py -w
 mingw32-make install

here is error :

C:\tmp\PyQt-win-gpl-4.4.3-snapshot-20080601>c:\python25\python configure.py
Determining the layout of your Qt installation...
C:\Qt\4.4.0\bin\qmake.exe -o qtdirs.mk qtdirs.pro
trying to compile release\qtdirs.exe
mingw32-make -f qtdirs.mk release
mingw32-make -f qtdirs.mk.Release
mingw32-make[1]: Entering directory
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE
-DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\Qt\4.4.0\include\
QtCore" -I"..\..\Qt\4.4.0\include\QtCore" -I"..\..\Qt\4.4.0\include"
-I"c:\Qt\4.4.0\include\ActiveQt" -I"release" -I"."
-I"..\..\Qt\4.4.0\mkspecs\default" -o release\qtdirs.o qtdir
g++ -enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows
/incremental:no -o release\qtdirs.exe release/qtdirs.
o  -L"c:\Qt\4.4.0\lib" -lmingw32 -lqtmain -lQtCore4
g++: /incremental:no: No such file or directory
mingw32-make[1]: *** [release\qtdirs.exe] Error 1
mingw32-make[1]: Leaving directory
mingw32-make: *** [release] Error 2
PROBLEM making: mingw32-make -f qtdirs.mk release
Error: Failed to determine the layout of your Qt installation. Try again
the --verbose flag to see more detail about the problem.

I have digged into that process and found that 
" /incremental:no " is wrong directive for my g++.exe
if I delete that directive than "qtdirs.exe" is build as
.\release\qtdirs.exe ok.
Is something wrong with my g++ version or setup?
here is g++ version info:
"g++ -v" says:

C:\tmp\PyQt-win-gpl-4.4.3-snapshot-20080601\release>g++ -v
Reading specs from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls
-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared
nable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x
va-gc=boehm --disable-libgcj-debug --enable-interpreter
ation --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)

Прищепов Игорь.
igor at tyumbit.ru

More information about the PyQt mailing list