On Sun, Sep 26, 2010 at 1:52 PM, Cristian Morales Vega firstname.lastname@example.org wrote:
2010/9/26 Markus Koßmann email@example.com:
Am Sonntag, 26. September 2010 schrieb Cristian Morales Vega:
Someone can explain me the relation between Qt and Phonon?
My problem is that Stellarium fails because it can't find "phonon/phonon" from
#ifdef HAVE_QT_PHONON #include <phonon/phonon> #endif
And libphonon-devel doesn't helps here.
Looking at the Fedora Qt package it seems it can include libphonon itself, with an internal copy, or use an external libphonon... but using that external libphonon for some kind of specific Qt-Phonon thing. But looking at the openSUSE Qt package it seems the "Qt-Phonon thing" is ignored, and since libphonon is build from the external package, nothing related to Phonon is installed in the Qt package. Is this a bug in the openSUSE Qt package?
Are you sure. that this isn't a bug in the stellarium sources ?
No, that's why I ask :-)
This include directive causes the compiler to search for a file /usr/include/phonon/phonon (unless it uses additional -I directives in the compiler command line). But AFAIK phonon still follows the convention to use a .h suffix for its header files.
What about just commenting out that line and if it is throwing follow up errors then, try to find the headers which contains the missing definitions and include it there instead.
I don't even tested, in part because I saw in the Stellarium wiki a: "NOTE: In Ubuntu 9.10 you should install the libqt4-phonon-dev package, but NOT the libphonon-dev package." and I just supposed there was some kind of Qt Phonon wrapper or something similar. But now looking at the Ubuntu packages I see libqt4-phonon-dev is just a "transition package" without any real file and that just requires libphonon-devel. The funny part is that Ubuntu's libphonon-devel package includes a /usr/include/qt4/phonon/phonon file (http://packages.ubuntu.com/lucid/amd64/libphonon-dev/filelist)
So... now I will look deeper at the problem.
I am testing a fix now. If it works I will submit it back to the Education project.