Update the instructions for configuring a build for iOS

Message ID 1395686454-65239-1-git-send-email-martin@martin.st
State Superseded
Headers show

Commit Message

Martin Storsjö March 24, 2014, 6:40 p.m.
The previous instructions were woefully outdated.
---
 README | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

Comments

Luca Barbato March 24, 2014, 7:35 p.m. | #1
On 24/03/14 19:40, Martin Storsjo wrote:
> The previous instructions were woefully outdated.
> ---
>  README | 9 ++-------
>  1 file changed, 2 insertions(+), 7 deletions(-)
> 
> diff --git a/README b/README
> index d903ba1..ef235b7 100644
> --- a/README
> +++ b/README
> @@ -1,13 +1,8 @@
> -To configure ffmpeg for the iPhone 3gs and iPod touch 3g:
> +To configure Libav for the iPhone 3gs and iPod touch 3g:
>  
> -./configure --enable-cross-compile --arch=arm --target-os=darwin --cc='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -arch armv7' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk --cpu=cortex-a8 --enable-pic
> -
> -To configure ffmpeg for all other iPhones and iPods:
> -
> -./configure --enable-cross-compile --arch=arm --target-os=darwin --cc='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -arch armv6' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk --cpu=arm1176jzf-s
> +./configure --enable-cross-compile --arch=arm --target-os=darwin --cc='clang -arch armv7' --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk --cpu=cortex-a8 --enable-pic
>  
>  Make sure to replace the iPhone SDK version with the version that you're using.
> -Pre-3.0 versions aren't supported and probably won't work.
>  
>  If deploying to all generations, it's recommended to do separate out-of-tree
>  builds for each architecture, then lipo together the resulting libs. For
> 

Looks fine we might start using the xcrun shorthands instead of using
the full paths nowadays?

lu
Vittorio Giovara March 25, 2014, 8:17 a.m. | #2
On Mon, Mar 24, 2014 at 7:40 PM, Martin Storsjo <martin@martin.st> wrote:
> The previous instructions were woefully outdated.
> ---
>  README | 9 ++-------
>  1 file changed, 2 insertions(+), 7 deletions(-)
>
> diff --git a/README b/README
> index d903ba1..ef235b7 100644
> --- a/README
> +++ b/README
> @@ -1,13 +1,8 @@
> -To configure ffmpeg for the iPhone 3gs and iPod touch 3g:
> +To configure Libav for the iPhone 3gs and iPod touch 3g:
>

I would just drop the 3g part nowadays, ok for the rest

Patch

diff --git a/README b/README
index d903ba1..ef235b7 100644
--- a/README
+++ b/README
@@ -1,13 +1,8 @@ 
-To configure ffmpeg for the iPhone 3gs and iPod touch 3g:
+To configure Libav for the iPhone 3gs and iPod touch 3g:
 
-./configure --enable-cross-compile --arch=arm --target-os=darwin --cc='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -arch armv7' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk --cpu=cortex-a8 --enable-pic
-
-To configure ffmpeg for all other iPhones and iPods:
-
-./configure --enable-cross-compile --arch=arm --target-os=darwin --cc='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -arch armv6' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk --cpu=arm1176jzf-s
+./configure --enable-cross-compile --arch=arm --target-os=darwin --cc='clang -arch armv7' --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk --cpu=cortex-a8 --enable-pic
 
 Make sure to replace the iPhone SDK version with the version that you're using.
-Pre-3.0 versions aren't supported and probably won't work.
 
 If deploying to all generations, it's recommended to do separate out-of-tree
 builds for each architecture, then lipo together the resulting libs. For