Use Eclipse integrated development environment to develop ARM Linux programs
I believe that many users who want to get started with Linux have a headache in the Linux development environment. They used to compile commands, such as compiling main. c use the command arm-Linux-gcc-o main. c. it is inconvenient to use. Now we have the Eclipse integrated development environment, which makes development easier.
First, make sure that Eclipse is correctly installed on the computer, as well as arm Linux gcc. I have installed Eclipse on Ubuntu 12.04 and arm Linux gcc. There are many ways to install it on our house, you can learn a lot by yourself.
1. First establish a PC project,
2. Select the project type and tool chain. Select the c Project, executable file, and empty project and use the Linux gcc tool chain.
3. Create a. c file after the project is created
4. Enter a simple test program.
5. Click Save and compile (shortcut: ctrl + B)
6. There is no error after compilation is completed. You can run it.
7. The final output result can also be debugged using DEBUG. The method is very simple and will not be used here as an example.
Create an ARM Linux project,
1. Ensure that the gcc installation in arm Linux is correct and environment variables have been set.
Enter arm-Linux-gcc-v in the terminal. If you can output the relevant information correctly, you can perform subsequent operations. Otherwise, please refer to the online materials for configuration.
2. Create a C Project
3. Select an executable file. It is also important to select a tool chain.
Select cross gcc. You need to set the arm Linux gcc tool chain later.
4. This step is very important. Set the arm-Linux-gcc tool chain. The above one sets the compiler prefix arm-Linux-
The following is the path for setting the compiler path, that is, the path of tools such as arm-Linux-gcc, which can be changed according to your actual situation.
5. Create a. c file after the same project is created
6. Enter simple code and you can see the system header file directory of arm-Linux in the include on the left.
7. finally, save the compilation and download to the Development Board for running. Note that this cannot be directly debugged. Later, we will teach you how to use Eclipse to develop an embedded Linux driver. It is very nice and the integrated development environment is very convenient, the most convenient method is to use Eclipse + GDB for remote debugging. We look forward to the future...
-------------------------------------- Split line --------------------------------------
Install Java 8 and Eclipse 14.04 on Ubuntu 4.4 LTS
Hadoop Eclipse plug-in compilation and installation 1.2.0
Compile Hadoop plug-in Eclipse
Hadoop 1.2.1 compile Eclipse plug-in
Install JDK and Eclipse for C/C ++ in Ubuntu 13.10 (solving global menu problems)
How to install the latest Eclipse version in Ubuntu 14.04
-------------------------------------- Split line --------------------------------------
Eclipse details: click here
Eclipse: click here
This article permanently updates the link address: