[PyKDE] Problem building PyQt on Windows
Javier Sanz
jsceballos at gmail.com
Fri Feb 2 19:20:38 GMT 2007
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.
SIP builds fine, but when trying to configure PyQt, I get the following:
Determining the layout of your Qt installation...
Error: Failed to create release\qtdirs.exe. Make sure you have a working Qt
v4
qmake on your PATH or use the -q argument to explicitly specify a working Qt
v4
qmake.
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:
E:\windows\PyQt-win-gpl-4-snapshot-20070131>python configure.py
Determining the layout of your Qt installation...
E:\windows\Qt\4.2.2\bin\qmake.exe -o qtdirs.mk qtdirs.pro
mingw32-make -f qtdirs.mk release
mingw32-make -f qtdirs.mk.Release
mingw32-make[1]: Entering directory
`E:/windows/PyQt-win-gpl-4-snapshot-20070131'
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
In file included from E:/windows/Qt/4.2.2/include/QtCore/qfile.h:1,
from E:/windows/Qt/4.2.2/include/QtCore/QFile:1,
from qtdirs.cpp:1:
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
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
In file included from E:/windows/Qt/4.2.2/include/QtCore/qfile.h:1,
from E:/windows/Qt/4.2.2/include/QtCore/QFile:1,
from qtdirs.cpp:1:
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qfile.h:35: error:
`QT_BEGIN_HEADER' does not name a type
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qfile.h:42: error:
invalid function declaration
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qfile.h:171: error:
`QFile' has not been declared
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qfile.h:171: error:
expected constructor, destructor, or type conversion before '(' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qfile.h:171: error:
expected `,' or `;' before '(' token
In file included from E:/windows/Qt/4.2.2/include/QtCore/qtextstream.h:1,
from E:/windows/Qt/4.2.2/include/QtCore/QTextStream:1,
from qtdirs.cpp:3:
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
In file included from E:/windows/Qt/4.2.2/include/QtCore/qtextstream.h:1,
from E:/windows/Qt/4.2.2/include/QtCore/QTextStream:1,
from qtdirs.cpp:3:
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/global/qlibraryinfo.h:65:
error: `QT_END_HEADER' does not name a type
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:52:
error: invalid function declaration
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:238:
error: `QTextStream' has not been declared
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:238:
error: expected constructor, destructor, or type conversion before '(' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:238:
error: expected `,' or `;' before '(' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:245:
error: `QTextStream' has not been declared
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:245:
error: expected unqualified-id before '*' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:245:
error: expected `)' before '*' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:245:
error: expected `,' or `;' before '*' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:246:
error: `QTextStream' has not been declared
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:246:
error: expected unqualified-id before '*' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:246:
error: expected `)' before '*' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:246:
error: expected `,' or `;' before '*' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:249:
error: invalid function declaration
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:262:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:262:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:265:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:265:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:268:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:268:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:271:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:271:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:272:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:272:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:273:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:273:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:274:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:274:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:276:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:276:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:277:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:277:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:278:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:278:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:279:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:279:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:280:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:280:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:281:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:281:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:283:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:283:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:284:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:284:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:285:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:285:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:286:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:286:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:288:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:288:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:289:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:289:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:291:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:291:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:292:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:292:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:293:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:293:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:295:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:295:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:296:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:296:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:297:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:297:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:299:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:299:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:301:
error: expected init-declarator before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:301:
error: expected `,' or `;' before '&' token
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:303:
error: `QTextStreamManipulator' does not name a type
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:309:
error: `QTextStreamManipulator' does not name a type
E:/windows/Qt/4.2.2/include/QtCore/../../src/corelib/io/qtextstream.h:315:
error: `QTextStreamManipulator' does not name a type
qtdirs.cpp:5: error: expected constructor, destructor, or type conversion
before "int"
qtdirs.cpp:5: error: expected `,' or `;' before "int"
mingw32-make[1]: *** [release\qtdirs.o] Error 1
mingw32-make[1]: Leaving directory
`E:/windows/PyQt-win-gpl-4-snapshot-20070131'
mingw32-make: *** [release] Error 2
Error: Failed to create release\qtdirs.exe. Make sure you have a working Qt
v4
qmake on your PATH or use the -q argument to explicitly specify a working Qt
v4
qmake.
And I dont' know what to do now.
Thanks,
--
Un saludo,
Javier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20070202/5690c6b6/attachment.html
More information about the PyQt
mailing list