Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
eclipse [2017/01/25 16:09]
arthur
eclipse [2017/02/06 11:49]
81.215.197.154 [Create Eclipse Project for Smoothie]
Line 3: Line 3:
 </​callout>​ </​callout>​
  
-I first want to thank [[http://​mbed.org/​users/​dcabanis/​ David Cabanis]] for the e-mail that he sent me a few months ago.  It forms the core of this page.  David, You Rock!+I first want to thank [[http://​mbed.org/​users/​dcabanis/​|David Cabanis]] for the e-mail that he sent me a few months ago.  It forms the core of this page.  David, You Rock!
  
 = Install Eclipse with C/C== and GNU Support = Install Eclipse with C/C== and GNU Support
 To get started, you need to install Eclipse. To this you will add support for the GNU tool chain used by the Smoothie project. ​ At the time this page was written, Eclipse 4.4 (Luna), was the current release. This guide also applies to later versions - 4.5 (Mars) and 4.6 (Neon). To get started, you need to install Eclipse. To this you will add support for the GNU tool chain used by the Smoothie project. ​ At the time this page was written, Eclipse 4.4 (Luna), was the current release. This guide also applies to later versions - 4.5 (Mars) and 4.6 (Neon).
  
-* Eclipse is a Java application and [[http://​wiki.eclipse.org/​Eclipse/​Installation#​Install_a_JVM requires at least version 6 of the Java Runtime Environment,​ JRE]], be installed on your machine. ​ On Windows and Linux, you will want to make sure that you have this Java requirement installed. ​ On OS X, it will detect the Java requirement when you first attempt to run Eclipse and offer to install it for you if not already installed.+* Eclipse is a Java application and [[http://​wiki.eclipse.org/​Eclipse/​Installation#​Install_a_JVM|requires at least version 6 of the Java Runtime Environment,​ JRE]], be installed on your machine. ​ On Windows and Linux, you will want to make sure that you have this Java requirement installed. ​ On OS X, it will detect the Java requirement when you first attempt to run Eclipse and offer to install it for you if not already installed.
 * Go to http://​www.eclipse.org/​downloads to download and decompress the **Eclipse IDE for C/C++ Developers** archive. * Go to http://​www.eclipse.org/​downloads to download and decompress the **Eclipse IDE for C/C++ Developers** archive.
 * Now startup that shiny new version of Eclipse by executing the Eclipse binary at the root of the decompressed Eclipse files. There is no separate install process required for Eclipse. ​ If Eclipse fails to start, it is probably due to a missing JRE. * Now startup that shiny new version of Eclipse by executing the Eclipse binary at the root of the decompressed Eclipse files. There is no separate install process required for Eclipse. ​ If Eclipse fails to start, it is probably due to a missing JRE.
Line 24: Line 24:
   * At some point it will complain about unsigned content. ​ Ignore this warning by pressing the **Ok** button.   * At some point it will complain about unsigned content. ​ Ignore this warning by pressing the **Ok** button.
  * At the end of the install wizard, press the **Restart Now** button.  * At the end of the install wizard, press the **Restart Now** button.
-[[optional]] If you like to use the GIT plugin for eclipse repeat the previous step with the following package source and package selection:+* [optional] If you like to use the GIT plugin for eclipse repeat the previous step with the following package source and package selection:
  * **Luna - http://​download.eclipse.org/​releases/​luna**  * **Luna - http://​download.eclipse.org/​releases/​luna**
  * **Collaboration/​Eclipse Git Team Provider**, **Collaboration/​Java implementation of Git**  * **Collaboration/​Eclipse Git Team Provider**, **Collaboration/​Java implementation of Git**
Line 30: Line 30:
 = Create Eclipse Project for Smoothie = Create Eclipse Project for Smoothie
 * Open a shell and change into the **workspace directory** using **cd** * Open a shell and change into the **workspace directory** using **cd**
- * In this, check out the Smoothieware source repository as described in [[http://​smoothieware.org/​getting-smoothie http://​smoothieware.org/​getting-smoothie]]+ * In this, check out the Smoothieware source repository as described in [[http://​smoothieware.org/​getting-smoothie|http://​smoothieware.org/​getting-smoothie]]
   * If you wish, you can switch between branches using the git eclipse plugin later   * If you wish, you can switch between branches using the git eclipse plugin later
   * In the **workspace directory** there should be a directory named **Smoothie** now. It will be our the **project directory**   * In the **workspace directory** there should be a directory named **Smoothie** now. It will be our the **project directory**
-  * [[optional]] you might want to rename the **project directory**. At this time this can be done in your shell. If you decide to do so later, do it in eclipse.+  * [optional] you might want to rename the **project directory**. At this time this can be done in your shell. If you decide to do so later, do it in eclipse.
  * Change into the **project directory**  * Change into the **project directory**
  * Retrieve and install the tool chain as described in http://​smoothieware.org/​compiling-smoothie  * Retrieve and install the tool chain as described in http://​smoothieware.org/​compiling-smoothie
Line 84: Line 84:
  
 **If the Indexer does not find the Types of the mbed system (e.g. SDCard, USB, DFU, SDFAT, ... in main.cpp), try this: **If the Indexer does not find the Types of the mbed system (e.g. SDCard, USB, DFU, SDFAT, ... in main.cpp), try this:
-@@[[@@This seems to be not necessary any more, i keep it here for testing@@]]@@**+@@[[@@This|seems to be not necessary any more, i keep it here for testing@@]]@@**
 * Goto project properties ​ * Goto project properties ​
  * Click the arrow to left of **C/C++ General** item in left pane to expand its sub-items.  * Click the arrow to left of **C/C++ General** item in left pane to expand its sub-items.
Line 104: Line 104:
 * To clean select **Project->​Clean..:​** from the main menu. Make your selection and click ok. * To clean select **Project->​Clean..:​** from the main menu. Make your selection and click ok.
  * The **Console** should should show:  * The **Console** should should show:
-[[[code]]]+<code>
 <​Time>​ **** Clean-only build of configuration Debug for project Smoothie **** <​Time>​ **** Clean-only build of configuration Debug for project Smoothie ****
 make clean  make clean 
 Cleaning mbed Cleaning mbed
-make[[1]]: Betrete Verzeichnis '/​home/​stth/​daten/​programmieren/​eclipse_smt/​Smoothie/​mbed'​+make[1]: Betrete Verzeichnis '/​home/​stth/​daten/​programmieren/​eclipse_smt/​Smoothie/​mbed'​
 Cleaning src Cleaning src
-[[...]]+[...]
 Cleaning up all build generated files Cleaning up all build generated files
-make[[2]]: Verlasse Verzeichnis '/​home/​stth/​daten/​programmieren/​eclipse_smt/​Smoothie/​src'​ +make[2]: Verlasse Verzeichnis '/​home/​stth/​daten/​programmieren/​eclipse_smt/​Smoothie/​src'​ 
-make[[1]]: Verlasse Verzeichnis '/​home/​stth/​daten/​programmieren/​eclipse_smt/​Smoothie/​src'​+make[1]: Verlasse Verzeichnis '/​home/​stth/​daten/​programmieren/​eclipse_smt/​Smoothie/​src'​
  
 <​Time>​ Build Finished (took 416ms) <​Time>​ Build Finished (took 416ms)
-[[[/code]]]+</code>
 * Click on the hammer icon in the main tool bar * Click on the hammer icon in the main tool bar
  * the **Console** view should show:  * the **Console** view should show:
-[[[code]]]+<code>
 <​Time>​ **** Build of configuration Debug for project Smoothie **** <​Time>​ **** Build of configuration Debug for project Smoothie ****
 make all  make all 
-make[[1]]: Betrete Verzeichnis '/​home/​stth/​daten/​programmieren/​eclipse_smt/​Smoothie/​mbed'​+make[1]: Betrete Verzeichnis '/​home/​stth/​daten/​programmieren/​eclipse_smt/​Smoothie/​mbed'​
 Building src Building src
-[[...]]+[...]
 Compiling modules/​utils/​panel/​panels/​ST7565/​AK4183.cpp Compiling modules/​utils/​panel/​panels/​ST7565/​AK4183.cpp
 Compiling ../​build/​mbed_custom.cpp Compiling ../​build/​mbed_custom.cpp
Line 134: Line 134:
  ​313188  ​   544   10144 323876  ​ 4f124 ../​LPC1768/​main.elf  ​313188  ​   544   10144 323876  ​ 4f124 ../​LPC1768/​main.elf
  
-make[[2]]: Verlasse Verzeichnis '/​home/​stth/​daten/​programmieren/​eclipse_smt/​Smoothie/​src'​ +make[2]: Verlasse Verzeichnis '/​home/​stth/​daten/​programmieren/​eclipse_smt/​Smoothie/​src'​ 
-make[[1]]: Verlasse Verzeichnis '/​home/​stth/​daten/​programmieren/​eclipse_smt/​Smoothie/​src'​+make[1]: Verlasse Verzeichnis '/​home/​stth/​daten/​programmieren/​eclipse_smt/​Smoothie/​src'​
  
 <​Time>​ Build Finished (took 1m:​16s.206ms) <​Time>​ Build Finished (took 1m:​16s.206ms)
-[[[/code]]]+</code>
  
  
 **If you get many error markers when you open a file even when the project builds without complaints, try this: **If you get many error markers when you open a file even when the project builds without complaints, try this:
-@@[[@@This seems to be not necessary any more, i keep it here for testing@@]]@@**+@@[[@@This|seems to be not necessary any more, i keep it here for testing@@]]@@**
 * Goto project properties ​ * Goto project properties ​
  * Click the arrow to left of **C/C++ General** item in left pane to expand its sub-items.  * Click the arrow to left of **C/C++ General** item in left pane to expand its sub-items.