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

iOS 编译失败 C compiler test failed. #67

Open
DamonChen117 opened this issue Aug 12, 2021 · 3 comments
Open

iOS 编译失败 C compiler test failed. #67

DamonChen117 opened this issue Aug 12, 2021 · 3 comments

Comments

@DamonChen117
Copy link

DamonChen117 commented Aug 12, 2021

iOS 编译失败

====================
[*] check xcode version

FF_ALL_ARCHS = armv7 arm64 i386 x86_64

[*] check host

FF_ARCH=armv7
FF_BUILD_OPT=
build_root: /Users/damon/Documents/ijkplayer-ios/ios

[*] check gas-preprocessor

gasp: /Users/damon/Documents/ijkplayer-ios/ios/../extra/gas-preprocessor/gas-preprocessor.pl

[*] config arch armv7

build_name: ffmpeg-armv7
platform: iPhoneOS
osversion: -miphoneos-version-min=6.0

[*] make ios toolchain ffmpeg-armv7

build_source: /Users/damon/Documents/ijkplayer-ios/ios/ffmpeg-armv7
build_prefix: /Users/damon/Documents/ijkplayer-ios/ios/build/ffmpeg-armv7/output


[*] configurate ffmpeg


[*] check OpenSSL


[*] configure

config: --disable-gpl --disable-nonfree --enable-runtime-cpudetect --disable-gray --disable-swscale-alpha --disable-programs --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-avdevice --enable-avcodec --enable-avformat --enable-avutil --enable-swresample --enable-swscale --disable-postproc --enable-avfilter --disable-avresample --enable-network --disable-dxva2 --disable-vaapi --disable-vda --disable-vdpau --disable-encoders --disable-hwaccels --disable-muxers --disable-devices --disable-iconv --enable-protocol=async --enable-cross-compile --disable-stripping --arch=armv7 --target-os=darwin --enable-static --disable-shared --enable-pic --enable-neon --enable-optimizations --enable-debug --enable-small --prefix=/Users/damon/Documents/ijkplayer-ios/ios/build/ffmpeg-armv7/output xcrun -sdk iphoneos clang
xcrun -sdk iphoneos 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
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.

@DamonChen117 DamonChen117 changed the title iOS iOS 编译失败 C compiler test failed. Aug 12, 2021
@DamonChen117
Copy link
Author

执行下面的命令就可以了:
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer

但是又有新的问题
./libavutil/arm/asm.S:50:9: error: unknown directive
.arch armv7-a
^

@DamonChen117
Copy link
Author

DamonChen117 commented Aug 12, 2021

通过下面链接解决 armv7 问题
https://blog.csdn.net/qiuchangyong/article/details/100781700

但是执行 xcodebuild -project IJKMediaPlayer.xcodeproj -configuration Release -scheme Universal 时提示
xcodebuild: error: The project named "IJKMediaPlayer" does not contain a scheme named "Universal".

Schemes 只有下面两个没有 Universal:
    IJKMediaFramework
    IJKMediaFrameworkWithSSL

在k0.8.8分支下没有下面的文件,master 分支有的:
ijkplayer/ios/IJKMediaPlayer/IJKMediaPlayer.xcodeproj/xcshareddata/xcschemes/Universal.xcscheme

@tolink-Mengtianfu
Copy link

后来解决了吗,我也遇到了同样的问题 @DamonChen117

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

2 participants