Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#18471 closed defect (invalid)

kdebase4-runtime fails to compile

Reported by: sergio.roa@… Owned by: illogic-al@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: kdebase4-runtime

Description

This is the output:

[...]
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdebase4-
runtime/work/build/CMakeFiles 
[ 66%] Building CXX object phonon/platform_kde/CMakeFiles/kde.dir/kdeplatformplugin.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdebase4-runtime/work/build/phonon/platform_kde && /opt/local
/bin/g++-mp-4.2   -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT 
-DKDE_DEPRECATED_WARNINGS -Dkde_EXPORTS -O2  -fno-common 
-Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-
hidden -O2 -DNDEBUG -DQT_NO_DEBUG -fPIC -I/opt/local/var/macports
/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdebase4-runtime/work/build/phonon/platform_kde -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdebase4-runtime/work/kdebase-runtime-4.2.0/phonon/platform_kde -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdebase4-runtime/work/kdebase-runtime-4.2.0 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdebase4-runtime/work/build -I/opt/local/include -I/opt/local/include/KDE -I/opt/local/libexec/qt4-mac/include/phonon -I/opt/local/libexec/qt4-mac/include/QtXmlPatterns -I/opt/local/libexec/qt4-mac/include/QtWebKit -I/opt/local/libexec/qt4-mac/include/QtHelp -I/opt/local/libexec/qt4-mac/include/QtAssistant -I/opt/local/libexec/qt4-mac/include/QtDBus -I/opt/local/libexec/qt4-mac/include/QtTest -I/opt/local/libexec/qt4-mac/include/QtUiTools -I/opt/local/libexec/qt4-mac/include/QtScript -I/opt/local/libexec/qt4-mac/include/QtSvg -I/opt/local/libexec/qt4-mac/include/QtXml -I/opt/local/libexec/qt4-mac/include/QtSql -I/opt/local/libexec/qt4-mac/include/QtOpenGL -I/opt/local/libexec/qt4-mac/include/QtNetwork -I/opt/local/libexec/qt4-mac/include/QtDesigner -I/opt/local/libexec/qt4-mac/include/Qt3Support -I/opt/local/libexec/qt4-mac/include/QtGui -I/opt/local/libexec/qt4-mac/include/QtCore -I/opt/local/libexec/qt4-mac/include/Qt -I/opt/local/libexec/qt4-mac/mkspecs/default -I/opt/local/libexec/qt4-mac/include   -F/opt/local/libexec/qt4-mac/lib -L/opt/local/libexec/qt4-mac/lib -D__APPLE_KDE__ -D_LARGEFILE64_SOURCE -o CMakeFiles/kde.dir/kdeplatformplugin.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdebase4-runtime/work/kdebase-runtime-4.2.0/phonon/platform_kde/kdeplatformplugin.cpp
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdebase4-runtime/work/kdebase-runtime-4.2.0/phonon/platform_kde/kdeplatformplugin.cpp: In member function 'virtual QList<int> Phonon::KdePlatformPlugin::objectDescriptionIndexes(Phonon::ObjectDescriptionType) const':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdebase4-runtime/work/kdebase-runtime-4.2.0/phonon/platform_kde/kdeplatformplugin.cpp:278: error: 'AudioCaptureDeviceType' was not declared in this scope
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdebase4-runtime/work/kdebase-runtime-4.2.0/phonon/platform_kde/kdeplatformplugin.cpp: In member function 'virtual QHash<QByteArray, QVariant> Phonon::KdePlatformPlugin::objectDescriptionProperties(Phonon::ObjectDescriptionType, int) const':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdebase4-runtime/work/kdebase-runtime-4.2.0/phonon/platform_kde/kdeplatformplugin.cpp:290: error: 'AudioCaptureDeviceType' was not declared in this scope
make[2]: *** [phonon/platform_kde/CMakeFiles/kde.dir/kdeplatformplugin.o] Error 1
make[1]: *** [phonon/platform_kde/CMakeFiles/kde.dir/all] Error 2
make: *** [all] Error 2

Warning: the following items did not execute (for kdebase4-runtime): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

In my PortFile I have:

[...]
depends_build       port:gcc42
depends_lib-append  port:qt4-mac \
                    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=\"\"

[...]

Change History (8)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to illogic-al@…
Port: kdebase4-runtime added

comment:2 Changed 15 years ago by illogic-al@…

Resolution: invalid
Status: newclosed

/bin/g++-mp-4.2: no /bin/g++-4.2: yes

Try with the last portfile in ticket #16666

comment:3 in reply to:  2 ; Changed 15 years ago by sergio.roa@…

Replying to illogic-al@…:

/bin/g++-mp-4.2: no /bin/g++-4.2: yes

Try with the last portfile in ticket #16666

What do you mean? I am compiling with the g++-4.2 and I have compiled other kde4 related libraries with it (see ticket #18306, which is still an open bug). The problem seems to be a missing header or library.

comment:4 Changed 15 years ago by 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:

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 ;)

comment:5 in reply to:  3 Changed 15 years ago by illogic-al@…

Replying to sergio.roa@…:

Replying to illogic-al@…:

/bin/g++-mp-4.2: no /bin/g++-4.2: yes

Try with the last portfile in ticket #16666

What do you mean? I am compiling with the g++-4.2 and I have compiled other kde4 related libraries

no, you're compiling with g++-mp-4.2, not g++-4.2. you're welcome to do so but you should know it's unsupported so i personally won't spend time trying to fix this. Having said that, if you get it to work please do let us know.

with it (see ticket #18306, which is still an open bug). The problem seems to be a missing header or library.

See comments 6 and 11 in that ticket.

comment:6 in reply to:  4 ; Changed 15 years ago by illogic-al@…

Replying to 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 :-)

comment:7 in reply to:  6 Changed 15 years ago by sergio.roa@…

Replying to illogic-al@…:

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 :-)

Until now, I have compiled all the dependencies of amarok and yesterday amarok itself. But after 2 seconds of running, it crashes... I tried the patches you are proposing in kde4-1.0.tcl and in gcc-4.2 but it still fails to compile (still the cmake error exposed in ticket #18306)

comment:8 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.