? ? ? ? iOS編譯ffmpeg庫 遇到GNU assembler not found, install/update gas-preprocessor??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 "config.log" produced by configure as this will help solve the problem問題腹暖。
直接上方法:下載gas-preprocessor,地址:https://github.com/libav/gas-preprocessor? ?下載后直接解壓。將gas-preprocessor.pl復(fù)制到/usr/local/bin? ?然后執(zhí)行命令行谆棱,chmod 777 /usr/local/bin/gas-preprocessor.pl? ?獲得權(quán)限趁桃。
遇到的坑:下載gas-preprocessor.pl時(shí)開始在網(wǎng)上找到地址是? https://github.com/mansr/gas-preprocessor 嗓违,解壓后文件夾中只有2個(gè)文件呻引。然后復(fù)制獲得權(quán)限之后重新編譯ffmpeg庫還是會(huì)遇到同樣的問題颜及,開機(jī)重啟也不起作用掖肋。后來看到http://www.360doc.com/content/14/0121/16/13084517_346905472.shtml? 受到啟發(fā)是不是ffmpeg庫版本不一樣所以腳本文件也會(huì)有不同版本仆葡,所以又在網(wǎng)上搜解決辦法,找到了不同的下載腳本地址,并嘗試終于成功沿盅。對(duì)于網(wǎng)上說的是復(fù)制到/usr/bin 或者/usr/sbin即使使用sudo都未能成功把篓。網(wǎng)上有開啟權(quán)限的方法,本人不建議嘗試腰涧。(出處:http://blog.csdn.net/a547720714/article/details/52678643? ?因?yàn)樗徽f了屏蔽做法韧掩,沒有寫開啟方法,萬一不能開啟不就費(fèi)了窖铡。)所以就復(fù)制到了/usr/local/bin? 可行疗锐。只是腳本版本的問題導(dǎo)致沒有解決。