building Phonon with qmake

Matthias Kretz kretz at kde.org
Sat Jun 16 15:40:18 CEST 2007


On Monday 11 June 2007, Richard wrote:
> To build phonon, I also had to do the changes underneath. Those are,
> of course, not suggestions or anything, just the things that stopped
> it from building.
> I also had to 'create' phonon_export.h since it was renamed
> phonon_export.h.cmake. (just renamed it back, and added #define
> __KDE_HAVE_GCC_VISIBILITY on top)

I have committed a new phonon_export.h and a phonon.pro file as well. Can you 
test that? (Together with
% sed -i\~ 's,"\(.*\)\.moc","moc_\1.cpp",' *.cpp
)

> Are the files I touched supposed to be part of the common platform-
> independent code, or are they only back-end files for kde?

All files that are in kcm/ and platform_kde/ are specific to KDE. Everything 
else should be platform-independent (well, I have KDE deps in some test 
code).

> Also, libphonon.dylib (which is the name if the lib mac creates),
> contains exported symbols (you where saying something about that the
> other day...).

Yes, something went wrong with the macros needed to define PHONON_EXPORT as 
Q_DECL_EXPORT instead of Q_DECL_IMPORT. But it seems to be working now.

> audiooutput.cpp
> <     for (int i = 0; !QDBusConnection::sessionBus().registerObject("/
> AudioOutputs/" + QString::number(i), this); ++i);
> ---
>
>  > //    for (int i = 0; !QDBusConnection::sessionBus().registerObject
>
> ("/AudioOutputs/" + QString::number(i), this); ++i);

I can move this to the platform plugin or we put it in the backend. The idea 
here is that every AudioOutput object creates an interface on the DBus so 
that a mixer application can get the category, name and get/set the 
volume/mute properties. I certainly want to have it for KDE. Is this 
functionality wanted on any other platform?

> audiooutputadaptor.cpp
> audiooutputadaptor.h 

These files should move together with the functionality above.

> factory.cpp

should be KDE headers dependency free now

regarding the use of QDBus: The DBus signal is used to notify Phonon 
applications when the user selected a different backend. Then all apps switch 
the backend. Is this functionality interesting for any other platform except 
Linux?

-- 
________________________________________________________
Matthias Kretz (Germany)                            <><
http://Vir.homelinux.org/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/phonon-backends/attachments/20070616/198d0562/attachment.pgp 


More information about the Phonon-backends mailing list