【错误记录】编译 Android 版本的 ijkplayer 报错 ( ./init-android.sh: 第 37 行: cd: android/contrib/: 没有那个文件或目录 )
生活随笔
收集整理的這篇文章主要介紹了
【错误记录】编译 Android 版本的 ijkplayer 报错 ( ./init-android.sh: 第 37 行: cd: android/contrib/: 没有那个文件或目录 )
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
文章目錄
- 一、報錯信息
- 二、解決方案
一、報錯信息
編譯 Android 版本的 ijkplayer 時 , 執行 init-android.sh 腳本 , 報如下錯誤 ;
root@octopus:~/ijkplayer/ijkplayer-android# ./init-android.sh git version 2.17.1 == pull ffmpeg base == 正克隆到 'extra/ffmpeg'... remote: Enumerating objects: 539054, done. remote: Total 539054 (delta 0), reused 0 (delta 0), pack-reused 539054 接收對象中: 100% (539054/539054), 203.52 MiB | 101.00 KiB/s, 完成. 處理 delta 中: 100% (418341/418341), 完成. == pull ffmpeg fork armv5 == 正克隆到 'android/contrib/ffmpeg-armv5'... 檢查連接中: 539054, 完成. 對象計數中: 539054, 完成. Delta compression using up to 4 threads. 壓縮對象中: 100% (119455/119455), 完成. 寫入對象中: 100% (539054/539054), 完成. Total 539054 (delta 418341), reused 539054 (delta 418341) 切換到一個新分支 'ijkplayer' /root/ijkplayer/ijkplayer-android == pull ffmpeg fork armv7a == 正克隆到 'android/contrib/ffmpeg-armv7a'... 檢查連接中: 539054, 完成. 對象計數中: 539054, 完成. Delta compression using up to 4 threads. 壓縮對象中: 100% (119455/119455), 完成. 寫入對象中: 100% (539054/539054), 完成. Total 539054 (delta 418341), reused 539054 (delta 418341) 切換到一個新分支 'ijkplayer' /root/ijkplayer/ijkplayer-android == pull ffmpeg fork arm64 == 正克隆到 'android/contrib/ffmpeg-arm64'... 檢查連接中: 539054, 完成. 對象計數中: 539054, 完成. Delta compression using up to 4 threads. 壓縮對象中: 100% (119455/119455), 完成. 寫入對象中: 100% (539054/539054), 完成. Total 539054 (delta 418341), reused 539054 (delta 418341) 切換到一個新分支 'ijkplayer' /root/ijkplayer/ijkplayer-android == pull ffmpeg fork x86 == 正克隆到 'android/contrib/ffmpeg-x86'... fatal: unable to access 'https://github.com/Bilibili/FFmpeg.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated. tools/pull-repo-ref.sh: 11: cd: can't cd to android/contrib/ffmpeg-x86 對象計數中: 25071, 完成. Delta compression using up to 4 threads. 壓縮對象中: 100% (6484/6484), 完成. 寫入對象中: 100% (25071/25071), 完成. Total 25071 (delta 15968), reused 25071 (delta 15968) ./init-android.sh: 第 37 行: cd: android/contrib/ffmpeg-x86: 沒有那個文件或目錄 root@octopus:~/ijkplayer/ijkplayer-android#二、解決方案
分析 init-android.sh 腳本內容 :
function pull_fork() {echo "== pull ffmpeg fork $1 =="sh $TOOLS/pull-repo-ref.sh $IJK_FFMPEG_FORK android/contrib/ffmpeg-$1 ${IJK_FFMPEG_LOCAL_REPO}cd android/contrib/ffmpeg-$1git checkout ${IJK_FFMPEG_COMMIT} -B ijkplayercd - }pull_fork "armv5" pull_fork "armv7a" pull_fork "arm64" pull_fork "x86" pull_fork "x86_64"上述 shell 腳本中的 pull_fork 方法 , 接收的參數主要是用于創建目錄 , 指定目錄名稱 ;
前面的幾個版本的 ffmpeg , 如 : " armv5 " , “armv7a” , “arm64” , “x86” , 下載檢出代碼都很成功 ,
但是最后的 “x86_64” 版本 , 出現
fatal: unable to access 'https://github.com/Bilibili/FFmpeg.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.問題 , 下載代碼失敗 , 導致很后面的內容報錯 ;
重復執行上述 ./init-android.sh 腳本 , 直到 555 個代碼全部克隆完畢 ;
總結
以上是生活随笔為你收集整理的【错误记录】编译 Android 版本的 ijkplayer 报错 ( ./init-android.sh: 第 37 行: cd: android/contrib/: 没有那个文件或目录 )的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Android NDK 开发】Andr
- 下一篇: 【错误记录】VMware 虚拟机报错 (