交叉编译 libaac 库,源码下载地址 https://sourceforge.net/projects/faac/
解压
unzip faac-1.28.zip
cd faac-1.28.zip
执行./bootstrap 时出现如下错误
# ./bootstrap
-bash: ./bootstrap: /bin/sh^M: bad interpreter: No such file or directory
原因是 bootstrap 的文件格式是 DOS,使用如下方法改成 unix 的
使用 vim 打开 bootstrap,进入命令行模式(shift+;),用 set ff 查看文件格式,使用set ff=unix 改成 unix 格式,保存。
再次执行 ./bootstrap
在 .configure 的时候遇到如下错误
./configure
.....
.....
.....
checking for fpos_t.__pos... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
.in'ig.status: error: cannot find input file: `
原因也是文件格式的问题,改成 unix 格式
完整编译命令
./bootstrap
./configure --target=arm-linux --host=arm-linux-gnueabihf --enable-static --disable-shared --without-mp4v2 --prefix=/home/faac-1.28/install
make
make install
- cannot status error input findcannot status error input status_device_hardware_error status_device_hardware_error hardware 0000483 options cannot idea find directory cannot lstdc find cannot find lpthread build directory cannot find file cannot find makefile lpthread iostream cannot e447 find quot package cannot find