[PyQt] PyQt4 issue

Hans-Peter Jansen hpj at urpla.net
Wed Mar 6 00:22:15 GMT 2013


Am Dienstag, 5. März 2013, 18:44:24 schrieb Detlev Offenbach:
> Hello,
> 
> here is the extract.
> 
> Checking to see if the QtTest module should be built...
> g++ -DQT_NO_DEBUG -DQT_TEST_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -I. -
> I/usr/local/Qt-5.0.1/mkspecs/linux-g++ -I/usr/local/Qt-5.0.1/include/QtTest
> - I/usr/local/Qt-5.0.1/include -m64 -pipe -O2 -w -D_REENTRANT -fPIE
> cfgtest_QtTest.cpp -o cfgtest_QtTest -L/usr/local/Qt-5.0.1/lib  -Wl,-O1
> -Wl,-rpath,/usr/local/Qt-5.0.1/lib -lQt5Test - L/usr/local/Qt-5.0.1/lib
> -lQt5Core -lpthread -lpthread
> Checking to see if the QtWebKit module should be built...
> g++ -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_CORE_LIB -I. -
> I/usr/local/Qt-5.0.1/mkspecs/linux-g++
> -I/usr/local/Qt-5.0.1/include/QtWebKit -
> I/usr/local/Qt-5.0.1/include/QtWebKitWidgets
> -I/usr/local/Qt-5.0.1/include/QtCore - I/usr/local/Qt-5.0.1/include -m64
> -pipe -O2 -w -D_REENTRANT -fPIE cfgtest_QtWebKit.cpp - o cfgtest_QtWebKit
> -L/usr/local/Qt-5.0.1/lib  -Wl,-O1 -Wl,-rpath,/usr/local/Qt-5.0.1/lib -
> lQt5WebKit -L/usr/X11R6/lib64 -L/usr/local/Qt-5.0.1/lib -lQt5Network
> -L/usr/local/Qt-5.0.1/lib - lQt5Core -lpthread -lpthread -lQt5Gui
> -L/usr/X11R6/lib64 -L/usr/local/Qt-5.0.1/lib -lQt5Core - lpthread -lpthread
> -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread
> /tmp/ccmtGOAm.o: In function `main':
> cfgtest_QtWebKit.cpp:(.text.startup+0x19): undefined reference to
> `QWebPage::QWebPage(QObject*)'
> collect2: error: ld returned 1 exit status

Hmm, have you checked the symbols in your libQt5WebKit.so?

objdump -T libQt5WebKit.so | grep QWebPage | grep QObject

It should show: _ZN8QWebPageC2EP7QObject

Feeding to c++filt results in: QWebPage::QWebPage(QObject*)

Any other result is an issue down under..

Cheers,
Pete


More information about the PyQt mailing list