[MPlayer-dev-eng] --enable-static broken under OS X ?

eldjodjo eldjodjo at ifrance.com
Thu Dec 4 21:16:24 CET 2003


I found on a forum that the only thing to do was something like below.

Any way to automate / simplify this on OS X for the rest of us ?


when is mplayer succesfully compiled try something like this :
gcc -O4 -pipe -ffast-math -fomit-frame-pointer -no-cpp-precomp  
-DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  
-Ilibmpdemux -Iloader -Ilibvo -I/sw/include/freetype2 -I/sw/include  
-I/sw/include -I/usr/local/include/ebml -I/usr/local/include/matroska  
-I/usr/local/include/SDL -D_THREAD_SAFE -faltivec -o mplayer mplayer.o  
mp_msg.o cpudetect.o codec-cfg.o cfgparser.o my_profile.o spudec.o  
playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o  
find_sub.o m_config.o m_option.o parser-cfg.o m_struct.o unrarlib.o  
mixer.o parser-mpcmd.o libvo/libvo.a libao2/libao2.a libmenu/libmenu.a  
libmpcodecs/libmpcodecs.a mp3lib/libMP3.a liba52/liba52.a  
libmpeg2/libmpeg2.a libaf/libaf.a libmpdemux/libmpdemux.a  
input/libinput.a postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2  
-lmpdvdkit libavcodec/libavcodec.a  
/Users/user/Desktop/test/libs/libmad.a  
/Users/user/Desktop/test/libs/libvorbis.a  
/Users/user/Desktop/test/libs/libdv.a /usr/local/lib/libtheora.a  
/Users/user/Desktop/test/libs/libfaad.a  
/Users/user/Desktop/test/libs/libxvidcore.a  
/Users/user/Desktop/test/libs/libz.a /usr/local/lib/libmatroska.a  
/usr/local/lib/libebml.a -lstdc++ -L/sw  
/Users/user/Desktop/test/libs/libfreetype.a -ltermcap  
/Users/user/Desktop/live/liveMedia/libliveMedia.a  
/Users/user/Desktop/live/groupsock/libgroupsock.a  
/Users/user/Desktop/live/UsageEnvironment/libUsageEnvironment.a  
/Users/user/Desktop/live/BasicUsageEnvironment/ 
libBasicUsageEnvironment.a -lstdc++ -framework Carbon -framework  
QuickTime /Users/user/Desktop/test/libs/libmad.a  
/Users/user/Desktop/test/libs/libSDL.a  
/Users/user/Desktop/test/libs/libSDLmain.a -framework OpenGL -framework  
AGL -framework IOKit -framework Cocoa -framework Carbon -framework  
QuickTime -L/sw/lib/ /Users/user/Desktop/test/libs/libdl.a  
/Users/user/Desktop/test/libs/libiconv.a  
/Users/user/Desktop/test/libs/libintl.a -lm /usr/local/lib/libogg.a



Le 4 déc. 03, à 03:35, Todd Heidesch a écrit :

> Actually, it's the same thing on mine (OS X 10.3). For pretty much  
> every failure there is a section similar to this in configure.log:
>
> --
> ld: can't locate file for: -lcrt0.o
>
> ldd /tmp/mplayer-conf-30714-13360.o
> otool: can't open file: /tmp/mplayer-conf-30714-13360.o (No such file  
> or directory)
> --
>
> crt0.o does not exist anywhere on my system. I tried defining  
> _inttypes=yes  in the configure script but I ended up with multiple  
> typedef errors up compilation. It used to be that GCC on OS X didn't  
> do static, but that was a couple years ago.
> I don't know anything about the /tmp/ file.
>
> -Todd
>
> On Dec 3, 2003, at 4:46 PM, Gabucino wrote:
>
>> eldjodjo wrote:
>>> When I do ./configure --enable-static , it doesn't find "inttypes.h"
>> That's a misleading error. Maybe there should be a
>> check-if-static-compiling-works check in ./configure. Currently, if  
>> -static
>> doesn't work, it will bail out at the inttypes.h check.
>>
>>
>>> ld: can't locate file for: -lcrt0.o
>> Probably your installation is broken..
>>
>> -- 
>> Gabucino
>> MPlayer Core Team
>> _______________________________________________
>> MPlayer-dev-eng mailing list
>> MPlayer-dev-eng at mplayerhq.hu
>> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
> _____________________________________________________________________
> Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
> http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de  
> France
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3865 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031204/85405db9/attachment.bin>


More information about the MPlayer-dev-eng mailing list