On 4/13/10, Trent Shea <[email protected]> wrote:
> I'm not sure if this helps, but for phonon I use:
> -DPHONON_INCLUDE_DIR=/opt/kde/include
> -DPHONON_LIBRARY=/opt/kde/lib/libphonon.so

OFF TOPIC:
For me, phonon was Krazy.
I got clues from alien slackbuild of k442
Build xine-lib after libxcb and qt after that.
But build qt with -no-phonon or else can't get xine backend

Tweak phonon.pc for the PyQt
  # PyQT won't find the header files otherwise:
  sed -i -e 's#{includedir}$#& -I\${includedir}/phonon#'
${KDE_PREFIX}/lib/pkgconfig/phonon.pc

And had to hack PyQt config
=========================
(probably line wrap damaged)
--- PyQt-x11-gpl-4.7.2/configure.py.orig
+++ PyQt-x11-gpl-4.7.2/configure.py
@@ -365,7 +365,7 @@
         check_module("QtXml", "qdom.h", "new QDomDocument()")
         check_module("QtXmlPatterns", "qxmlname.h", "new QXmlName()")
         check_module("phonon", "phonon/videowidget.h",
-                "new Phonon::VideoWidget()")
+                "new Phonon::VideoWidget()",
extra_include_dirs=["${KDE_PREFIX}/include",
"${KDE_PREFIX}/include/phonon"], extra_lib_dirs=["${KDE_PREFIX}/lib"])
         check_module("QtAssistant", "qassistantclient.h",
                 "new QAssistantClient(\"foo\")", extra_lib_dirs=ass_lib_dirs,
                 extra_libs=ass_libs)
@@ -478,7 +478,7 @@
             generate_code("QtXmlPatterns")

         if "phonon" in pyqt_modules:
-            generate_code("phonon")
+            generate_code("phonon",
extra_include_dirs=["${KDE_PREFIX}/include",
"${KDE_PREFIX}/include/phonon"], extra_lib_dirs=["${KDE_PREFIX}/lib"])

         if "QtAssistant" in pyqt_modules:
             generate_code("QtAssistant")
==========================

Unless phonon is installed in /usr, and then you don't have to hack
PyQt config, but do still need to sed on PyQt's behalf:
 sed -i -e 's#{includedir}$#& -I\${includedir}/phonon#'
/usr/lib/pkgconfig/phonon.pc
but I didn't try it that way.
When I didn't do it right, I didn't get any phonon backends which was useless.

If Trent's way works (and phonon works good) that's cool.
Otherwise Ignore this OFF TOPIC if you don't want xine backend for
phonon (which works best).
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to