在安装LS1028A的 OpenIL(open industry linux) 环境时遇到错误,
NXP官方的操作流程:
$ git clone https://github.com/openil/openil.git
$ cd openil
$ git checkout OpenIL-201908 -b OpenIL-201908
$ make nxp_ls1028ardb-64b_ubuntu_defconfig
$ make
遇到这个错误
./bootstrap: 4: ./bootstrap: aclocal: not found
./bootstrap: 5: ./bootstrap: autoheader: not found
./bootstrap: 6: ./bootstrap: libtoolize: not found
./bootstrap: 7: ./bootstrap: automake: not found
./bootstrap: 8: ./bootstrap: autoreconf: not found
/bin/bash: ./configure: No such file or directory
package/pkg-generic.mk:206: recipe for target '/home/nishant/gitRepos/openil/output/build/libnfc-nci-R2.4/.stamp_configured' failed
make: *** [/home/nishant/gitRepos/openil/output/build/libnfc-nci-R2.4/.stamp_configured] Error 127
网上查了说需要执行sudu apt update,执行这个的时候又遇到下面的错误
Error in `appstreamcli’: double free or corruption (!prev): 0x08d10178
错误的最后一行提示:
E: Sub-process returned an error code
于是又执行如下命令
sudo apt purge libappstream3
这时又出现一个小错误
rmdir: failed to remove ‘/var/cache/app-info/’: Directory not empty
再次执行
sudo apt autoremove
这下总算没有error了,只有warnning,继续回头执行
sudo apt update
没有遇到问题,通过。
我最终的目的是为了解决 1028A 的openIL,
再继续解决这个问题,执行
$ sudo apt-get install git make gcc g++ python autoconf automake libtool dh-autoreconf pkg-config
还是有错误,于是我又去执行了一次
sudo apt-get update
再次执行
$ sudo apt-get install git make gcc g++ python autoconf automake libtool dh-autoreconf pkg-config
通过!!这背后的原因没有去花时间研究。
再次执行
经过漫长的等待后,well done !!!
进入 ./output/images
需要烧录文件都编译好啦!!!
后期编译时,执行
make menuconfig
提示错误,
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[2]: *** [scripts/kconfig/dochecklxdialog] Error 1
make[1]: *** [menuconfig] Error 2
make[1]: Leaving directory `/opt/linux/3.14-1.14/linux'
make: *** [menuconfig-linux] Error 2
ncurses在字符终端(terminal)提供了类GUI的用户接口,所以需要安装ncruses。
sudo apt-get install libncurses5-dev
再次执行make menuconfig
PASS !!