Opened 13 years ago

Closed 12 years ago

#30885 closed defect (wontfix)

phonon 4.4.2r3 does not build

Reported by: Greisby (Greisberger Christophe) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc:
Port: phonon

Description

First, the compilation fails (I have qt4-mac 4.7.3)

There is an error in phonon/pulsesupport.cpp :

#include <QTimer>

should be

#include <QtCore/QTimer>

Then, there is an error linking libphonon_qt7.dylib : -lphonon is not found.

:info:build /Developer/usr/bin/llvm-g++-4.2 -headerpad_max_install_names -arch x86_64 -single_module -dynamiclib -Xarch_x86_64 -mmacosx-version-min=10.6 -o libphonon_qt7.dylib quicktimevideoplayer.o backendheader.o medianodevideopart.o medianodeevent.o audiooutput.o backendinfo.o audiosplitter.o audioeffects.o quicktimestreamreader.o medianode.o backend.o mediaobject.o mediaobjectaudionode.o audiomixer.o quicktimeaudioplayer.o videoframe.o quicktimemetadata.o audiodevice.o audioconnection.o audiograph.o audionode.o videowidget.o  -F/opt/local/lib  -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_phonon/phonon/work/phonon-4.4.2/build/lib -lphonon -framework AppKit -framework AudioUnit -framework AudioToolbox -framework CoreAudio -framework QuartzCore -framework QTKit -L/opt/local/lib -framework QtOpenGL -F/opt/local/lib -framework QtGui -framework QtCore -framework OpenGL -framework AGL -Xarch_x86_64 -framework -Xarch_x86_64 QuickTime  
:info:build ld: library not found for -lphonon

I checked in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_phonon/phonon/work/phonon-4.4.2/build/lib/
There is a phonon.la

I have no idea what I could try now.

For info:
OS: Snow Leopard 10.6.8
Arch: x86_64
FS: case sensitive
XCode: 4.0.2
Variant: -universal

Attachments (2)

main.log (64.7 KB) - added by Greisby (Greisberger Christophe) 13 years ago.
Error without patching pulsesupport.cpp
main2.log (73.9 KB) - added by Greisby (Greisberger Christophe) 13 years ago.
Error after patching pulsesupport.cpp

Download all attachments as: .zip

Change History (10)

comment:1 Changed 13 years ago by Greisby (Greisberger Christophe)

I found that the problem could be the one from Ticket #27611 but I cannot activate qt4-mac:

$ sudo qt4_select qt4-mac
version "qt4-mac" is invalid!

$ sudo qt4_select -l
Available versions:
none

qt4-mac is of course installed.

comment:2 Changed 13 years ago by Greisby (Greisberger Christophe)

I followed the other ticket and put "portdbformat sqlite" in macports.conf
I now have more versions:

$ sudo qt4_select -l
Available versions:
current none

But selecting fails:

$ sudo qt4_select current
Selecting version "current" for qt4
rm: /opt/local/share/doc/qt4: is a directory
rm: /opt/local/share/qt4: is a directory
there were 2 errors selecting version "current"!

I tried tweaking (renaming these directories) and qt4_select does not fail anymore.
But these 2 folders are not replaced with links and /opt/local/bin/qmake & other are gone...
I tried to switch between none and current, but nothing happens.

I'll install a new variant of qt4-mac and I hope to have qt4 back.

There must be something wrong in qt4_select or in qt4-mac.

comment:3 Changed 13 years ago by mf2k (Frank Schima)

Please attach the build log.

comment:4 Changed 13 years ago by Greisby (Greisberger Christophe)

I'll as soon as I have a working qt4-mac again. It's still building.

Changed 13 years ago by Greisby (Greisberger Christophe)

Attachment: main.log added

Error without patching pulsesupport.cpp

Changed 13 years ago by Greisby (Greisberger Christophe)

Attachment: main2.log added

Error after patching pulsesupport.cpp

comment:5 Changed 13 years ago by Greisby (Greisberger Christophe)

Hi, any news? I would like to install kde 4 but I'm stuck with phonon...

comment:6 Changed 13 years ago by Greisby (Greisberger Christophe)

I installed today qt-mac with -framework and now phonon builds. Strange.

comment:7 Changed 12 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to michaelld@…

comment:8 Changed 12 years ago by michaelld (Michael Dickens)

Resolution: wontfix
Status: newclosed

Phonon has been upgraded to 4.6.0_0 a while ago, and it uses a very different build method compared with 4.4.2. I'm closing this ticket since it's no longer applicable. After doing a "selfupdate" and then "upgrade outdated": If the new Phonon has a similar issue, then please create a new ticket or join on to an existing one.

Note: See TracTickets for help on using tickets.