繼承ipkPlayer中出現的一些錯誤彙總

一、下載完ffmpeg後,咱們再在終端執行下面兩個命令:

cd ios
./compile-ffmpeg.sh clean
./compile-ffmpeg.sh all

 

大致流程以下 node

 

 

 

 

 

 

 

 

 

 

 

 

這裏若是出現ios

xcrun -sdk iphoneos clang is unable to create an executable file.
C compiler test failed.xcode

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.orgmailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.app

解決辦法:
在終端執行sudo xcode-select --switch /Applications/Xcode.app,若是發現沒有編譯出FFmpeg-iOS,再繼續執行./compile-ffmpeg.sh all
 
 

二、若是提示以下錯誤:

./libavutil/arm/asm.S:50:9:error: unknown directiveiphone

         .archui

 

解決方法:
最新的 Xcode 已經弱化了對 32 位的支持,
在 compile-ffmpeg.sh中刪除armv7,
修改如:FF_ALL_ARCHS_IOS8_SDK="arm64 i386 x86_64"
再從新執行出現錯誤的命令: ./compile-ffmpeg.sh all便可。this

同時在項目中Build Settings--Valid Architectures 對應的也要刪除 armv7


3.出現下面的錯誤

 

這是由於在編譯SSl庫的時候也須要初始化openssl庫
解決方法:
在ios目錄下初始化openssl




參考:
https://www.jianshu.com/p/2e5b9a4f3ce4
https://www.jianshu.com/p/1f06b27b3ac0
相關文章
相關標籤/搜索