Undefined references in libQt5WebKit.so



  • Qt 5.1 did not work nor built on CentOS 6.0 so I got a brand new installation of CentOS 6.4 x64.

    I downloaded and installed the "Qt 5.1.0 for Linux 64-bit (416 MB)" from http://qt-project.org/downloads . Installation was okay. I tried a few basic projects what work. I need webkit (this is why I move to 5.1 since 4.7.4 has webkit 2.0.2 and 5.1 should have 3.0 as far as I understand). QJson stuff is always a good simple one.

    So, all good until a project with webkit comes. I add "QT += webkitwidgets" so that there will be a few webkit windows. My test application is about blank, I just print the webkit version number.

    However, it fails with the following error message:
    [code]
    g++ -Wl,-rpath,/opt/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/opt/Qt5.1.0/5.1.0/gcc_64/lib -Wl,-rpath-link,/opt/Qt5.1.0/5.1.0/gcc_64/lib -o bin/JsRendererWebkit WebkitJs.o main.o moc_WebkitJs.o -L/opt/Qt5.1.0//5.1.0/gcc_64/lib -lQt5WebKitWidgets -lQt5Quick -lQt5Declarative -lQt5OpenGL -lQt5PrintSupport -lQt5WebKit -lQt5Qml -lQt5Widgets -lQt5Script -lQt5Network -lQt5Sensors -lQt5Gui -lQt5Core -lGL -lpthread
    /opt/Qt5.1.0//5.1.0/gcc_64/lib/libQt5WebKit.so: undefined reference to g_variant_ref' /opt/Qt5.1.0//5.1.0/gcc_64/lib/libQt5WebKit.so: undefined reference tostd::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
    /opt/Qt5.1.0//5.1.0/gcc_64/lib/libQt5WebKit.so: undefined reference to gst_x_overlay_set_window_handle' /opt/Qt5.1.0//5.1.0/gcc_64/lib/libQt5WebKit.so: undefined reference togst_query_parse_nth_buffering_range'
    /opt/Qt5.1.0//5.1.0/gcc_64/lib/libQt5WebKit.so: undefined reference to g_variant_unref' /opt/Qt5.1.0//5.1.0/gcc_64/lib/libQt5WebKit.so: undefined reference togst_element_link_pads_full'
    /opt/Qt5.1.0//5.1.0/gcc_64/lib/libQt5WebKit.so: undefined reference to gst_is_initialized' /opt/Qt5.1.0//5.1.0/gcc_64/lib/libQt5WebKit.so: undefined reference togst_query_get_n_buffering_ranges'
    collect2: ld returned 1 exit status
    [/code]

    I have issued "yum update" on the system and have glibc, gstreamer, gstreamer-devel, mesa-libGL, mesa-libGL-devel installed.

    I googled for a resolution and only found the same issue where mssing gstreamer was suggested.
    CentOS 6.4 comes with gstreamer 0.10 libraries and I could not find anywhere what version libQt5WebKit.so. Can anyone tell me please?

    Also, could someone recommend me a linux distro where Qt works flawlessly (I am not a big fan of building it) so that I do not have to recompile that over and over again? What linux O/S is used to actually create the linux x64 installation package?
    In one sentence: I would like to find a linux distro where Qt install just runs with its pre-built openSSL and mysql driver, so install and compile my own application, no compilcation of other dependency is needed (except for rpm/deb updates, installs).



  • As Qt 5.1.1 is released, I have it installed after a complete system update with "yum update"

    There is not much change:
    [code]
    g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIE -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/opt/Qt5.1.1/5.1.1/gcc_64/mkspecs/linux-g++ -I. -I/opt/Qt5.1.1/5.1.1/gcc_64/include -I/opt/Qt5.1.1/5.1.1/gcc_64/include/QtWebKitWidgets -I/opt/Qt5.1.1/5.1.1/gcc_64/include/QtQuick -I/opt/Qt5.1.1/5.1.1/gcc_64/include/QtOpenGL -I/opt/Qt5.1.1/5.1.1/gcc_64/include/QtPrintSupport -I/opt/Qt5.1.1/5.1.1/gcc_64/include/QtWebKit -I/opt/Qt5.1.1/5.1.1/gcc_64/include/QtQml -I/opt/Qt5.1.1/5.1.1/gcc_64/include/QtWidgets -I/opt/Qt5.1.1/5.1.1/gcc_64/include/QtNetwork -I/opt/Qt5.1.1/5.1.1/gcc_64/include/QtSensors -I/opt/Qt5.1.1/5.1.1/gcc_64/include/QtGui -I/opt/Qt5.1.1/5.1.1/gcc_64/include/QtCore -I. -o moc_WebkitJs.o moc_WebkitJs.cpp
    g++ -Wl,-rpath,/opt/Qt5.1.1/5.1.1/gcc_64 -Wl,-rpath,/opt/Qt5.1.1/5.1.1/gcc_64/lib -Wl,-rpath-link,/opt/Qt5.1.1/5.1.1/gcc_64/lib -o bin/JsRendererWebkit WebkitJs.o main.o moc_WebkitJs.o -L/opt/Qt5.1.1/5.1.1/gcc_64/lib -lQt5WebKitWidgets -lQt5Quick -lQt5OpenGL -lQt5PrintSupport -lQt5WebKit -lQt5Qml -lQt5Widgets -lQt5Network -lQt5Sensors -lQt5Gui -lQt5Core -lGL -lpthread
    /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference to g_variant_ref' /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference tostd::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
    /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference to gst_x_overlay_set_window_handle' /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference togst_query_parse_nth_buffering_range'
    /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference to g_variant_unref' /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference togst_element_link_pads_full'
    /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference to gst_is_initialized' /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5WebKit.so: undefined reference togst_query_get_n_buffering_ranges'
    collect2: ld returned 1 exit status
    [/code]

    Has anyone seen anything similar?



  • Is the problem with gstreamer or gstreamer-devel? Please help... I am really desperate about it. :(



  • I'm using CentOS6.4 and Qt5.2 beta now, still got the same issue, no solution....



  • What version of gstreamer you are using , i am using 0.10.34 and it works for me.
    I am using Qt 5.1 on Ubuntu 11.10.



  • I have filed a bug https://bugreports.qt-project.org/browse/QTBUG-34302, seemly the gstreamer on CentOS 6.4 is not new enough.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.