|
|
#1 |
|
Compile Lame Universal
Hello, I'm trying to compile Lame MP3 Library for ppc and intel so I can include it in a ppc/intel ffmpeg compile and I'll like it to work on 10.4 as well. I know I can possibly use lipo to join the ppc and intel compiled versions into a universal file. But I'm unsure if it'll work.
Thanks for tips and recommendations, Mr. Gecko |
|
|
|
0
|
|
|
#2 |
|
Why bother with LIPO? Add the other architecture to your build flags (i.e. specify both -arch i386 AND -arch ppc) and see if that works first. If it doesn't, the LIPO approach WILL work.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, Ubuntu |
|
|
|
0
|
|
|
#3 | |
|
Quote:
edit I compile with export CFLAGS="-arch ppc"; ./configure --prefix=/ffmpeg/lame --build=ppc --disable-nasm and the error I get is /bin/sh ../libtool --tag=CC --mode=link gcc -Wall -arch ppc -fno-common -static -o lame main.o console.o get_audio.o lametime.o parse.o portableio.o timestatus.o brhist.o ../libmp3lame/libmp3lame.la -lncurses -lm mkdir .libs gcc -Wall -arch ppc -fno-common -o lame main.o console.o get_audio.o lametime.o parse.o portableio.o timestatus.o brhist.o ../libmp3lame/.libs/libmp3lame.a -lncurses -lm Undefined symbols: "_init_xrpow_core_sse", referenced from: _init_xrpow_core_sse$non_lazy_ptr in libmp3lame.a(quantize.o) ld: symbol(s) not found collect2: ld returned 1 exit status make[2]: *** [lame] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Last edited by GRMrGecko; Apr 21, 2009 at 08:15 AM. |
||
|
|
0
|
|
|
#4 |
|
Ok I was able to get this to compile finally.
Code:
echo "Uncompressing Lame" tar -xzf lame-398-2.tar.gz mv lame-398-2 lame-398-2-i386 cp -R lame-398-2-i386 lame-398-2-ppc echo "Configuring Lame" cd lame-398-2-i386 HOST_CC=gcc CC="gcc-4.0 -arch i386" CXX="g++-4.0 -arch i386" ./configure --prefix=/ffmpeg/lame-i386 --host=i386-apple-darwin8.11.1 cd ../lame-398-2-ppc HOST_CC=gcc CC="gcc-4.0 -arch ppc" CXX="g++-4.0 -arch ppc" ./configure --prefix=/ffmpeg/lame-ppc --host=ppc-apple-darwin8.11.1 echo "Compiling Lame" cd ../lame-398-2-i386 make cd ../lame-398-2-ppc make echo "Installing Lame" cd ../lame-398-2-i386 make install cd ../lame-398-2-ppc make install echo "Making Lame Universal" cd ../ cp -R lame-i386 lame lipo -create ./lame-i386/bin/lame ./lame-ppc/bin/lame -output ./lame/bin/lame lipo -create ./lame-i386/lib/libmp3lame.0.0.0.dylib ./lame-ppc/lib/libmp3lame.0.0.0.dylib -output ./lame/lib/libmp3lame.0.0.0.dylib lipo -create ./lame-i386/lib/libmp3lame.a ./lame-ppc/lib/libmp3lame.a -output ./lame/lib/libmp3lame.a |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| Make a powerpc app universal? | matthew12 | Mac Applications and Mac App Store | 3 | Jun 22, 2011 06:09 PM |
| compiling error -f68881 | higeorge | Mac Programming | 2 | Nov 16, 2010 01:31 PM |
| Help compiling/running graphics in terminal | dflem11 | Mac Programming | 2 | Nov 8, 2010 02:42 PM |
| Compiling ODE universal binary | davbeck | Mac Programming | 0 | Sep 5, 2009 04:39 PM |
| Compiling LAME mp3 encoder into unix executable... | feniks | Mac Applications and Mac App Store | 2 | Jun 26, 2004 10:24 AM |
All times are GMT -5. The time now is 11:22 PM.










Linear Mode

