Use Eclipse C/C ++ to build an integrated development environment for ARM-Linux
I think it is not convenient to write code in Linux, so I plan to build a development environment on windows. In fact, I have also set up a development environment on Linux, but it is not very user-friendly to use, especially when there are many files. Next, we will use Eclipse for development on windows. [Later I found that I still need to program in Linux. Because Windows cannot contain some Linux header files, I will introduce how to build Eclipse in Linux ].
Build an Eclipse environment in Windows:
1. Download and install Eclipse C/C ++
2. download the cross compiler, previously used in Linux arm-linux-gcc, and later use TI ti-sdk-am335x-evm-08 development kit, which installed the compiler is arm-none-linux-gnueabi-gcc, I also chose arm-none-linux-gnueabi-gcc as the cross compiler. Download the windows compiler and install it.
: Http://www.veryarm.com/arm-none-linux-gnueabi-gcc
3. Enable the ssh remote logon function of Eclipse. I have enabled the ssh terminal function of Beaglebone Black and Linux respectively, which is very convenient to operate.
4. create a C Project "hello" and write simple hello code. Select the cross-compilation option, cross-compiler Prefix: "arm-none-linux-gnueabi-" cross-compiler path: select the path for installing arm-none-linux-gnueabi-gcc "… An error will be reported during Linux \ compiler compilation.
Image and text Installation Reference:
5. During debugging (Ctrl + B construction), The makefile is automatically generated, the compilation result is generated, and run on the ARM embedded platform. The makefile is successfully executed and the "hello" is output ".
Build an Eclipse environment in Linux:
Download http://www.eclipse.org/downloads/
Pay-as-you-go
Sudo apt-get install eclipse is installed directly
After sudo eclipse-s is started, it finds that there is no ssh remote logon option in "window-> Open View". Baidu finds that it is an Eclipse plug-in and queries this software: sudo apt-cache search Remote System Explorer, found an eclipse-rse, it is, and then directly install: sudo apt-get install eclipse-rse
Restart eclipse
When a new project is created, no C/C ++ project is found, and only a Java project is found. search sudo apt-cache again to search eclipse C/C ++
One of them is found:
Eclipse-cdt-C/C ++ Development Tools for Eclipse
Continue installation:
Sudo apt-get install eclipse-cdt
Restart eclipse again and you will have the C/C ++ project.
Create a C Project and add a compiler:
Arm-none-linux-gnueabi-
/Opt/toolschain/4.4.3/bin
Compile hello program, compile OK, and execute on BBB. Success!
-------------------------------------- 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: