Problem: Ubuntu: version 18.04, cross compilation code error arm-linux-gnueabihf-g++: error trying to exec ‘cc1plus’: execvp: No such file or directory
Solution: you can see that here is the cross compilation tool. In this case, you can look at the cross compilation tool folder and export the environment variable “path”,
Like mine
export PATH=$PATH:/opt/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin
In order to make it permanent, you can modify the/etc/profile or ~ /. Brashrc file. The article on the difference between them and searching for the permanent effect of Linux environment variables should be introduced
[key] the cross compilation tool chain must be decompressed and copied to the specified path (or directly decompressed to the specified path). Do not only copy some tools to their own tool chain path after decompressing, which is easy to make strange and impossible errors!!!
If it is not cross compiling, the solution is simple. Install G + + tools!
Similar Posts:
- [Solved] JPype Error: FileNotFoundError: [Errno 2] No such file or directory: ‘/usr/lib/jvm’
- [Solved] Linux Core Compile Error: No rule to make … ipt_ecn.c
- Linux cron has no effect after executing the script, and the log reports an error orphan (no passwd entry)
- Linux: Environment Variables C_INCLUDE_PATH, CPLUS_INCLUDE_PATH, CPATH Common Error [How to Solve]
- SDK manager cannot open the solution (Android)
- Solve the problem of ADB: command not found on MAC
- Linux: How to configurate Environment Variables
- zsh: exec format error [How to Solve]
- [Solved] JSCH cannot run JAVA bash:java:Command not found.
- Unzip decompression failed (cannot find zipfile directory)