问题描述:
make[3]: arm-none-linux-gnueabi-gcc:命令未找到
dfbinfo.mk:170: *** “GCC version should be gcc version 4.7.2. Your GCC version is 没有那个文件或目录 please check it!!”。 停止。
Remove object and library files.
Remove library and header files on rleased directory.
make[3]: Leaving directory ‘/home/chenjy/work/6A658/vendor/mstar/supernova/projects/tvos/mdroid/6.0/build’
make[3]: Entering directory ‘/home/chenjy/work/6A658/vendor/mstar/supernova/projects/dfbinfo’
dfbinfo.mk:170: *** “GCC version should be gcc version 4.7.2. Your GCC version is 没有那个文件或目录 please check it!!”。 停止。
make[3]: Leaving directory ‘/home/chenjy/work/6A658/vendor/mstar/supernova/projects/dfbinfo’
Makefile:853: recipe for target ‘clean_snlibs’ failed
make[2]: *** [clean_snlibs] Error 2
make[2]: Leaving directory ‘/home/chenjy/work/6A658/vendor/mstar/supernova/projects’
vendor/mstar/supernova/projects/Android.mk:409: recipe for target ‘supernova_clean’ failed
make[1]: *** [supernova_clean] Error 2
make[1]: Leaving directory ‘/home/chenjy/work/6A658’
build/core/main.mk:1045: recipe for target ‘clean’ failed
make: *** [clean] Error 2
make failed to build some targets (59 seconds)
ubuntu 16.04 的64位 安装arm-none-linux-gnueabi-gcc的步骤和问题解决
一 首先下载arm-none-linux-gnueabi-gcc交叉编译器,根据不同的需求请在网址:
https://launchpad.net/gcc-arm-embedded/+download 中下载所需的代码
二 建立一个目录,通过解压缩命令
tar -jxvf gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2
解压缩文件,然后
使用命令:vim /home/XXXX/.bashrc 编辑.bashrc文件,添加环境变量。
在该文件中最后一行添加:
export PATH=$PATH:/home/XXXX/arm/arm-linux-gcc-4.9.3/bin
最后执行: source /etc/bash.bashrc
三 由于64位下运行32编译器缺少相应的库文件,所以运行时会报错
./arm-none-eabi-gcc
bash: ./arm-none-eabi-gcc: No such file or directory
运行下面加载库文件的命令:
sudo apt-get install lib32ncurses5 lib32z1
就显示安装成功了,
参考:
https://www.cnblogs.com/dylancao/p/6364188.html