[PyQt] Error building pyqt4.

Phil Thompson phil at riverbankcomputing.com
Sun Jun 8 18:32:59 BST 2014


On 08/06/2014 3:25 pm, Mark London wrote:
> Hi - I am building pyqt4 with python2.7 on redhat 6.  I've installed
> python2.7 from the sources, which works fine for everything else I've
> tried.  When I run  python2.7 configure.py, I get the following error:
> 
> # python2.7 configure.py
> Determining the layout of your Qt installation...
> Error: Failed to determine the layout of your Qt installation. Try
> again using the --verbose flag to see more detail about the problem.
> 
> I've read tha the way around this, is to issue the following command,
> which appeared to work:
> 
> python2.7 configure.py --qmake /usr/bin/qmake-qt4 -g
> 
> This completed successfully.  But when I run make, I get the following
> error.  Any suggestions?  Thanks.
> 
> # make
> make[1]: Entering directory `/root/Downloads/PyQt-x11-gpl-4.11/qpy'
> make[2]: Entering directory 
> `/root/Downloads/PyQt-x11-gpl-4.11/qpy/QtCore'
> g++ -m64 -Wl,-O1 -o w_qpycore      -lQtGui -lQtCore -lpthread
> /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/crt1.o: In
> function `_start':
> (.text+0x20): undefined reference to `main'
> collect2: ld returned 1 exit status
> make[2]: *** [w_qpycore] Error 1
> make[2]: Leaving directory 
> `/root/Downloads/PyQt-x11-gpl-4.11/qpy/QtCore'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/root/Downloads/PyQt-x11-gpl-4.11/qpy'
> make: *** [all] Error 2

Use configure-ng.py rather than configure.py.

Phil


More information about the PyQt mailing list