[PyKDE] Compliling pyqt4
Phil Thompson
phil at riverbankcomputing.co.uk
Mon Jan 15 23:08:13 GMT 2007
On Monday 15 January 2007 10:50 pm, pykde at x11.cjb.net wrote:
> On Monday January 15 2007 6:38 am, Andreas Pakulat wrote:
> > you need libqt4-debug
>
> Installed
>
> On Monday January 15 2007 3:52 am, Phil Thompson wrote:
> > Use the -w argument to see what error messages the compiler is
> > generating.
>
> Ok:
>
>
> $ python configure.py -w
> Determining the layout of your Qt installation...
> /usr/bin/qmake -o qtdirs.mk qtdirs.pro
> make -f qtdirs.mk
> g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
> -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I.
> -I/usr/include/qt3 -o qtdirs.o qtdirs.cpp
> qtdirs.cpp:1:17: error: QFile: No such file or directory
> qtdirs.cpp:2:24: error: QLibraryInfo: No such file or directory
> qtdirs.cpp:3:23: error: QTextStream: No such file or directory
> qtdirs.cpp: In function ‘int main(int, char**)’:
> qtdirs.cpp:7: error: ‘QFile’ was not declared in this scope
> qtdirs.cpp:7: error: expected `;' before ‘outf’
> qtdirs.cpp:9: error: ‘outf’ was not declared in this scope
> qtdirs.cpp:9: error: ‘QIODevice’ has not been declared
> qtdirs.cpp:9: error: ‘WriteOnly’ was not declared in this scope
> qtdirs.cpp:9: error: ‘QIODevice’ has not been declared
> qtdirs.cpp:9: error: ‘Truncate’ was not declared in this scope
> qtdirs.cpp:9: error: ‘QIODevice’ has not been declared
> qtdirs.cpp:9: error: ‘Text’ was not declared in this scope
> qtdirs.cpp:12: error: ‘QTextStream’ was not declared in this scope
> qtdirs.cpp:12: error: expected `;' before ‘out’
> qtdirs.cpp:14: error: ‘out’ was not declared in this scope
> qtdirs.cpp:14: error: ‘QLibraryInfo’ has not been declared
> qtdirs.cpp:14: error: ‘QLibraryInfo’ has not been declared
> qtdirs.cpp:14: error: ‘PrefixPath’ was not declared in this scope
> qtdirs.cpp:14: error: ‘location’ was not declared in this scope
> qtdirs.cpp:15: error: ‘QLibraryInfo’ has not been declared
> qtdirs.cpp:15: error: ‘QLibraryInfo’ has not been declared
> qtdirs.cpp:15: error: ‘HeadersPath’ was not declared in this scope
> qtdirs.cpp:16: error: ‘QLibraryInfo’ has not been declared
> qtdirs.cpp:16: error: ‘QLibraryInfo’ has not been declared
> qtdirs.cpp:16: error: ‘LibrariesPath’ was not declared in this scope
> qtdirs.cpp:17: error: ‘QLibraryInfo’ has not been declared
> qtdirs.cpp:17: error: ‘QLibraryInfo’ has not been declared
> qtdirs.cpp:17: error: ‘BinariesPath’ was not declared in this scope
> qtdirs.cpp:18: error: ‘QLibraryInfo’ has not been declared
> qtdirs.cpp:18: error: ‘QLibraryInfo’ has not been declared
> qtdirs.cpp:18: error: ‘DataPath’ was not declared in this scope
> make: *** [qtdirs.o] Error 1
> Error: Failed to create ./qtdirs. 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 am guessing that it is right that I do not have the source file it wants.
> How would I go about getting them, and feeding them to this script?
It's picking up the Qt v3 qmake. Try following the instructions in the error
message.
Phil
More information about the PyQt
mailing list