Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Getting started with CDT development"
m (perspective moving after CVS access) |
(→Getting started with CDT development for the latest CVS head (circa 20.jan.08)) |
||
Line 1: | Line 1: | ||
== Getting started with CDT development for the latest CVS head (circa 20.jan.08) == | == Getting started with CDT development for the latest CVS head (circa 20.jan.08) == | ||
+ | |||
+ | ;Preparing workspace | ||
First you need to get the correct eclipse version, the latest CVS head of CDT works with | First you need to get the correct eclipse version, the latest CVS head of CDT works with | ||
− | eclipse 3.4 | + | eclipse 3.4 (latest Mx build), so browse [http://download.eclipse.org/eclipse/downloads/|eclipse downloads page] |
and grab this version. It should contain both the JDT and PDE plugins that would allow you to develop | and grab this version. It should contain both the JDT and PDE plugins that would allow you to develop | ||
plugins for eclipse. | plugins for eclipse. | ||
− | Now let's download the CDT source code. Go to the CVS view in eclipse | + | Now let's download the CDT source code. |
− | (Window->Open Perspective->Other->CVS Repository exploring). Right click on the right panel of | + | * Go to the CVS view in eclipse (Window->Open Perspective->Other->CVS Repository exploring). |
− | "CVS Repositories", select new->Repository Location. Then write | + | * Right click on the right panel of "CVS Repositories", select new->Repository Location. |
− | + | * Then write <tt>:pserver:anonymous@dev.eclipse.org:/cvsroot/tools</tt> in the Host field. | |
− | be able to browse the CVS. In the CVS tree open ``HEAD->org.eclipse.cdt->all''. Now to get the source | + | * Click OK and you should be able to browse the CVS. |
− | code of a certain plugin - simply right click on it and select "checkout", eclipse will create a project for you. | + | * In the CVS tree open ``HEAD->org.eclipse.cdt->all''. |
− | + | * Now to get the source code of a certain plugin - simply right click on it and select "checkout", eclipse will create a project for you. | |
− | + | ||
− | + | In order to have a working CDT you need to checkout the following: | |
− | org.eclipse.cdt.launch org.eclipse.cdt.make.core org.eclipse.cdt.make.ui org.eclipse.cdt.refactoring | + | |
− | org.eclipse.cdt.managebuilder.core org.eclipse.cdt.managebuilder.ui org.eclipse.cdt.sdk | + | *org.eclipse.cdt.ui |
+ | *org.eclipse.cdt.core | ||
+ | *org.eclipse.cdt.core | ||
+ | *org.eclipse.cdt.core.win32 (or your environment), | ||
+ | *org.eclipse.cdt.launch | ||
+ | *org.eclipse.cdt.make.core | ||
+ | *org.eclipse.cdt.make.ui | ||
+ | *org.eclipse.cdt.refactoring | ||
+ | *org.eclipse.cdt.managebuilder.core | ||
+ | *org.eclipse.cdt.managebuilder.ui | ||
+ | *org.eclipse.cdt.sdk | ||
Now, move back to the PDE (plug in development) perspective. Window->Perspective->Other->"Plug in Development". There, you'll see a project with the name org.eclipse.cdt.ui, right click the org.eclipse.cdt.ui project, select "Run As"->"eclipse application". You should see | Now, move back to the PDE (plug in development) perspective. Window->Perspective->Other->"Plug in Development". There, you'll see a project with the name org.eclipse.cdt.ui, right click the org.eclipse.cdt.ui project, select "Run As"->"eclipse application". You should see | ||
− | a new instance of eclipse - with the latest version of eclipse CDT plugin. In order to apply a patch, | + | a new instance of eclipse - with the latest version of eclipse CDT plugin. |
− | right click the relevant project, and select " | + | |
+ | ;Patches | ||
+ | |||
+ | If you wish to contribute your changes to CDT | ||
+ | * Open a bug report, if not already open | ||
+ | * Select projects that contain your changes, right click and select "Team->Create Patch...". Select a file to store a patch. | ||
+ | * Create a bug attachment and attach this file, make sure you mark it is "patch" | ||
+ | |||
+ | In order to apply a patch, | ||
+ | right click the relevant project, and select "Team->Apply Patch... | ||
In case you've applied a patch, and you wish to revert back to the latest HEAD branch - right click | In case you've applied a patch, and you wish to revert back to the latest HEAD branch - right click | ||
− | the project, then "Replace With | + | the project, then "Replace With->Latest From HEAD", answer Yes to the warning message, and the patch |
is gone. | is gone. |
Revision as of 17:39, 23 April 2008
Getting started with CDT development for the latest CVS head (circa 20.jan.08)
- Preparing workspace
First you need to get the correct eclipse version, the latest CVS head of CDT works with eclipse 3.4 (latest Mx build), so browse downloads page and grab this version. It should contain both the JDT and PDE plugins that would allow you to develop plugins for eclipse.
Now let's download the CDT source code.
- Go to the CVS view in eclipse (Window->Open Perspective->Other->CVS Repository exploring).
- Right click on the right panel of "CVS Repositories", select new->Repository Location.
- Then write :pserver:anonymous@dev.eclipse.org:/cvsroot/tools in the Host field.
- Click OK and you should be able to browse the CVS.
- In the CVS tree open ``HEAD->org.eclipse.cdt->all.
- Now to get the source code of a certain plugin - simply right click on it and select "checkout", eclipse will create a project for you.
In order to have a working CDT you need to checkout the following:
- org.eclipse.cdt.ui
- org.eclipse.cdt.core
- org.eclipse.cdt.core
- org.eclipse.cdt.core.win32 (or your environment),
- org.eclipse.cdt.launch
- org.eclipse.cdt.make.core
- org.eclipse.cdt.make.ui
- org.eclipse.cdt.refactoring
- org.eclipse.cdt.managebuilder.core
- org.eclipse.cdt.managebuilder.ui
- org.eclipse.cdt.sdk
Now, move back to the PDE (plug in development) perspective. Window->Perspective->Other->"Plug in Development". There, you'll see a project with the name org.eclipse.cdt.ui, right click the org.eclipse.cdt.ui project, select "Run As"->"eclipse application". You should see a new instance of eclipse - with the latest version of eclipse CDT plugin.
- Patches
If you wish to contribute your changes to CDT
- Open a bug report, if not already open
- Select projects that contain your changes, right click and select "Team->Create Patch...". Select a file to store a patch.
- Create a bug attachment and attach this file, make sure you mark it is "patch"
In order to apply a patch, right click the relevant project, and select "Team->Apply Patch...
In case you've applied a patch, and you wish to revert back to the latest HEAD branch - right click the project, then "Replace With->Latest From HEAD", answer Yes to the warning message, and the patch is gone.