FFmpeg configure script, iOS 4.3, XCode 3.2.6

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

FFmpeg configure script, iOS 4.3, XCode 3.2.6

Brent Murata
Hello,

I'm having problems with the FFmpeg configure scripts, iOS 4.3, and XCode
3.2.6.  I am a novice when it comes to gcc, so please forgive my questions.
 FYI, it seems that iOS 4.1, XCode 3.2.6 works ok.

I've tried the built in configure scripts without success.  At the command
prompt I enter:

./configure
--cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc --as='
gas-preprocessor.pl/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc'
--sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
--enable-cross-compile --target-os=darwin --cpu=arm1176jzf-s --arch=arm
--extra-cflags='-arch armv6' --extra-ldflags='-arch armv6'

I have the FFmpeg git snapshot from 3/31/2011.

I've placed the gas-preprocessor.pl file in /usr/local/bin/

The error message is:  ld: file not found: /usr/lib/system/libcache.dylib
for architecture armv6

Config.log is attached.

I've read online that when using version 3.2.6 and version 4.0 of XCode we
should be using -isysroot instead of --sysroot.  I tried this without
success.

Any advice / help would be much appreciated.

Thanks,
Brent Murata

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

config.log (95K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: FFmpeg configure script, iOS 4.3, XCode 3.2.6

Leo Izen
On Fri, Apr 1, 2011 at 8:46 PM, Brent Murata <[hidden email]> wrote:

> Hello,
>
> I'm having problems with the FFmpeg configure scripts, iOS 4.3, and XCode
> 3.2.6.  I am a novice when it comes to gcc, so please forgive my questions.
>  FYI, it seems that iOS 4.1, XCode 3.2.6 works ok.
>
> I've tried the built in configure scripts without success.  At the command
> prompt I enter:
>
> ./configure
> --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc --as='
>
> gas-preprocessor.pl/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
> '
>
> --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
> --enable-cross-compile --target-os=darwin --cpu=arm1176jzf-s --arch=arm
> --extra-cflags='-arch armv6' --extra-ldflags='-arch armv6'
>
> I have the FFmpeg git snapshot from 3/31/2011.
>
> I've placed the gas-preprocessor.pl file in /usr/local/bin/
>
> The error message is:  ld: file not found: /usr/lib/system/libcache.dylib
> for architecture armv6
>
> Config.log is attached.
>
> I've read online that when using version 3.2.6 and version 4.0 of XCode we
> should be using -isysroot instead of --sysroot.  I tried this without
> success.
>

1. Try adding --extra-cflags='--sysroot ...' and --extra-ldflags='-isysroot
...'
According to this page: http://www.doitscared.com/?p=521 that's what you
should do.

2. Will this new FFmpeg be on Cydia, or is it a private build for an App
Store App?


>
> Any advice / help would be much appreciated.
>
> Thanks,
> Brent Murata
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: FFmpeg configure script, iOS 4.3, XCode 3.2.6

kushal
Hi,

In ffmpeg configuration script by default Library path set to "/usr/lib/system" so it can not find library libcache.dylib,so we have to set latest sdk path.

Please try by adding extra ldflags as shown below with your ./configure script.

--extra-ldflags=-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib/system

I have just add this flag and compiled ffmpeg for armv7 and iPhoneOS4.3 sdk with success.

Thanks,
Kushal Patel