[vlc-devel] Snow Leopard and x64

Wolf Wolf.St.Kappesser at gmx.de
Mon Dec 21 20:46:24 CET 2009


Hi,

ups! No, I tried some constellations... thats a bad copy n paste the right looks like:

>> --host=i686-apple-darwin10 \
>> --build=i686-apple-darwin10 \

should be:

--host=x86_64-apple-darwin10 \
--build=x86_64-apple-darwin10 \

Excuse the inconvenience.

Greets


Am 21.12.2009 um 18:00 schrieb Pierre d'Herbemont:

> Hi,
> 
> Your --build and --host args are not right. Use the same that you gave to the contrib bootstrap script.
> 
> Pierre
> 
> On Dec 21, 2009, at 13:15, Wolf <Wolf.St.Kappesser at gmx.de> wrote:
> 
>> Hi,
>> 
>> you're may right, I prefer the other way...
>> 
>> At the moment I try to compile the 1.0.4 for Mac but it doesn't work. :(
>> 
>> I get something strange like:
>> --------------------------------------------------------------------------------
>> SDKs found. Everything is fine.
>> 
>> *****************************************************************
>> * If you need contribs with all debug information, run this     *
>> * line and compile the libraries on your own.                   *
>> * CONTRIBS_RELEASE=no ./bootstrap                               *
>> *****************************************************************
>> 
>> *****************************************************************
>> * VLC will be compiled in 64bit mode using the 10.5 SDK.        *
>> *****************************************************************
>> mkdir tmp
>> (cd tmp && tar jxvf ../contrib-macosx-x86_64-1.0.3.tar.bz2)
>> x ./
>> 
>> [...]
>> 
>> checking for C/C++ restrict keyword... __restrict
>> checking for libs in /Users/wsk/Public/vlc-1.0.4/./extras/contrib... no
>> configure: WARNING:  not using the libs in extras/contrib as it is not the same host
>> 
>> Building with Mac OS X defaults:
>> 
>> [...]
>> 
>> configure: WARNING: only static linking is available, you must provide a gme-tree
>> checking mad.h usability... no
>> checking mad.h presence... no
>> checking for mad.h... no
>> configure: error: Could not find libmad on your system: you may get it from http://www.underbit.com/products/mad/. Alternatively you can use --disable-mad to disable the mad plugin.
>> make: *** No targets specified and no makefile found.  Stop.
>> make: *** No rule to make target `VLC-release.app'.  Stop.
>> g224236035:Public wsk$
>> --------------------------------------------------------------------------------
>> 
>> May building-way on Snow Leo whit the 1.0.3 downloaded libs:
>> --------------------------------------------------------------------------------
>> export CC=/Developer/usr/bin/llvm-gcc-4.2
>> export CXX=/Developer/usr/bin/llvm-g++-4.2
>> export OBJC=/Developer/usr/bin/llvm-gcc-4.2
>> export CFLAGS="-arch x86_64"
>> export CXXFLAGS="-arch x86_64"
>> export LDFLAGS="-arch x86_64"
>> export OBJCFLAGS="-arch x86_64"
>> 
>> cd vlc-1.0.4/extras/contrib
>> ./bootstrap x86_64-apple-darwin10
>> make -j2
>> 
>> cd ../..
>> ./bootstrap
>> 
>> ./configure \
>> --enable-debug \
>> --host=i686-apple-darwin10 \
>> --build=i686-apple-darwin10 \
>> --enable-macosx \
>> --with-macosx-version-min=10.5 \
>> --with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk
>> --------------------------------------------------------------------------------
>> 
>> Greets
>> 
>> Am 21.12.2009 um 01:26 schrieb Felix Paul Kühne:
>> 
>>> Hello Wolf,
>>> 
>>> On 20.12.2009, at 14:30, Wolf wrote:
>>> 
>>>> On my point of view its not  a good idea to skip
>>>> 
>>>> export CFLAGS="-arch *"
>>>> export CXXFLAGS="-arch *"
>>>> export LDFLAGS="-arch *"
>>>> export OBJCFLAGS="-arch *"
>>> I removed these for the following reason:
>>> on 10.5, GCC defaults to 32bit builds on both PowerPC and Intel. Doing a "-arch i386" or "-arch ppc" does no harm, but has no benefit either.
>>> on 10.6, GCC defaults to 64bit builds for Intel. Doing a "-arch x86_64" has no effect either.
>>> 
>>> The arch flag is only important if you want to target a different than the default platform. Since the OS X compilation instructions are way to complicated anyway for the ordinary non-VideoLAN developer (just noticed this again multiple times this week-end), I would like to keep it simple where possible. The arch flag is mentioned later on in the document, which is absolutely sufficient as the later paragraphs focus on cross-compilation.
>>> 
>>> 
>>>> Without, my system will get confused
>>> This is probably a configuration issue or caused by an outdated Xcode version. Xcode 3.1.4 or later is absolutely required to compile VLC on a Mac.
>>> 
>>> Best regards,
>>> 
>>> Felix Kühne
>>> 
>>> 
>>> --
>>> VideoLAN
>>> Felix Paul Kühne
>>> Co-Developer of VLC's Mac OS X port
>>> http://www.videolan.org/vlc
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> vlc-devel mailing list
>>> To unsubscribe or modify your subscription options:
>>> http://mailman.videolan.org/listinfo/vlc-devel
>> 
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> http://mailman.videolan.org/listinfo/vlc-devel
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel




More information about the vlc-devel mailing list