Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:eclipse [2011/11/27 21:56] – created petz | en:eclipse [2022/08/04 15:02] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 8: | Line 8: | ||
* Eclipse Indigo | * Eclipse Indigo | ||
* CDT 8.0 | * CDT 8.0 | ||
- | * TQMa28 with i.MX28 (ARM9) | + | * TQMa28 with i.MX28 (1 x Arm926EJ-S< |
- | * TQMa35 with i.MX35 (ARM11) | + | * TQMa35 with i.MX35 (1 x Arm1136JF-S< |
* LTIB 9.1.1 | * LTIB 9.1.1 | ||
* ELDK 4.2 | * ELDK 4.2 | ||
- | ===== Installation ===== | + | ===== Installation ==== |
==== Download complete package ==== | ==== Download complete package ==== | ||
- | In the repositories Ubuntu 10.04 provides the Eclipse Galileo. The version of CDT for Eclipse Galileo is 6.0.2, this does not yet support features for cross-compiling. For Ubuntu 10.04 we get the packed version of Eclipse Indigo with CDT 8.0. These and possibly newer ones are available at the following download page: | + | In the repositories Ubuntu 10.04 provides the Eclipse Galileo. The version of CDT for Eclipse Galileo is 6.0.2, this does not yet support features for cross-compiling. For Ubuntu 10.04 we get the packed version of Eclipse Indigo with CDT 8.0. These and possibly newer ones are available at the following download page: |
http:// | http:// | ||
Line 23: | Line 25: | ||
Alternatively, | Alternatively, | ||
- | '' | + | **Eclipse IDE for C/C++ Linux Developers (includes Incubating components)** |
The executable Eclipse is in the extracted folder. No plugins have to be installed. Sometimes it may happen, however, that a Java runtime environment is required to execute Eclipse. This is installed with the following command: | The executable Eclipse is in the extracted folder. No plugins have to be installed. Sometimes it may happen, however, that a Java runtime environment is required to execute Eclipse. This is installed with the following command: | ||
Line 30: | Line 32: | ||
user@ubuntu: | user@ubuntu: | ||
</ | </ | ||
+ | |||
==== Installation using apt-get ==== | ==== Installation using apt-get ==== | ||
The Eclipse platform is installed with apt-get: | The Eclipse platform is installed with apt-get: | ||
Line 37: | Line 40: | ||
</ | </ | ||
- | <note warning> | + | |
- | Ubuntu 10.04 supplies the very old Eclipse Galileo. It is recommended to dirctly download a newer packet. See[[Eclipse# | + | <WRAP round important> |
- | </note> | + | Ubuntu 10.04 supplies the very old Eclipse Galileo. It is recommended to dirctly download a newer packet. See [[Eclipse#download_complete_package]] |
- | <note tip> | + | </WRAP> |
+ | |||
+ | <WRAP round tip> | ||
The package Eclipse-platform only contains the platform and no language-specific plugins. These must be installed separately using the plugin manager. An existing installation of Eclipse can be used as well. | The package Eclipse-platform only contains the platform and no language-specific plugins. These must be installed separately using the plugin manager. An existing installation of Eclipse can be used as well. | ||
- | </note> | + | </WRAP> |
===== Configuration ===== | ===== Configuration ===== | ||
Line 48: | Line 53: | ||
**Environment**: | **Environment**: | ||
- | <note important> | + | <WRAP round important> |
Starting Eclipse by double clicking in the file explorer does not take on the environment variables of the shell. | Starting Eclipse by double clicking in the file explorer does not take on the environment variables of the shell. | ||
- | </note> | + | </WRAP> |
The first way to use Eclipse with the environment variables is to start Eclipse from the console. | The first way to use Eclipse with the environment variables is to start Eclipse from the console. | ||
Line 71: | Line 76: | ||
By right click and '' | By right click and '' | ||
- | {{ :Eclipse: | + | {{:eclipse: |
===== Creating a new cross compiler project ===== | ===== Creating a new cross compiler project ===== | ||
* Menu '' | * Menu '' | ||
Line 89: | Line 94: | ||
* Project can be built manually at the console | * Project can be built manually at the console | ||
- | . | ||
Line 98: | Line 102: | ||
- Close the wizard with '' | - Close the wizard with '' | ||
- | | + | |
- | - Right click on the project name and select '' | + | - The project with existing source files should now show up on the left of the Project Explorer. Now the automatic makefile has to be disabled in the project properties. |
- | | + | - Right click on the project name and select '' |
- | - The binary with the additional information about the architecture, | + | |
- | <note> | + | {{:eclipse: |
- | The wrong compiler was chosen if the host architecture (e.g. x86) is stated instead of " | + | |
- | </note> | + | Build the project with a click on the hammer. |
+ | - The binary with the additional information about the architecture, | ||
+ | {{:eclipse: | ||
+ | |||
+ | <WRAP round info> | ||
+ | The wrong compiler was chosen if the host architecture (e.g. x86) is stated instead of " | ||
+ | |||
+ | [[en: | ||
+ | |||
+ | </WRAP> | ||
+ | |||
===== Cross compiling with Eclipse ===== | ===== Cross compiling with Eclipse ===== | ||
In Eclipse a project can be compiled for a different platform. Therefore a call of the target-specific compiler is required. Using the C compiler that comes with the package LTIB, the necessary settings in Eclipse are illustrated here. For this example, this is GCC 4.3.3. | In Eclipse a project can be compiled for a different platform. Therefore a call of the target-specific compiler is required. Using the C compiler that comes with the package LTIB, the necessary settings in Eclipse are illustrated here. For this example, this is GCC 4.3.3. | ||
Line 144: | Line 159: | ||
</ | </ | ||
- | <note> | + | |
+ | <WRAP round info> | ||
Copying directly into LTIB RootFS only works if the user rights of Eclipse permit to write to that location. The rights of the target directory must be set accordingly before, if necessary. | Copying directly into LTIB RootFS only works if the user rights of Eclipse permit to write to that location. The rights of the target directory must be set accordingly before, if necessary. | ||
- | </note> | + | </WRAP> |
===== Demo project ===== | ===== Demo project ===== | ||
- | {{: | + | [[: |
A "Hello World" demo project was created. With a correctly installed and configured ELDK this project should compile with Eclipse and CDT. | A "Hello World" demo project was created. With a correctly installed and configured ELDK this project should compile with Eclipse and CDT. | ||
Line 158: | Line 174: | ||
In the next form select the downloaded ZIP archive and complete the import with " | In the next form select the downloaded ZIP archive and complete the import with " | ||
{{ : | {{ : | ||
- | <note tip> | + | |
+ | |||
+ | |||
+ | |||
+ | |||
+ | <WRAP round tip> | ||
Should there be problems when compiling, you can first run the build process on the console with a direct call of '' | Should there be problems when compiling, you can first run the build process on the console with a direct call of '' | ||
- | </note> | + | </WRAP> |
- | ===== Debugging ===== | ||
- | * [[Eclipse: | ||
- | * [[Eclipse: | ||
+ | |||
+ | |||
+ | ===== Debugging ===== | ||
+ | * [[en: | ||
+ | * [[en: | ||
===== Sources ===== | ===== Sources ===== | ||
Line 173: | Line 196: | ||
* http:// | * http:// | ||
* http:// | * http:// | ||
- |