[PyQt] QtHelp module doesn't build

Andrea Scarpino andrea at archlinux.org
Sat Dec 24 03:21:06 GMT 2011


Hi all,
just to let you know that, using the qt 4.8, the QtHelp module in pyqt
doesn't build anymore because of this error:

Checking to see if the QtHelp module should be built...
g++ -DQT_NO_DEBUG -I. -I/usr/mkspecs/linux-g++ -I/usr/include/QtHelp
-I/usr/include -m64 -pipe -O2 -w -D_REENTRANT cfgtest_QtHelp.cpp -o
cfgtest_QtHelp -L/usr/lib -m64
-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -Wl,-O1
-lQtHelp -lpthread
/usr/bin/ld: /tmp/ccgQLxOv.o: undefined reference to symbol
'QString::fromAscii_helper(char const*, int)'
/usr/bin/ld: note: 'QString::fromAscii_helper(char const*, int)' is
defined in DSO /usr/lib/libQtCore.so.4 so try adding it to the linker
command line
/usr/lib/libQtCore.so.4: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

I had to patch the configure script with this line so the qthelp
module loads the qtcore libraries when building.

--- PyQt-x11-gpl-4.9/configure.py~      2011-12-23 14:53:07.981490550 +0100
+++ PyQt-x11-gpl-4.9/configure.py       2011-12-23 14:52:38.384984221 +0100
@@ -1264,7 +1264,7 @@
    opengl = (mname == "QtOpenGL")

    qt = [mname]
-    if mname in ("QtOpenGL", "QtWebKit"):
+    if mname in ("QtHelp", "QtOpenGL", "QtWebKit"):
        qt.append("QtCore")

    makefile = sipconfig.ProgramMakefile(sipcfg, console=1, qt=qt, warnings=0,

-- 
Andrea


More information about the PyQt mailing list