IOS ffmpeg compilation, C compiler test failed. Problem

Source: Internet
Author: User

How to compile ffmpeg using Automation scripts written by Daniel

Script Address: https://gist.github.com/m1entus/6983547

Run this script need to rely on a library Perl write script, search the Web currently compiled FFmpeg Library Post basically will mention this script, the script address is as follows: Https://github.com/mansr/gas-preprocessor.

After downloading these two scripts, the preparation for compiling the FFmpeg library is basically complete, followed by the following steps:

1, copy the gas-preprocessor.pl file to the/usr/bin directory.

2, modify the permissions of the gas-preprocessor.pl file

Note: You need to have read, write, and execute permissions. To do this, first enter the/usr/bin directory under the command line, and then execute the chmod command

chmod 777 gas-preprocessor.pl

3, switch build-ffmpeg.sh script directory, using the command SH build-ffmpeg.sh run the script can be.

Note: 1) The name of the parent directory of the build-ffmpeg.sh script cannot include spaces, which may cause the build to fail.

2) build-ffmpeg.sh script can be configured to compile the FFmpeg version, and use the iOS SDK version, the code snippet is as follows
   

############################################################################  Choose your ffmpeg version and your currently-installed iOS SDK version:#VERSION="2.0.2"SDKVERSION="7.0"

For more information on how to compile, visit http://www.cnblogs.com/weixhe/p/4218812.html

C compiler test failed. Problem solving

There are actually many reasons for this problem to arise. We can make the corresponding changes according to the log of its error.
I'll just say my mistake.
The reason I went wrong is that the tutorial above is a relatively old tutorial. Now the word ffmpeg seems to have reached the 3.0 version. And the script is just 2.0.
This is not the key, the key is that the iphone SDK version needs to be consistent with the version on your Mac .

1. Open the terminal.

Input and return

cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/developer/SDKs/

And then enter
ls
Can view the version of your current iOS SDK

2. Open the SH script.

Modify the iOS SDK version.
   

############################################################################  Choose your ffmpeg version and your currently-installed iOS SDK version:#VERSION="2.0.2"SDKVERSION="9.2"

3. Execute the script again

./install
Also, give me a link to a few other scripts, and I'll use the second one. That is, there is no link to the script given in the tutorial. But the usage is the same.

1.
Https://github.com/kewlbear/FFmpeg-iOS-build-script
This estimate is written by South Koreans, is I find a few in very good, high degree of automation, a key to do, to avoid their repeated configuration, especially for UNIX is not very familiar with people.

2.https://github.com/lvjian700/ffmpegc
This is written by the Chinese, but also very good.

3.http://blog.csdn.net/colorapp/article/details/42871267
This one's fine, too.

IOS ffmpeg compilation, C compiler test failed. Problem

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.