偶然想起還有個(gè)簡(jiǎn)書賬號(hào)锥余,拿來記錄一下一個(gè)坑宴倍。
在移植ffmpeg到Android上時(shí) 遇到的問題記錄:
1直奋、ffmpeg的 ./configure 失敗
1.1 權(quán)限拒絕(Permission denied)或Sanity test failed:
解決: 需要root權(quán)限且使用bash命令,或用sudo bash ./configure 或在su下 bash ./configure;
也可以直接通過chmod給其加上x權(quán)限chmod +x configure 九杂,再執(zhí)行 ./configure 命令颁湖。
微信截圖_20210914174039.png
1.2 出現(xiàn) C compiler test failed:(根據(jù)config.log的敘述判斷,log顯示gcc is unable to create an executable file.)
解決:大概率是系統(tǒng)沒有裝 gcc 執(zhí)行 sudo apt-get install gcc
備注:需要根據(jù)實(shí)際log信息來更改.sh文件和處理該問題例隆。
微信截圖_20210914174130.png