Install Eclipse CDT + GCC in Linux
2. Download JDK and select Linux32-bit. Unzip the default directory: jdk1.8.0 _ 20.Copy the folder to jvm.
Sudo cp-r ~ /Jdk1.8.0 _ 20 // usr/lib/jvm /;
3. Modify the profile ):
# Configure Environment Variables
Sudo gedit ~ /. Profile
Add:
Export JAVA_HOME =/usr/lib/jvm/jdk1.8.0 _ 20
Save and close, and use source to update
$ Source ~ /. Profile
Use the env command to view the JAVA_HOME Value
$ Env
If JAVA_HOME =/usr/lib/jvm/jdk1.8.0 _ 20, the configuration is successful.
4. Modify the default JDK
# Modify the system's default jdk
$ Sudo update-alternatives -- install/usr/bin/java/usr/lib/jvm/jdk1.8.0.5/bin/java 300
Just enter the number before sun jdk.
$ Sudo update-alternatives -- install/usr/bin/javac/usr/lib/jvm/jdk1.8.0.5/bin/javac 300
$ Sudo update-alternatives -- config java
$ Sudo update-alternatives -- config javac
Select a new mode.
5. Open Eclipse and install CDT
Installation Source:
Software repository: http://download.eclipse.org/tools/cdt/releases/8.4
6. Update gcc
Note that there is a space between dep gcc
Sudo apt-get build-dep gcc
7. Select Linux GCC for the new project.
Ubuntu 12.04 embedded cross-compilation environment arm-linux-GCC Build Process Diagram
Install the cross-compiler arm-none-linux-gnueabi-GCC in Ubuntu 12.10
Install and use Vim + GCC + GDB in Ubuntu
Switch two GCC versions in Ubuntu
GCC details: click here
GCC: click here
This article permanently updates the link address: