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

Buid of ffmpeg in a Mac OS system fails #137

Open
ssaguiar opened this issue Apr 4, 2016 · 6 comments
Open

Buid of ffmpeg in a Mac OS system fails #137

ssaguiar opened this issue Apr 4, 2016 · 6 comments

Comments

@ssaguiar
Copy link

ssaguiar commented Apr 4, 2016

When I getto the rake command,it fails with:

Executing cd FFmpeg; ./configure --disable-ffmpeg --disable-ffplay --disable-ffserver --disable-ffprobe --disable-doc --disable-bzlib --target-os=darwin --enable-cross-compile --enable-version3 --arch=arm --cpu=cortex-a8 --enable-pic --extra-cflags='-arch armv7 -miphoneos-version-min=6.0' --extra-ldflags='-arch armv7 -miphoneos-version-min=6.0' --extra-cflags='-mfpu=neon -mfloat-abi=softfp' --enable-neon --enable-optimizations --disable-debug --disable-armv5te --disable-armv6 --disable-armv6t2 --enable-small --cc=/Applications/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
/Applications/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang is unable to create an executable file.
C compiler test failed.

The gcc compiler is installed and works.

@RolandasRazma
Copy link

try #118

@ssaguiar
Copy link
Author

I downloaded again the project (cloned it) and get the same error.
I am using OSX El Captan 10.11.4 and Xcode 7.3.

ssaguiar@MacBookSergio:/Downloads$ git clone https://github.com/kolyvan/kxmovie.git
Cloning into 'kxmovie'...
remote: Counting objects: 565, done.
remote: Total 565 (delta 0), reused 0 (delta 0), pack-reused 565
Receiving objects: 100% (565/565), 1.50 MiB | 933.00 KiB/s, done.
Resolving deltas: 100% (351/351), done.
Checking connectivity... done.
ssaguiar@MacBookSergio:
/Downloads$ cd kxmovie
ssaguiar@MacBookSergio:/Downloads/kxmovie$ git submodule update --init
Submodule 'FFmpeg' (git://github.com/FFmpeg/FFmpeg.git) registered for path 'FFmpeg'
Submodule 'gas-preprocessor' (git://github.com/libav/gas-preprocessor.git) registered for path 'gas-preprocessor'
Cloning into 'FFmpeg'...
remote: Counting objects: 476030, done.
remote: Total 476030 (delta 0), reused 0 (delta 0), pack-reused 476030
Receiving objects: 100% (476030/476030), 159.84 MiB | 1.97 MiB/s, done.
Resolving deltas: 100% (371827/371827), done.
Checking connectivity... done.
Submodule path 'FFmpeg': checked out '1e25afc1811a279094ebc2bc6407715a439e09ee'
Cloning into 'gas-preprocessor'...
remote: Counting objects: 440, done.
remote: Total 440 (delta 0), reused 0 (delta 0), pack-reused 440
Receiving objects: 100% (440/440), 118.70 KiB | 0 bytes/s, done.
Resolving deltas: 100% (190/190), done.
Checking connectivity... done.
Submodule path 'gas-preprocessor': checked out 'cafe6e55a5606c5423c0a0e4045a97f2c3a86338'
ssaguiar@MacBookSergio:
/Downloads/kxmovie$ rake
Executing cd FFmpeg; ./configure --disable-ffmpeg --disable-ffplay --disable-ffserver --disable-ffprobe --disable-doc --disable-bzlib --target-os=darwin --enable-cross-compile --enable-version3 --arch=arm --cpu=cortex-a8 --enable-pic --extra-cflags='-arch armv7 -miphoneos-version-min=6.0' --extra-ldflags='-arch armv7 -miphoneos-version-min=6.0' --extra-cflags='-mfpu=neon -mfloat-abi=softfp' --enable-neon --enable-optimizations --disable-debug --disable-armv5te --disable-armv6 --disable-armv6t2 --enable-small --cc=/Applications/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
/Applications/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang is unable to create an executable file.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
rake aborted!
******** Build failed ********
/Users/ssaguiar/Downloads/kxmovie/Rakefile:8:in system_or_exit' /Users/ssaguiar/Downloads/kxmovie/Rakefile:159:inbuildArch'
/Users/ssaguiar/Downloads/kxmovie/Rakefile:207:in `block in <top (required)>'
Tasks: TOP => default => build_ffmpeg => build_ffmpeg_armv7
(See full trace by running task with --trace)

@jelerson
Copy link

You need to click into the guy's edit and copy paste it. The commit never got merged into the main branch.

Worked for me~

@lixianwa
Copy link

lixianwa commented May 18, 2016

First you need check what version iPhone sdk you have,then modify the value SDK_VERSION in Rakefile.
e.g:
2016-05-18 10 47 46
then i modify Rakefile like this:
2016-05-18 10 49 41

Then build ok for me.

@ripperhe
Copy link

@lionel0806 it works for me.

@wesleymonteiro
Copy link

worked for me too!! +1

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

6 participants