Results 1 to 2 of 2

Thread: /libQt5WebKit.so: undefined reference to `gst_x_overlay_set_window_handle'

  1. #1
    Join Date
    Jun 2014
    Posts
    47
    Thanks
    6
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default /libQt5WebKit.so: undefined reference to `gst_x_overlay_set_window_handle'

    hi to all,
    I've centos6.6(x86) and qt5.3.2. I am porting a program
    form qt4 to qt5. and having this problem ( compiler output ) :-
    Qt Code:
    1. 5:20:29: Running steps for project clipgrab...
    2. 15:20:29: Configuration unchanged, skipping qmake step.
    3. 15:20:29: Starting: "/usr/bin/make"
    4. g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DCLIPGRAB_VERSION=3.5.6 -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../Qt5.3.2/5.3/gcc/mkspecs/linux-g++ -I. -I. -I../../Qt5.3.2/5.3/gcc/include -I../../Qt5.3.2/5.3/gcc/include/QtWebKitWidgets -I../../Qt5.3.2/5.3/gcc/include/QtWebKit -I../../Qt5.3.2/5.3/gcc/include/QtWidgets -I../../Qt5.3.2/5.3/gcc/include/QtXml -I../../Qt5.3.2/5.3/gcc/include/QtNetwork -I../../Qt5.3.2/5.3/gcc/include/QtGui -I../../Qt5.3.2/5.3/gcc/include/QtCore -I. -I. -o main.o main.cpp
    5. g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DCLIPGRAB_VERSION=3.5.6 -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../Qt5.3.2/5.3/gcc/mkspecs/linux-g++ -I. -I. -I../../Qt5.3.2/5.3/gcc/include -I../../Qt5.3.2/5.3/gcc/include/QtWebKitWidgets -I../../Qt5.3.2/5.3/gcc/include/QtWebKit -I../../Qt5.3.2/5.3/gcc/include/QtWidgets -I../../Qt5.3.2/5.3/gcc/include/QtXml -I../../Qt5.3.2/5.3/gcc/include/QtNetwork -I../../Qt5.3.2/5.3/gcc/include/QtGui -I../../Qt5.3.2/5.3/gcc/include/QtCore -I. -I. -o mainwindow.o mainwindow.cpp
    6. mainwindow.cpp: In member function 'void MainWindow::on_downloadTree_customContextMenuRequested(const QPoint&)':
    7. mainwindow.cpp:817:22: warning: unused variable 'item' [-Wunused-variable]
    8. QTreeWidgetItem* item = ui.downloadTree->itemAt(pos);
    9. ^
    10. /opt/Qt5.3.2/5.3/gcc/bin/moc -DCLIPGRAB_VERSION=3.5.6 -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/opt/Qt5.3.2/5.3/gcc/mkspecs/linux-g++ -I/opt/software/clipgrab-3.5.6 -I/opt/software/clipgrab-3.5.6 -I/opt/Qt5.3.2/5.3/gcc/include -I/opt/Qt5.3.2/5.3/gcc/include/QtWebKitWidgets -I/opt/Qt5.3.2/5.3/gcc/include/QtWebKit -I/opt/Qt5.3.2/5.3/gcc/include/QtWidgets -I/opt/Qt5.3.2/5.3/gcc/include/QtXml -I/opt/Qt5.3.2/5.3/gcc/include/QtNetwork -I/opt/Qt5.3.2/5.3/gcc/include/QtGui -I/opt/Qt5.3.2/5.3/gcc/include/QtCore mainwindow.h -o moc_mainwindow.cpp
    11. g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DCLIPGRAB_VERSION=3.5.6 -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../Qt5.3.2/5.3/gcc/mkspecs/linux-g++ -I. -I. -I../../Qt5.3.2/5.3/gcc/include -I../../Qt5.3.2/5.3/gcc/include/QtWebKitWidgets -I../../Qt5.3.2/5.3/gcc/include/QtWebKit -I../../Qt5.3.2/5.3/gcc/include/QtWidgets -I../../Qt5.3.2/5.3/gcc/include/QtXml -I../../Qt5.3.2/5.3/gcc/include/QtNetwork -I../../Qt5.3.2/5.3/gcc/include/QtGui -I../../Qt5.3.2/5.3/gcc/include/QtCore -I. -I. -o moc_mainwindow.o moc_mainwindow.cpp
    12. g++ -Wl,-O1 -Wl,-rpath,/opt/Qt5.3.2/5.3/gcc -Wl,-rpath,/opt/Qt5.3.2/5.3/gcc/lib -Wl,-rpath-link,/opt/Qt5.3.2/5.3/gcc/lib -o clipgrab clipgrab.o converter.o converter_copy.o converter_ffmpeg.o main.o mainwindow.o video.o video_youtube.o video_dailymotion.o video_vimeo.o video_myvideo.o video_myspass.o video_clipfish.o video_heuristic.o video_metacafe.o http_handler.o notifications.o qrc_resources.o moc_clipgrab.o moc_converter.o moc_converter_copy.o moc_converter_ffmpeg.o moc_mainwindow.o moc_video.o moc_video_youtube.o moc_video_dailymotion.o moc_video_vimeo.o moc_video_myvideo.o moc_video_clipfish.o moc_video_heuristic.o moc_video_metacafe.o moc_http_handler.o -L/opt/Qt5.3.2/5.3/gcc/lib -lQt5WebKitWidgets -lQt5WebKit -lQt5Widgets -lQt5Xml -lQt5Network -lQt5Gui -lQt5Core -lGL -lpthread
    13. /opt/Qt5.3.2/5.3/gcc/lib/libQt5WebKit.so: undefined reference to `gst_x_overlay_set_window_handle'
    14. /opt/Qt5.3.2/5.3/gcc/lib/libQt5WebKit.so: undefined reference to `gst_query_parse_nth_buffering_range'
    15. /opt/Qt5.3.2/5.3/gcc/lib/libQt5WebKit.so: undefined reference to `gst_element_link_pads_full'
    16. /opt/Qt5.3.2/5.3/gcc/lib/libQt5WebKit.so: undefined reference to `gst_is_initialized'
    17. /opt/Qt5.3.2/5.3/gcc/lib/libQt5WebKit.so: undefined reference to `gst_query_get_n_buffering_ranges'
    18. collect2: error: ld returned 1 exit status
    19. make: *** [clipgrab] Error 1
    20. 15:20:43: The process "/usr/bin/make" exited with code 2.
    21. Error while building/deploying project clipgrab (kit: Desktop Qt 5.3 GCC 32bit)
    22. When executing step "Make"
    23. 15:20:43: Elapsed time: 00:14.
    To copy to clipboard, switch view to plain text mode 
    how to solve it.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: /libQt5WebKit.so: undefined reference to `gst_x_overlay_set_window_handle'

    how to solve it.
    Add the library where the gst_* methods are implemented to your linker command. Looks like these are from the GStreamer library. You'll need to install and build GStreamer if you don't already have it, and edit your project .pro file to add the proper commands to the LIBS line, probably something like this:

    Qt Code:
    1. LIBS += -L"<path to GStreamer library>" -l<name of GStreamer library>
    To copy to clipboard, switch view to plain text mode 

    Where of course, you substitute the actual path and name for the stuff inside the <> above. If the library is named libGStreamer.a, or libgst.a, you simply put -lGStreamer or -lgst for the library name.

  3. The following user says thank you to d_stranz for this useful post:

    rahulvishwakarma (15th March 2020)

Similar Threads

  1. undefined reference
    By deepakswaroop in forum Newbie
    Replies: 1
    Last Post: 2nd March 2011, 06:46
  2. Undefined reference
    By eekhoorn12 in forum Qt Programming
    Replies: 2
    Last Post: 6th January 2011, 15:45
  3. undefined reference
    By digidas in forum Newbie
    Replies: 9
    Last Post: 19th May 2010, 13:04
  4. Undefined reference to crt
    By derektaprell in forum Installation and Deployment
    Replies: 0
    Last Post: 20th October 2009, 08:34
  5. Undefined Reference To...
    By ManuMies in forum Qt Programming
    Replies: 6
    Last Post: 10th February 2009, 12:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.