[PyQt] PyQt5 cannot import QtWebKit

Joe Borġ mail at jdborg.com
Thu Sep 5 17:09:56 BST 2013


Hi Phil,

I get:

Checking to see if the QtWebKit module should be built...
/software/Qt/Qt5.1.1/5.1.1/gcc_64/bin/qmake -o cfgtest_QtWebKit.mk
cfgtest_QtWebKit.pro
make -f cfgtest_QtWebKit.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WEBKIT_LIB
-DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/mkspecs/linux-g++ -I.
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtWebKit
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtNetwork
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtGui
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtCore -I. -o
cfgtest_QtWebKit.o cfgtest_QtWebKit.cpp
g++ -Wl,-O1 -Wl,-rpath,/software/Qt/Qt5.1.1/5.1.1/gcc_64
-Wl,-rpath,/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib
-Wl,-rpath-link,/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib -o cfgtest_QtWebKit
cfgtest_QtWebKit.o   -L/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib -lQt5WebKit
-lQt5Network -lQt5Gui -lQt5Core -lGL -lpthread
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `deflateBound at ZLIB_1.2.0'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `g_variant_ref'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to
`std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `gst_x_overlay_set_window_handle'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `gst_query_parse_nth_buffering_range'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `g_variant_unref'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `gst_element_link_pads_full'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `gst_is_initialized'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `gst_query_get_n_buffering_ranges'
collect2: ld returned 1 exit status
make: *** [cfgtest_QtWebKit] Error 1
Checking to see if the QtWebKitWidgets module should be built...
/software/Qt/Qt5.1.1/5.1.1/gcc_64/bin/qmake -o cfgtest_QtWebKitWidgets.mk
cfgtest_QtWebKitWidgets.pro
make -f cfgtest_QtWebKitWidgets.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG
-DQT_WEBKITWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB
-DQT_WEBKIT_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB
-DQT_SENSORS_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/mkspecs/linux-g++ -I.
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtWebKitWidgets
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtQuick
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtOpenGL
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtPrintSupport
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtWebKit
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtQml
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtWidgets
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtNetwork
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtSensors
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtGui
-I/software/Qt/Qt5.1.1/5.1.1/gcc_64/include/QtCore -I. -o
cfgtest_QtWebKitWidgets.o cfgtest_QtWebKitWidgets.cpp
g++ -Wl,-O1 -Wl,-rpath,/software/Qt/Qt5.1.1/5.1.1/gcc_64
-Wl,-rpath,/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib
-Wl,-rpath-link,/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib -o
cfgtest_QtWebKitWidgets cfgtest_QtWebKitWidgets.o
-L/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib -lQt5WebKitWidgets -lQt5Quick
-lQt5OpenGL -lQt5PrintSupport -lQt5WebKit -lQt5Qml -lQt5Widgets
-lQt5Network -lQt5Sensors -lQt5Gui -lQt5Core -lGL -lpthread
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `deflateBound at ZLIB_1.2.0'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `g_variant_ref'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to
`std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `gst_x_overlay_set_window_handle'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `gst_query_parse_nth_buffering_range'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `g_variant_unref'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `gst_element_link_pads_full'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `gst_is_initialized'
/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference
to `gst_query_get_n_buffering_ranges'
collect2: ld returned 1 exit status
make: *** [cfgtest_QtWebKitWidgets] Error 1



Regards,
Joseph David Borġ
http://www.jdborg.com


On 5 September 2013 17:00, Phil Thompson <phil at riverbankcomputing.com>wrote:

> On Thu, 5 Sep 2013 16:50:04 +0100, Joe Borġ <mail at jdborg.com> wrote:
> > Have just (seemingly) successfully built PyQt5, but doesn't seem to have
> > included WebKit:
> >
> > In [1]: from PyQt5 import QtWebKit
> >
> ---------------------------------------------------------------------------
> > ImportError                               Traceback (most recent call
> last)
> > <ipython-input-1-ea6344899724> in <module>()
> > ----> 1 from PyQt5 import QtWebKit
> >
> >
> > In [3]: from PyQt5 import Qt
> > Qt                   QtDBus               QtGui
> > QtMultimedia         QtNetwork            QtPrintSupport
> > QtQuick              QtSvg                QtWidgets
> > QtCore               QtDesigner           QtHelp
> > QtMultimediaWidgets  QtOpenGL             QtQml
> > QtSql                QtTest               QtXmlPatterns
> >
> >
> > Is there a flag I missed on build?
>
> Run configure.py with the --verbose flag to see why WebKit wasn't
> detected.
>
> Phil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130905/aed3f96f/attachment.html>


More information about the PyQt mailing list