[PyQt] Installation problem in linux

Phil Thompson phil at riverbankcomputing.co.uk
Thu Sep 27 11:07:17 BST 2007


On Thursday 27 September 2007, Shyamsundar, Purkayastha (Purkayastha)** CTR ** 
wrote:
> Here is the output from the -w option
>
> ########################################################################
> ####
> [root at localhost PyQt-x11-gpl-4.3]# python2.5 configure.py -wDetermining
> the layout of your Qt installation.../usr/bin/qmake -o qtdirs.mk
> qtdirs.pro
> make -f qtdirs.mk
> g++ -c -pipe -Wall -W -O2 -g -pipe -m32 -march=i386 -mtune=pentium4
> -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
> -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/lib/qt-3.3/include -o
> qtdirs.o qtdirs.cpp
> qtdirs.cpp:1:17: QFile: No such file or directory
> qtdirs.cpp:2:24: QLibraryInfo: No such file or directory
> qtdirs.cpp:3:23: 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:9: warning: unused variable 'outf'
> qtdirs.cpp:9: warning: unused variable 'WriteOnly'
> qtdirs.cpp:9: warning: unused variable 'Truncate'
> qtdirs.cpp:9: warning: unused variable 'Text'
> 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
> qtdirs.cpp:19: error: `QLibraryInfo' has not been declared
> qtdirs.cpp:19: error: `QLibraryInfo' has not been declared
> qtdirs.cpp:19: error: `PluginsPath' was not declared in this scope
> qtdirs.cpp:7: warning: unused variable 'QFile'
> qtdirs.cpp:12: warning: unused variable 'QTextStream'
> qtdirs.cpp:14: warning: unused variable 'PrefixPath'
> qtdirs.cpp:15: warning: unused variable 'HeadersPath'
> qtdirs.cpp:16: warning: unused variable 'LibrariesPath'
> qtdirs.cpp:17: warning: unused variable 'BinariesPath'
> qtdirs.cpp:18: warning: unused variable 'DataPath'
> qtdirs.cpp:19: warning: unused variable 'PluginsPath'
> make: *** [qtdirs.o] Error 1
> Error: Failed to create ./qtdirs using platform linux-g++. Make sure
> your
> compiler is installed correctly and you have a working make on your
> PATH.
> [root at localhost PyQt-x11-gpl-4.3]#
> ########################################################################
> ####
>
> It seems something is amiss in terms of qt path,I installed qt v 4 over
> qt3.3 ( which was pre installed with os )

That was probably a mistake.

> but I am unsble to figure out 
> the meaning of the last warning, I have gcc installed and I also have
> make .

Obviously old bits of Qt3 are being found. It's a bit difficult to make 
suggestions as I've no idea what state your system is now in.

Phil


More information about the PyQt mailing list