[PyQt] PyQt-4.11.1 9d5a6843b580 : g++: error: sipQtCoreQWidget.o: No such file or directory

Phil Thompson phil at riverbankcomputing.com
Sun Jun 1 14:53:41 BST 2014


On 01/06/2014 2:05 pm, Rex Dieter wrote:
> Phil Thompson wrote:
> 
>>> make
>>> make[1]: Entering directory
>>> `/builddir/build/BUILD/PyQt-x11-gpl-4.11/qpy'
>>> make[2]: Entering directory `/builddir/build/BUILD/PyQt-x11-
>>> gpl-4.11/qpy/QtGui'
>>> g++ -Wl,-O1 -Wl,-z,relro -o w_qpygui     -L/usr/lib64 -lQtGui 
>>> -lQtCore
>>> -
>>> lpthread
>>> /usr/lib/gcc/x86_64-redhat-linux/4.9.0/../../../../lib64/crt1.o: In
>>> function
>>> `_start':
>>> (.text+0x20): undefined reference to `main'
>>> collect2: error: ld returned 1 exit status
>> 
>> Should be fixed in tonight's snapshot.
> 
> Testing PyQt-x11-gpl-4.11.1-snapshot-9d5a6843b580.tar.gz this 
> particular
> problem is fixed (using configure.py), but now I hit another failure 
> during
> the build:
> 
> ...
> g++ -shared  -Wl,-O1 -Wl,-z,relro -Wl,--version-script=QtCore.exp -o
> QtCore.so ...lots of objects...
> g++: error: sipQtCoreQWidget.o: No such file or directory

It's a SIP bug. The fix is in hg. A workaround is to pass -c to SIP.

Phil


More information about the PyQt mailing list