33. Cannot find the cross compilation tool chain

One: prompt error:

/bin/sh: arm-hisiv100nptl-linux-g++: command not found
/bin/sh: arm-hisiv100nptl-linux-gcc: command not found
/bin/sh: arm-hisiv100nptl-linux-g++: command not found
/bin/sh: arm-hisiv100nptl-linux-gcc: command not found
/bin/sh: arm-hisiv100nptl-linux-gcc: command not found
/bin/sh: arm-hisiv100nptl-linux-gcc: command not found
/bin/sh: arm-hisiv100nptl-linux-g++: command not found
/bin/sh: arm-hisiv100nptl-linux-gcc: command not found
/bin/sh: arm-hisiv100nptl-linux-gcc: command not found
/bin/sh: arm-hisiv100nptl-linux-gcc: command not found

Two: Reason: The
cross-compilation tool chain cannot be found when compiling;

1. Check whether the cross-compilation tool chain has been deployed in the system;

2. If it has been deployed, whether the path of the cross-compilation tool chain has been written into the environment variable:

aston@ubuntu:~$ echo $PATH
/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin:/opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/bin:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
aston@ubuntu:~$ 

3. If not written, modify the environment variable:
export PATH=$PATH:/home/aston

aston@ubuntu:~$ export PATH=$PATH:/home/aston
aston@ubuntu:~$ echo $PATH
/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin:/opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/bin:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/aston
aston@ubuntu:~$ 

Three:
Compile again, success;

Guess you like

Origin blog.csdn.net/yanghangwww/article/details/111772458