I'm trying to build PyQt under Windows. I have QT 4.2.2 (precompiled), mingw 3.4.2, Python 2.4, and the latest snapshots of SIP and PyQT: PyQt-win-gpl-4-snapshot-20070131. I have also tried with the stable version of both SIP and PyQt.
<br>SIP builds fine, but when trying to configure PyQt, I get the following:<br><br>Determining the layout of your Qt installation...<br>Error: Failed to create release\qtdirs.exe. Make sure you have a working Qt v4<br>qmake on your PATH or use the -q argument to explicitly specify a working Qt v4
<br>qmake.<br><br>I have run qtvars, and I have qmake in my path, so I ran configure.py with the -w switch. This is what I got:<br><br><br>E:\windows\PyQt-win-gpl-4-snapshot-20070131>python configure.py<br>Determining the layout of your Qt installation...
<br>E:\windows\Qt\4.2.2\bin\qmake.exe -o <a href="http://qtdirs.mk">qtdirs.mk</a> <a href="http://qtdirs.pro">qtdirs.pro</a><br>mingw32-make -f <a href="http://qtdirs.mk">qtdirs.mk</a> release<br>mingw32-make -f qtdirs.mk.Release
<br>mingw32-make[1]: Entering directory `E:/windows/PyQt-win-gpl-4-snapshot-20070131'<br>g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"E:/windows/Qt/4.2.2/include/QtCore" -I"E:/windows/Qt/4.2.2/include/QtCore" -I"E:/windows/Qt/4.2.2/include" -I"E:/windows/Qt/4.2.2/include/ActiveQt" -I"release" -I"." -I"..\Qt\4.2.2\mkspecs\win32-g++" -o release\qtdirs.o
qtdirs.cpp<br>In file included from E:/windows/Qt/4.2.2/include/QtCore/qfile.h:1,<br> from E:/windows/Qt/4.2.2/include/QtCore/QFile:1,<br> from qtdirs.cpp:1:<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qfile.h:27:30: E:/windows/Qt/4.2.2/include/QtCore/QtCore/qiodevice.h: Invalid argument
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qfile.h:28:28: E:/windows/Qt/4.2.2/include/QtCore/QtCore/qstring.h: Invalid argument<br>In file included from E:/windows/Qt/4.2.2/include/QtCore/qfile.h:1,<br> from E:/windows/Qt/4.2.2/include/QtCore/QFile:1,
<br> from qtdirs.cpp:1:<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qfile.h:35: error: `QT_BEGIN_HEADER' does not name a type<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qfile.h:42: error: invalid function declaration
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qfile.h:171: error: `QFile' has not been declared<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qfile.h:171: error: expected constructor, destructor, or type conversion before '(' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qfile.h:171: error: expected `,' or `;' before '(' token<br>In file included from E:/windows/Qt/4.2.2/include/QtCore/qtextstream.h:1,<br> from E:/windows/Qt/4.2.2/include/QtCore/QTextStream:1,
<br> from qtdirs.cpp:3:<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:29:26: E:/windows/Qt/4.2.2/include/QtCore/QtCore/qchar.h: Invalid argument<br>In file included from E:/windows/Qt/4.2.2/include/QtCore/qtextstream.h:1,
<br> from E:/windows/Qt/4.2.2/include/QtCore/QTextStream:1,<br> from qtdirs.cpp:3:<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/global/qlibraryinfo.h:65: error: `QT_END_HEADER' does not name a type
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:52: error: invalid function declaration<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:238: error: `QTextStream' has not been declared
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:238: error: expected constructor, destructor, or type conversion before '(' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:238: error: expected `,' or `;' before '(' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:245: error: `QTextStream' has not been declared<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:245: error: expected unqualified-id before '*' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:245: error: expected `)' before '*' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:245: error: expected `,' or `;' before '*' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:246: error: `QTextStream' has not been declared<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:246: error: expected unqualified-id before '*' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:246: error: expected `)' before '*' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:246: error: expected `,' or `;' before '*' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:249: error: invalid function declaration<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:262: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:262: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:265: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:265: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:268: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:268: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:271: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:271: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:272: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:272: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:273: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:273: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:274: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:274: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:276: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:276: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:277: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:277: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:278: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:278: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:279: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:279: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:280: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:280: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:281: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:281: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:283: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:283: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:284: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:284: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:285: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:285: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:286: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:286: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:288: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:288: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:289: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:289: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:291: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:291: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:292: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:292: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:293: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:293: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:295: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:295: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:296: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:296: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:297: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:297: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:299: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:299: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:301: error: expected init-declarator before '&' token
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:301: error: expected `,' or `;' before '&' token<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:303: error: `QTextStreamManipulator' does not name a type
<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:309: error: `QTextStreamManipulator' does not name a type<br>E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:315: error: `QTextStreamManipulator' does not name a type
<br>qtdirs.cpp:5: error: expected constructor, destructor, or type conversion before "int"<br>qtdirs.cpp:5: error: expected `,' or `;' before "int"<br>mingw32-make[1]: *** [release\qtdirs.o] Error 1
<br>mingw32-make[1]: Leaving directory `E:/windows/PyQt-win-gpl-4-snapshot-20070131'<br>mingw32-make: *** [release] Error 2<br><br>Error: Failed to create release\qtdirs.exe. Make sure you have a working Qt v4<br>qmake on your PATH or use the -q argument to explicitly specify a working Qt v4
<br>qmake.<br><br clear="all"><br><br><br>And I dont' know what to do now.<br>Thanks,<br><br>-- <br>Un saludo,<br><br> Javier