Compiling capybara-webkit fails with Qt 5 packages

Bug #1134745 reported by Matt Horan
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
qtwebkit-opensource-src (Debian)
Fix Released
Unknown
qtwebkit-opensource-src (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I've been experimenting with the https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-proper packages compiling capybara-webkit on Travis CI. The blocking issue is this:

g++ -m32 -Wl,-O1 -o ../bin/webkit_server ... -lQt5WebKitWidgets -L/build/buildd/qtdeclarative-opensource-src-5.0.0/lib -L/usr/lib/i386-linux-gnu -L/usr/lib/i386-linux-gnu/i386-linux-gnu -L/build/buildd/qtwebkit-opensource-src-5.0.0/lib -L/usr/lib/i386-linux-gnu/i386-linux-gnu/i386-linux-gnu -lQt5Sql -lX11 -lxslt -lgio-2.0 -lgstapp-0.10 -lgstinterfaces-0.10 -lgstpbutils-0.10 -pthread -lgstvideo-0.10 -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lsqlite3 -lQt5Quick -lQt5OpenGL -lQt5PrintSupport -lQt5WebKit -lQt5Qml -lQt5Widgets -lQt5Location -lQt5Sensors -lQt5Network -lQt5Gui -lQt5Core -lGL -lpthread
/usr/bin/ld: cannot find -lgstapp-0.10
/usr/bin/ld: cannot find -lgstinterfaces-0.10
/usr/bin/ld: cannot find -lgstpbutils-0.10
/usr/bin/ld: cannot find -lgstvideo-0.10
/usr/bin/ld: cannot find -lgstbase-0.10
/usr/bin/ld: cannot find -lgstreamer-0.10
collect2: ld returned 1 exit status

The gstreamer libraries are installed, however they have a .0 suffix after the .so. This seems to cause linking to fail. I'm not sure where these libraries are being added to the linker line as they are not present in Qt 4.8 nor on my Debian box running Qt 5 as distributed by Digia.

Related branches

Revision history for this message
Matt Horan (mhoran) wrote :

As it turns out, I needed to install the libgstreamer0.10-dev and libgstreamer-plugins-base0.10-dev packages. However, I'm not sure why these aren't pulled in as build deps, given that something was adding them to the linker.

Also, qtdeclarative5-dev, qtlocation5-dev and qtsensors5-dev were not pulled in as build deps, even though they were required to build.

Revision history for this message
dmiller309 (dmiller309) wrote :

I encountered this bug when writing a Qt5 web application in QtCreator. In addition to libgstreamer packages that Matt Horan noted need to be installed, so does libxslt1-dev:
http://lists.osgeo.org/pipermail/mapserver-users/2009-December/063908.html

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtwebkit-opensource-src (Ubuntu):
status: New → Confirmed
Revision history for this message
Richel Bilderbeek (richelbilderbeek) wrote :

Confirmed that this solves the problem:

sudo apt-get install libgstreamer1.0-dev
sudo apt-get install libgstreamer0.10-dev
sudo apt-get install libgstreamer-plugins-base1.0-dev
sudo apt-get install libgstreamer-plugins-base0.10-dev

Revision history for this message
Ville Ranki (ville-ranki) wrote :

As a developer this is really annoying issue as i need to put a huge list of unrelated build dependencies to my application's control file.

Changed in qtwebkit-opensource-src (Debian):
status: Unknown → New
Changed in qtwebkit-opensource-src (Debian):
status: New → Confirmed
Changed in qtwebkit-opensource-src (Debian):
status: Confirmed → Fix Released
Changed in qtwebkit-opensource-src (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtwebkit-opensource-src - 5.1.1-1ubuntu8

---------------
qtwebkit-opensource-src (5.1.1-1ubuntu8) trusty; urgency=medium

  * Copy dont_pollute_pri_and_pc_with_private_deps.patch from Debian
    (LP: #1134745).
 -- Dmitry Shachnev <email address hidden> Wed, 19 Mar 2014 14:07:02 +0400

Changed in qtwebkit-opensource-src (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.