.in'ig.status: error: cannot find input file: `

发布时间 2023-12-28 17:20:48作者: shunxiang

交叉编译 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