Basadev / ffmpeg4iphone

Automatically exported from code.google.com/p/ffmpeg4iphone
0 stars 0 forks source link

compiling with ext libmp3lame problem #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
what i am doing 

1. download lame - use config-lame
./configure -host=arm-apple-darwin --prefix=/Users/jason/Desktop/lame-398-2 --
libdir="/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/IphoneOS3.1.sdk/us
r/lib" 
arch=armv6 --disable-frontend --enable-static --disable-shared

2. it put static libs in the 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/IphoneOS3.1.sdk/usr/lib

then if i try to build ffmpeg with -enable-libmp3lame get "libmp3lame not 
found" 
./configure --as='gas-preprocessor.pl 
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4
.2.1' --
sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk  
--enable-
cross-compile --target-os=darwin --arch=arm  --cpu=cortex-a8 --enable-pic 
--extra-
cflags="-mfpu=neon -mfloat-abi=softfp" --extra-ldflags="-mfpu=neon 
-mfloat-abi=softfp"  
--enable-libmp3lame

any ideas -- this seems like it should work -- have tried all the --libdir & 
--incdir options 
hoping that would help point to the location of the libmp3lame -- what am i 
missing here

Original issue reported on code.google.com by laanlabs...@gmail.com on 13 Nov 2009 at 12:51

GoogleCodeExporter commented 8 years ago
If you're using the unmodified ffmpeg4iphone configure script, it will look in 

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/IphoneOS2.1.sdk/usr/lib

so try changing all instances of "2.1" to "3.1".

Original comment by yonas.ya...@gmail.com on 13 Nov 2009 at 1:31

GoogleCodeExporter commented 8 years ago
the scripts are all modified so its all sdk3.1 (and gcc4.2.1) the issue is that 
ffmpeg builds fine -- just that the 
flag --enable-libmp3lame triggers a not found error when the static libs for 
libmp3lame are in the 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/IphoneOS3.1.sdk/usr/lib - 
where i told the 
libmp3lame to put them and the ffmpeg to look, but still the error

Original comment by laanlabs...@gmail.com on 13 Nov 2009 at 5:04

GoogleCodeExporter commented 8 years ago
weird......I can't test this because I don't have 3.1 installed, but can you 
post
your configure script? 

Original comment by kudosco...@gmail.com on 13 Nov 2009 at 5:25

GoogleCodeExporter commented 8 years ago
for libmp3lame am using the 
http://ffmpeg4iphone.googlecode.com/files/configure-lame script modified to 
point to the 3.1 sdk and gcc 4.2.1 and using the 
http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-
October/076618.html process so can make the build take advantage of neon with 
-mfpu=neon - btw we are 
getting about a 20% performance improvement with configuring xcode and ffmpeg 
build to use neon

Original comment by laanlabs...@gmail.com on 13 Nov 2009 at 4:19

GoogleCodeExporter commented 8 years ago
sorry, I meant can you post your modified configure script.

Original comment by Yona...@gmail.com on 13 Nov 2009 at 4:22

GoogleCodeExporter commented 8 years ago
here is the modified configure-lame script

Original comment by laanlabs...@gmail.com on 13 Nov 2009 at 4:30

Attachments:

GoogleCodeExporter commented 8 years ago
I think "IphoneOS"  should be "iPhoneOS", as it's case-sensitive.

Original comment by Yona...@gmail.com on 13 Nov 2009 at 4:37

GoogleCodeExporter commented 8 years ago
good catch, but correcting that doent work-- i also tried you method with the 
patch and the configure and all 
works except using external libs like libmp3lame or faad - is there any chance 
this is a gcc-4.2.1 issue?

Original comment by laanlabs...@gmail.com on 14 Nov 2009 at 1:58

GoogleCodeExporter commented 8 years ago
Did you find an issue ?

Original comment by barrier....@gmail.com on 12 Apr 2010 at 1:31

GoogleCodeExporter commented 8 years ago
How are resolve this problem?

Original comment by alexande...@gmail.com on 29 Oct 2010 at 1:29