[MacPorts] #18471: kdebase4-runtime fails to compile
MacPorts
noreply at macports.org
Fri Feb 13 00:07:55 PST 2009
#18471: kdebase4-runtime fails to compile
---------------------------------+------------------------------------------
Reporter: sergio.roa@… | Owner: illogic-al@…
Type: defect | Status: closed
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.7.0
Resolution: invalid | Keywords:
Port: kdebase4-runtime |
---------------------------------+------------------------------------------
Comment(by illogic-al@…):
Replying to [comment:4 sergio.roa@…]:
> I managed to compile and install kdebase4-runtime. There is a conflict
in the phonon-related headers. The compiler is trying to get the headers
from the phonon files included in the qt4-mac library, but it only
compiles with the headers of the package phonon, which in my case is
version 4.3.0. I tried to change this in my portfile:
>
> {{{
> depends_build port:gcc42
> depends_lib-append port:kdelibs4 \
> port:qimageblitz \
> port:kdepimlibs4 \
> port:phonon
>
> configure.compiler macports-gcc-4.2
> configure.args-append ../${distname} \
> -DWITH_Samba=OFF \
> -DWITH_PulseAudio=OFF \
> -DXINE_INCLUDE_DIR=\"\" \
> -DXINE_LIBRARY=\"\" \
> -DPHONON_INCLUDE_DIR=${prefix}/include \
> -DPHONON_LIBRARY=${prefix}/lib/libphonon.dylib \
> -DQT_PHONON_INCLUDE_DIR=${prefix}/include/phonon
>
> }}}
>
> But I didn't have success. I am not sure how to avoid using these
qt4-mac phonon headers. Therefore, since I was using
/opt/local/include/phonon as input header directory, I had to modify some
source files where phonon headers are included. For instance:
We actually use qt4-mac's phonon. It provides the phonon_qt7 backend.
The alternative is to use xine/gstreamer but both of those a) pull in a
lot of dependencies b) don't play protected .m4p's (used for amarok, which
also uses phonon).
>
> Change
> {{{
> #include "phonon/phonon_export.h"
> }}}
> with
> {{{
> #include "phonon_export.h"
> }}}
> and that's it. Obviously this is not a clean solution, but it gives an
insight on how to solve the problem... I am new to this ports system ;)
Well continue playing around, that's how I started :-)
Question for you, have you compiled any kde programs with macports' gcc
4.2, and then run them?
Regardless of how many times I ask this question I've yet to be graced by
a response :-)
--
Ticket URL: <http://trac.macports.org/ticket/18471#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list