Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Working C Compiler found #6

Open
nagalladp opened this issue Jul 3, 2011 · 2 comments
Open

No Working C Compiler found #6

nagalladp opened this issue Jul 3, 2011 · 2 comments

Comments

@nagalladp
Copy link

Hi,

I am using build-armv6 build to compile the x264 using gcc4.2. Unfortuantely when I run the below command

CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 ./configure --host=arm-apple-darwin --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk --prefix='dist' --extra-cflags='-arch armv6' --extra-ldflags='-arch armv6' --enable-pic --disable-asm

I get No working C compiler found.

Any help to compile x264 and link to ffmpeg is highly appreciated.

Thanks,
/D

@vasudeivendran
Copy link

@nagalladp : i too faced same issue . any help?

@joejcon1
Copy link

I got this to compile correctly by changing the configure script to this:

#!/bin/sh
trap exit ERR

CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
SYSROOT=
./configure --host=arm-apple-darwin
--cross-prefix='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/'
--sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/
--prefix='dist'
--extra-cflags='-arch armv7'
--extra-ldflags=-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/system/
--extra-ldflags='-arch armv7'
--enable-pic \

make && make install

echo "Installed: $DIR/dist"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants