[Qt-interest] Opensuse 11.1 - building Phonon from Qt 4.6.1 source
Stephen Collyer
scollyer at netspinner.co.uk
Tue Feb 23 12:19:59 CET 2010
I've had a few problems building and using Phonon under Opensuse 11.1
with Qt 4.6.1. This is what I did to solve them:
1. Install the following packages:
gstreamer-0_10
gstreamer-0_10-devel
gstreamer-0_10-plugins-base
gstreamer-0_10-plugins-base-devel
2. Make a link from /usr/include/gst to /usr/include/gstreamer-0.10/gst
The Phonon code expects the gstreamer includes to be in /usr/include/gst
but the opensuse packages don't put them there.
3. Configure explicitly with -phonon option:
$ ./configure -v -phonon ...
This is apparently an evaluated default (i.e. phonon is built by default if
configure
finds phonon support) but it didn't work for me without the explicit option.
Phonon support is then built and installed.
However, the phonon includes are found, by default, in
/usr/local/Trolltech/Qt-4.6.1/include/phonon.
This means that the required includes for Phonon::AudioOutput,
Phonon::MediaObject and so on are:
#include <phonon/AudioOutput>
#include <phonon/MediaObject>
rather than those documented as <Phonon/AudioObject>, <Phonon/MediaObject>
(with
uppercase P in Phonon).
Finally, I am building with cmake, and I had to link against
${QT_PHONON_LIBRARIES}
in addition to ${QT_LIBRARIES} - these are apparently treated separately for
some reason.
--
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100223/9618da05/attachment.html
More information about the Qt-interest-old
mailing list