ubuntu14.04建立交叉编译环境, 注意事项

时间:2022-07-31 15:08:59

ubuntu14.04建立交叉编译环境, 注意事项

~$ arm-linux-gcc
/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gcc: 15: exec: /opt/FriendlyARM/toolschain/4.4.3/bin/.arm-none-linux-gnueabi-gcc: not found

问题分析:

ubuntu14.04 64位 缺少32位库

解决方法:

~$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

$ arm-linux-gcc test.c
/usr/local/arm/4.4.3/bin/../libexec/gcc/arm-none-linux-gnueabi/4.4.3/cc1: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

问题分析:

ubuntu14.04 64位 缺少32位库

解决方法:

~$ sudo apt-get install lib32stdc++6