Page 1 of 1

Problem compiling VLC contrib x86_64 in Mac OSX SL

Posted: 22 May 2010 20:34
by diegofn
Hi

I'm compiling the VLC Contrib for intel64 architectures and I receive the following message in ffmpeg.

touch .gsm
(cd ffmpeg; CC="/Developer/usr/bin/gcc-4.2" CXX="/Developer/usr/bin/g++-4.2" LD="ld" RANLIB="ranlib" AR="ar" STRIP="strip" ./configure --prefix=/Users/diegofn/Documents/vlc/vlc-1.1/extras/contrib/hosts/x86_64-apple-darwin* --extra-cflags="-I/Users/diegofn/Documents/vlc/vlc-1.1/extras/contrib/hosts/x86_64-apple-darwin*/include -march=core2 -mtune=core2 -m64 -arch x86_64 -DMACOSX_DEPLOYMENT_TARGET=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -DNDEBUG -isystem /Users/diegofn/Documents/vlc/vlc-1.1/extras/contrib/hosts/x86_64-apple-darwin*/include -DHAVE_LRINTF" --extra-ldflags="-L/Users/diegofn/Documents/vlc/vlc-1.1/extras/contrib/hosts/x86_64-apple-darwin*/lib -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --cross-prefix=x86_64-apple-darwin*- --enable-cross-compile --enable-libmp3lame --enable-libgsm --enable-memalign-hack --cc=/Developer/usr/bin/gcc-4.2 --arch=x86_64 --cpu=core2 --disable-debug --enable-gpl --enable-postproc --disable-ffserver --disable-ffmpeg --disable-ffplay --disable-devices --disable-protocols --disable-filters --disable-network --disable-shared --enable-static && make && make install-libs install-headers)
Must specify target arch and OS when cross-compiling

If you think configure made a mistake, make sure you are using the latest
version from SVN. If the latest version fails, report the problem to the
ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.err" produced by configure as this will help
solving the problem.
make[1]: *** [.ffmpeg] Error 1
make: *** [using-src] Error 2

Can you help me? I think that you forget any flag in the configure script.

Thanks for all!

Re: Problem compiling VLC contrib x86_64 in Mac OSX SL

Posted: 23 May 2010 12:23
by Jean-Baptiste Kempf
Come on IRC to discuss with us.

Re: Problem compiling VLC contrib x86_64 in Mac OSX SL

Posted: 23 May 2010 22:22
by fkuehne
Edit config.mak in extras/contrib and make sure both BUILD and HOST is set to "x86_64-apple-darwin10" to work-around this limitation in ffmpeg's build system.