[Ffmpeg-devel] Patch to allow cross-compile with MacOS X

Augie Fackler durin42
Wed Jul 12 17:40:23 CEST 2006

The memalign hack isn't actually needed on OS X because of how memory  
allocations work, but MMX is broken for the darwin binutils anyway,  
so you'll have to apply one of the previously-rejected patches to fix  
the MMX code.
We're using one on my project that also allows not using the memalign  
hack on darwin systems, contact me off-list if you want it.

Augie Fackler

On Jul 12, 2006, at 9:46 AM, herve.flores wrote:

> Le 12 juil. 06 ? 02:33, M?ns Rullg?rd a ?crit :
>> M?ns Rullg?rd <mru at inprovide.com> writes:
> [...]
>> Committed a simplified version.
>> -- M?ns Rullg?rd
>> mru at inprovide.com
> I'd tried with the last svn, then I report the resultat
> works great on mac PPC with this configure:
> ./configure --cross-compile --cpu=x86 --enable-pp --enable-gpl -- 
> extra-cflags='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk'  
> --extra-ldflags='-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch  
> i386' --enable-pthreads --enable-static --disable-shared --enable- 
> a52 --enable-amr_nb --enable-amr_wb --enable-amr_if2 --disable-mmx
> without --disable-mmx, I had a warning (error) during compile to  
> add "--enable-memalign-hack"
> "Error, no memalign() but SSE enabled, disable it or use --enable- 
> memalign-hack.
> 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-devel at 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."
> with the add of "--enable-memalign-hack" I had an error
> with "--disable-mmx" the compile works (and produce an intel binary  
> as expected) :-)))
> I don't know if it's normal or not, but it works great.
> PS: what is the syntax to add extra libs? (like x264, mp3, faac, etc)
> I suppose there is an extra flag to add to configure, to link to an  
> other folder than "/usr/lib/"
> thanks
> bye
> Herv?_______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel

More information about the ffmpeg-devel mailing list