ios x264编译问题 No working C compiler found

转自:https://blog.csdn.net/laishuangquan/article/details/47610339

gcc的路径换了地方/Applications/Xcode.app/Contents/Developer/usr/bin/gcc

只要改成CC=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc ./configure --host=arm-apple-darwin --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk --prefix='dist' --extra-cflags='-arch armv7s' --extra-ldflags='-arch armv7s -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk/usr/lib/system' --enable-pic --enable-static

将语句中得8.4.sdk换成你现在的sdk
————————————————
版权声明:本文为CSDN博主「Forever_Laisq」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/laishuangquan/article/details/47610339

你可能感兴趣的:(ios x264编译问题 No working C compiler found)