交叉编译FAAD2
2020-11-19 本文已影响0人
客昂康
faad2是AAC音频解码器,网址,或者GitHub。
如果网址失效,可从下图提取源码文件:

解压后进入目录,执行命令
./bootstrap
。
chmod +x bootstrap
./bootstrap
稍等片刻既生成configure
文件。
如果提示 "./bootstrap: 12: ./bootstrap: aclocal: not found" 错误,需先安装 automake
。
如果提示 "./bootstrap: 14: ./bootstrap: libtoolize: not found" 错误,需先安装 libtool
。
sudo apt-get install automake
sudo apt-get install libtool
生成configure
文件后执行该命令可生成 Makefile
文件:
./configure --host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc --enable-shared --prefix=/home/xk/faad2
最后执行make
和make install
,编译好的文件被放到/home/xk/faad2
目录。
make
make install