FAQs about using Eclipse in Ubuntu: 1. During cross-compilation, the system prompts that arm-linux-gcc cannot be found. 1. During cross-compilation, the cross-compilation tool must be installed, installation directory/usr/local/arm/3.4.1. You need to add the path/usr/local/arm/3.4.1/bin in/etc/environment. After modification, set it: PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:
FAQs about using Eclipse in Ubuntu:
I. During cross-compilation, the system prompts that arm-linux-gcc cannot be found.
1. During cross-compilation, you must install the cross-compilation tool. The installation directory is/usr/local/arm/3.4.1, you need to add the path/usr/local/arm/3.4.1/bin in/etc/environment and modify it:
PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: /usr/local/arm/3.4.1/bin "and edit/etc/bash. add export PATH =/usr/local/arm/3.4.1/bin: $ PATH
2. Configure the project as follows in Eclipse:
Create a new C Project in eclipse, click Project-> Properties, and click C/C ++ Build-> Settings in the pop-up box, replace the gcc c Compiler, Linker, and javaser commands with/usr/local/arm/3.4.1/bin/arm-linux-gcc and/usr/local/arm/3.4.1/bin/ arm-linux-, after adding the path/usr/local/arm/3.4.1/bin to/etc/environment, you can also directly enter arm-linux-gcc/.
2. When there is a thread function in the program, in the Project-> Properties dialog box that appears, click C/C ++ Build-> Settings to add pthread to the Libraries (-l) of gcc c Linker-> Libraries.