[Live-devel] mplayer + live on macosx

dilaroga osx dilaroga at hotmail.fr
Tue Mar 7 17:08:17 PST 2006


Does anyone have any idea about this ?

This is the linker command where the compilation failed :

gcc-4.0 -I../libvo -I../../libvo  -O4 -mcpu=970 -mtune=970 -faltivec 
-D__APPLE_ALTIVEC__ -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64  -I.            -I./libavutil -I./libavcodec   -o 
mplayer mplayer.o mp_msg.o asxparser.o codec-cfg.o cpudetect.o edl.o 
find_sub.o m_config.o m_option.o m_struct.o parser-cfg.o playtree.o 
playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o  unrarlib.o mixer.o 
parser-mpcmd.o subopt-helper.o  libvo/libvo.a libao2/libao2.a    
libmpcodecs/libmpcodecs.a   libaf/libaf.a libmpdemux/libmpdemux.a 
input/libinput.a postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2 
-lmpdvdkit libavcodec/libavcodec.a  libavformat/libavformat.a  
libavutil/libavutil.a  libavcodec/libpostproc/libpostproc.a       -lmp3lame  
    -lz         -lncurses.5  
/Users/dilaroga/Desktop/imagneto-project/live/liveMedia/libliveMedia.a 
/Users/dilaroga/Desktop/imagneto-project/live/groupsock/libgroupsock.a 
/Users/dilaroga/Desktop/imagneto-project/live/UsageEnvironment/libUsageEnvironment.a 
/Users/dilaroga/Desktop/imagneto-project/live/BasicUsageEnvironment/libBasicUsageEnvironment.a 
     -framework Carbon -framework QuickTime -framework CoreAudio -framework 
AudioUnit -framework AudioToolbox -framework Cocoa -framework QuartzCore 
-framework OpenGL       libfaad2/libfaad2.a  mp3lib/libMP3.a liba52/liba52.a 
libmpeg2/libmpeg2.a tremor/libvorbisidec.a                         -liconv  
-lm
/usr/bin/ld: Undefined symbols:
__Unwind_Resume
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1

I search some information about apple linker and i see that :

http://developer.apple.com/qa/qa2005/qa1428.html

So, i'm trying to compile again deleting the LIVE_LIBS += -lstdc++ of the 
mplayer's config.mak file, but without  success. Deleting this, give me the 
following result :

gcc-4.0 -I../libvo -I../../libvo  -O4 -mcpu=970 -mtune=970 -faltivec 
-D__APPLE_ALTIVEC__ -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64  -I.            -I./libavutil -I./libavcodec   -o 
mplayer mplayer.o mp_msg.o asxparser.o codec-cfg.o cpudetect.o edl.o 
find_sub.o m_config.o m_option.o m_struct.o parser-cfg.o playtree.o 
playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o  unrarlib.o mixer.o 
parser-mpcmd.o subopt-helper.o  libvo/libvo.a libao2/libao2.a    
libmpcodecs/libmpcodecs.a   libaf/libaf.a libmpdemux/libmpdemux.a 
input/libinput.a postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2 
-lmpdvdkit libavcodec/libavcodec.a  libavformat/libavformat.a  
libavutil/libavutil.a  libavcodec/libpostproc/libpostproc.a       -lmp3lame  
    -lz         -lncurses.5  
/Users/dilaroga/Desktop/imagneto-project/live/liveMedia/libliveMedia.a 
/Users/dilaroga/Desktop/imagneto-project/live/groupsock/libgroupsock.a 
/Users/dilaroga/Desktop/imagneto-project/live/UsageEnvironment/libUsageEnvironment.a 
/Users/dilaroga/Desktop/imagneto-project/live/BasicUsageEnvironment/libBasicUsageEnvironment.a 
     -framework Carbon -framework QuickTime -framework CoreAudio -framework 
AudioUnit -framework AudioToolbox -framework Cocoa -framework QuartzCore 
-framework OpenGL       libfaad2/libfaad2.a  mp3lib/libMP3.a liba52/liba52.a 
libmpeg2/libmpeg2.a tremor/libvorbisidec.a                         -liconv  
-lm
/usr/bin/ld: Undefined symbols:
__Unwind_Resume
vtable for __cxxabiv1::__class_type_info
operator delete(void*)
operator new(unsigned long)
___gxx_personality_v0
typeinfo for int
vtable for __cxxabiv1::__si_class_type_info
operator delete[](void*)
operator new[](unsigned long)
___cxa_allocate_exception
___cxa_begin_catch
___cxa_end_catch
___cxa_pure_virtual
___cxa_throw
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1

How can i resolve this problem of linking ?

For more information i see that apple uses the libstdc++.6.0.3.dylib.

It is very strange is that i can compile mplayer with live enabled until the 
mplayer pre7try2 with the same configuration...

_________________________________________________________________
Windows Live Messenger : découvrez et testez la version bêta ! 
http://www.ideas.live.com/



More information about the live-devel mailing list