This quickstart manual is intended for C/C++ developers who are interesting in developing mbed TLS based projects in Eclipse C/C++ Development Tool (CDT) on Windows.
Used software versions for this manual
- Eclipse C/C++ Development Tool (CDT) Juno SR1
- Cygwin packages:
- C compiler: gcc-core (3.4.4-999)
- C++ compiler: gcc-g++ (3.4.4-999)
- GNU Debugger: gdb (7.5.50-1)
- Make utility: make (3.82.90-1)
Your mileage may vary with other versions of the software above, but in general all should be well!
Install Cygwin (recommended) or MinGW
First of all you need to install Cygwin or MinGW on your system.
We recommend Cygwin so this manual doesn't cover the MinGW installation. (You can check out Compiling mbed TLS in MinGW for more on that)
- Download and install Cygwin by following the first three steps in this How to install Cygwin manual. Make sure that you select "gcc", "g++", "gdb", and "make" packages under the "Devel" (Development) category, since these packages are not part of the default installation.
- Add “c:\cygwin\bin;” to your PATH Environment Variables
- If you want to check if all needed packages are installed, run the Cygwin Terminal and type the following command
Install Eclipse C/C++ Development Tool (CDT)
You can either download and install a new version of Eclipse CDT or extend an existing ‘Eclipse for Java Developers’ on your system with a CDT plugin.
- Option 1: Clean Eclipse CDT install
- Download "Eclipse IDE for C/C++ Developers" from http://www.eclipse.org/downloads and unzip the downloaded file into a directory of your choice.
- Run eclipse.exe inside the directory
- Option 2: Extend an existing ‘Eclipse for Java Developers’ installation
- Launch Eclipse
- Go to Help ⇒ Install New Software... ⇒ In "Work with", enter the CDT update site
http://download.eclipse.org/tools/cdt/releases/juno(for Eclipse Juno only) ⇒ Add ⇒ Enter a name (e.g. CDT 8.1.0) ⇒ Select all the "CDT main features".
You may select optional features ⇒ Finish.
- Restart Eclipse after the plugin installation is finished.