Believe that a lot of students want to get started Linux is a headache for Linux development environment, the previous use of command compilation, such as compiling main.c using the command arm-linux-gcc-o main main.c, very inconvenient to use, now have the Eclipse integrated development environment, Make the development simple.
First, make sure that the computer is properly installed with Eclipse and arm Linux GCC, I'm using Ubuntu 12.04 to install Eclipse, and arm Linux GCC, which has a lot of installation methods on the Web, and there's a whole bunch of them in the csdn that they're trying to install, Can learn a lot of things.
1. First build a PC project,
2. Select project Type and tool chain, we choose C Project/executable file/Empty project, use Linux GCC tool chain.
3. Create a new. c File after the project is completed
4. Enter a simple test procedure.
5. Click Save, then compile (shortcut key ctrl+b)
6. Compile complete without errors, you can run the
7. The final output, you can also use debug to debug the program, the method is very simple, here is not for example
Build Arm Linux Project,
1. Ensure arm Linux GCC is installed correctly and set environment variables
Input arm-linux-gcc-v in the terminal if the correct output of relevant information, you can do the following operation, otherwise please check the online data to set.
2. Also new C project
3. Select the executable file, and it is important to select the tool chain
Choose Cross gcc here, then you need to set up the ARM Linux GCC tool chain
4. This step is important to set up the ARM-LINUX-GCC tool chain, above a set compiler prefix arm-linux-
The following is a set of compiler path, that is, ARM-LINUX-GCC tools such as the path, according to their actual situation changes
5. Create new. c files after the same project is completed
6. Input simple code, in the left include inside can see the related arm-linux system header file directory
7. Finally save the compilation download to the Development Board run, note that this can not be directly debugged, the following will teach you to use Eclipse to develop embedded Linux-driven, very cool, integrated development environment is very convenient, the most convenient is to use ECLIPSE+GDB for remote debugging, look forward to follow-up ...