[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] PyQt5 cannot import QtWebKit
From:       Joe Borġ <mail () jdborg ! com>
Date:       2013-09-05 16:09:56
Message-ID: CAFFYk1USou4znuyeK8Whs7vYOXHOsoBefP10C5E=9xtPyyJp+w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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*)@G=
LIBCXX_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@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*)@G=
LIBCXX_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=C4=A1
http://www.jdborg.com


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

> On Thu, 5 Sep 2013 16:50:04 +0100, Joe Bor=C4=A1 <mail@jdborg.com> wrote:
> > Have just (seemingly) successfully built PyQt5, but doesn't seem to hav=
e
> > 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
>

[Attachment #5 (text/html)]

<div dir="ltr">Hi Phil,<br><br>I get:<br><br>Checking to see if the QtWebKit module \
should be built...<br>/software/Qt/Qt5.1.1/5.1.1/gcc_64/bin/qmake -o \
cfgtest_QtWebKit.mk cfgtest_QtWebKit.pro<br>make -f cfgtest_QtWebKit.mk<br>

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<br>

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 <br>

/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference to \
`deflateBound@ZLIB_1.2.0&#39;<br>/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: \
undefined reference to \
`g_variant_ref&#39;<br>/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&#39;<br>


/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference to \
`gst_x_overlay_set_window_handle&#39;<br>/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: \
undefined reference to `gst_query_parse_nth_buffering_range&#39;<br>

/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference to \
`g_variant_unref&#39;<br>/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: \
undefined reference to \
`gst_element_link_pads_full&#39;<br>/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: \
undefined reference to `gst_is_initialized&#39;<br>

/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference to \
`gst_query_get_n_buffering_ranges&#39;<br>collect2: ld returned 1 exit \
status<br>make: *** [cfgtest_QtWebKit] Error 1<br>Checking to see if the \
QtWebKitWidgets module should be built...<br>

/software/Qt/Qt5.1.1/5.1.1/gcc_64/bin/qmake -o cfgtest_QtWebKitWidgets.mk \
cfgtest_QtWebKitWidgets.pro<br>make -f cfgtest_QtWebKitWidgets.mk<br>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<br>

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 <br>

/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference to \
`deflateBound@ZLIB_1.2.0&#39;<br>/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: \
undefined reference to \
`g_variant_ref&#39;<br>/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&#39;<br>


/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference to \
`gst_x_overlay_set_window_handle&#39;<br>/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: \
undefined reference to `gst_query_parse_nth_buffering_range&#39;<br>

/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference to \
`g_variant_unref&#39;<br>/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: \
undefined reference to \
`gst_element_link_pads_full&#39;<br>/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: \
undefined reference to `gst_is_initialized&#39;<br>

/software/Qt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference to \
`gst_query_get_n_buffering_ranges&#39;<br>collect2: ld returned 1 exit \
status<br>make: *** [cfgtest_QtWebKitWidgets] Error 1<br></div><div \
class="gmail_extra">

<br clear="all"><div><br clear="all"><br>Regards,<br>Joseph David Borġ <br><a \
href="http://www.jdborg.com" target="_blank">http://www.jdborg.com</a></div> \
<br><br><div class="gmail_quote">On 5 September 2013 17:00, Phil Thompson <span \
dir="ltr">&lt;<a href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5">On Thu, 5 Sep 2013 16:50:04 +0100, Joe Borġ \
&lt;<a href="mailto:mail@jdborg.com">mail@jdborg.com</a>&gt; wrote:<br> &gt; Have \
just (seemingly) successfully built PyQt5, but doesn&#39;t seem to have<br> &gt; \
included WebKit:<br> &gt;<br>
&gt; In [1]: from PyQt5 import QtWebKit<br>
&gt;<br>
---------------------------------------------------------------------------<br>
&gt; ImportError                                              Traceback (most recent \
call<br> last)<br>
&gt; &lt;ipython-input-1-ea6344899724&gt; in &lt;module&gt;()<br>
&gt; ----&gt; 1 from PyQt5 import QtWebKit<br>
&gt;<br>
&gt;<br>
&gt; In [3]: from PyQt5 import Qt<br>
&gt; Qt                            QtDBus                      QtGui<br>
&gt; QtMultimedia             QtNetwork                  QtPrintSupport<br>
&gt; QtQuick                     QtSvg                        QtWidgets<br>
&gt; QtCore                      QtDesigner                QtHelp<br>
&gt; QtMultimediaWidgets   QtOpenGL                   QtQml<br>
&gt; QtSql                        QtTest                      QtXmlPatterns<br>
&gt;<br>
&gt;<br>
&gt; Is there a flag I missed on build?<br>
<br>
</div></div>Run configure.py with the --verbose flag to see why WebKit wasn&#39;t<br>
detected.<br>
<span class="HOEnZb"><font color="#888888"><br>
Phil<br>
</font></span></blockquote></div><br></div>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic