[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
unpacked):

 set
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Qt\4.4.0\bin
;C:\MinGW\bin
 cd C:\tmp\sip-4.7.7-snapshot-20080530 
 C:/Python25/python configure.py -p win32-g++
 mingw32-make
 mingw32-make install
 cd ..\
 cd c:\tmp\PyQt-win-gpl-4.4.3-snapshot-20080601
 rem
 rem Next command is failed to complete ok.
 rem
 C:/Python25/python configure.py -w
 mingw32-make
 mingw32-make install

here is error :

------------------------
C:\tmp\PyQt-win-gpl-4.4.3-snapshot-20080601>c:\python25\python configure.py
-w
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
`C:/tmp/PyQt-win-gpl-4.4.3-snapshot-20080601'
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE
-DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_CORE_LIB
-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
s.cpp
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
`C:/tmp/PyQt-win-gpl-4.4.3-snapshot-20080601'
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
using
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
--host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls
--enable
-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared
--e
nable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x
--enable-ja
va-gc=boehm --disable-libgcj-debug --enable-interpreter
--enable-hash-synchroniz
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