quanarmy / ffmpeg4iphone

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

iPhone OS 3.0/3.1 compile problems #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there,

I'm trying to compile the ffmpeg libs for the new iPhone SDK 3.1 but i'm
getting some errors that i'm not really able to fix.

What steps will reproduce the problem?
1. Follow http://code.google.com/p/ffmpeg4iphone/wiki/Build_Instructions
instructions
2. everything is fine until: ./configure-iphone-v0.0.5

What is the expected output? What do you see instead?
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4
.0.1
is unable to create an executable file.
C compiler test failed.

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.

Here is the output: http://pastebin.com/fd6ae97b

After changing the script to point to the right compiler (tested 4.0.1 and
4.2.1) and libs (iPhone SDK 3.1). Find the script here:
http://pastebin.com/f7cc5d89a

Here is the output: http://pastebin.com/f5a0f1b20

What version of ffmpeg4iphone are you using? On what operating system?
r19606 with 0.0.5 patch/configure script on:
Mac OS X 10.6 (10A432)
Darwin 10.0.0
Snow Leopard

Thanks for any help!

Original issue reported on code.google.com by kraetzsc...@free.fr on 11 Sep 2009 at 3:05

GoogleCodeExporter commented 9 years ago
Sorry forgot the output when i'm using gcc 4.2(.1): http://pastebin.com/f8e63f15

Cheers

Original comment by kraetzsc...@free.fr on 11 Sep 2009 at 3:10

GoogleCodeExporter commented 9 years ago
Hi,

The output of http://pastebin.com/f5a0f1b20 seems to be good. The script 
couldn't
find the faad library installed. I think your compile will work if you remove 
the
libraries you haven't installed yet from the ffmpeg4iphone configure script 
(i.e. in
the line

./configure --enable-cross-compile --target-os=darwin
--cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-
gcc-4.0.1
--extra-cflags="-arch armv6 -pipe -miphoneos-version-min=3.1 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk
-I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk/usr/incl
ude/gcc/darwin/4.0"
arch=armv6
--extra-ldflags="-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/IphoneO
S3.1.sdk/usr/lib"
--prefix=/Users/yonas/ffmpeg-install --disable-shared --enable-static 
--disable-mmx
--disable-iwmmxt --disable-neon --disable-armvfp --enable-libfaad --enable-gpl
--enable-libvorbis --enable-libfaac --enable-libtheora --enable-libx264
--enable-libmp3lame --enable-postproc --disable-armv5te --enable-armv6
--disable-debug --disable-stripping --enable-avfilter --enable-avfilter
--enable-avfilter-lavf --arch=arm --enable-nonfree
)

Original comment by yonas.ya...@gmail.com on 11 Sep 2009 at 6:05

GoogleCodeExporter commented 9 years ago
Great! Thank you.

Got this now: http://pastebin.com/f5ebb538d

Seems fine, now i have to test, maybe tomorrow.

Thanks again

Original comment by kraetzsc...@free.fr on 11 Sep 2009 at 6:37

GoogleCodeExporter commented 9 years ago
Ok i compiled it successfuly without faac faad x264 and other enabled libs.

I will test the implementation now.

Cheers

Original comment by kraetzsc...@free.fr on 12 Sep 2009 at 10:58

GoogleCodeExporter commented 9 years ago

Original comment by yonas.ya...@gmail.com on 4 Oct 2009 at 5:02