Differences

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

Link to this comparison view

Next revision
Previous revision
eclipse [2017/01/25 14:19]
arthur created
eclipse [2018/03/28 17:48] (current)
147.86.207.10 [Install Eclipse with C/C== and GNU Support]
Line 1: Line 1:
-[[div class="bs-callout bs-callout-danger"​]]+<callout type="​danger" ​icon="​true">​
 **NOTE** Using eclipse is **not** supported by the smoothie developers, you are on your own if you decide to use it. **NOTE** Using eclipse is **not** supported by the smoothie developers, you are on your own if you decide to use it.
-[[/div]]+</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 28: Line 28:
  * **Collaboration/​Eclipse Git Team Provider**, **Collaboration/​Java implementation of Git**  * **Collaboration/​Eclipse Git Team Provider**, **Collaboration/​Java implementation of Git**
  
-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**
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 101: Line 101:
 * At this point you can click the **Ok** button on the **Properties** dialog. * At this point you can click the **Ok** button on the **Properties** dialog.
  
-Clean and Build the Project+Clean and Build the Project
 * 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 
Line 116: Line 116:
  
 <​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 
Line 138: Line 138:
  
 <​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.
Line 149: Line 149:
    * Uncheck all entries in the list below    * Uncheck all entries in the list below
  
-Configure and build a debug configuration+Configure and build a debug configuration
 * Right-click on the **Smoothie** project in the **Project Explorer** pane. * Right-click on the **Smoothie** project in the **Project Explorer** pane.
 * Select **Properties** from the pop-up menu. * Select **Properties** from the pop-up menu.
Line 168: Line 168:
 **If you change Build configurations,​ alway perform a make clean (Project->​Clean) and make all (Project->​Build),​ before you use the binaries** **If you change Build configurations,​ alway perform a make clean (Project->​Clean) and make all (Project->​Build),​ before you use the binaries**
  
-Run Smoothie under the Debugger+Run Smoothie under the Debugger
 Now comes the really fun part.  Not only can we build Smoothie in Eclipse, we can also run it under its debugger UI. Now comes the really fun part.  Not only can we build Smoothie in Eclipse, we can also run it under its debugger UI.
  
Line 196: Line 196:
  
  
-Thanks+Thanks
 Thanks again to David Cabanis for his help.  Also thanks to the Smoothie users that helped me with Eclipse and testing. Thanks again to David Cabanis for his help.  Also thanks to the Smoothie users that helped me with Eclipse and testing.