Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Newbie instructions for getting up and running with the CDT

Hi folks,

This is a quick list of steps to get you started with the CDT.
I'll be posting this to the website and to the Wiki Web within the week.


Note: Package names are valid as of today 27 Sept 2002. There will obviously
be more added in the future.

-Judy

¨¨¨°ºo§oº°¨¨¨¨°ºo§oº°¨¨¨¨°ºo§oº°¨¨¨¨°ºo§oº°¨¨¨
Judy N. Green               Software Engineer
QNX Software Systems Ltd.   www.qnx.com
¨¨¨°ºo§oº°¨¨¨¨°ºo§oº°¨¨¨¨°ºo§oº°¨¨¨¨°ºo§oº°¨¨¨

1)
Start Eclipse

2)
Open the Browse CVS Repository Perspective

3)
Check out the following CDT specific projects from the Eclipse CVS repo:
/home/tools
Anonymous
no password required

org.eclipse.cdt
org.eclipse.cdt.core
org.eclipse.cdt.core.linux
org.eclipse.cdt.core.qnx
org.eclipse.cdt.core.solaris
org.eclipse.cdt.core.win32
org.eclipse.cdt.debug.core
org.eclipse.cdt.debug.mi.core
org.eclipse.cdt.debug.mi.ui
org.eclipse.cdt.debug.ui
org.eclipse.cdt.launch
org.eclipse.cdt.ui
org.eclipse.cdt-feature 

Optional:
the "org.eclipse.cdt.*.tests" packages can also be checked out.
In which case you will also need to import the org.junit package (and others
?) in the next step.
Additional instructions regarding testing will be coming soon.


4)
Import > External Plugins & Fragments > Plugins from the Runtime Workbench >


5)
Select the following from the list

org.apache.lucene
org.apache.xerces
org.eclipse.ant.core
org.eclipse.compare
org.eclipse.core.boot
org.eclipse.core.resources
org.eclipse.core.runtime
org.eclipse.debug.core
org.eclipse.debug.ui
org.eclipse.help
org.eclipse.platform
org.eclipse.search
org.eclipse.swt
org.eclipse.swt.win32 (or other platform specific project, will be added
through the next step)
org.eclipse.ui
org.eclipse.update.core

6)
Then press "Add Required Plugins" button. 
This will add any other plugins that are required by the selected ones
  e.g. platform specific such as org.eclipse.swt.win32


To Build the CDT from within Eclipse

1) 
 Browse to the org.eclipse.cdt package directory

2) 
 Edit the "about.mappings" file to indicate the build number
    # e.g. "0=<year><month><date>"
    0=20020926

3)
Browse to the org.eclipse.cdt-feature package directory

4)
Open the "feature.xml" file

5)
Select the "Package" button from the Overview Page

6)
From the dialog that is presented select the following IN ORDER. Notice the
numbers that appear beside the selected items.

1) clean
2) init
3) build.jars
4) build.update.jar
5) build.zips
6) zip.distribution
7) build.sources
8) zip.sources

Note items 7 & 8 are optional and only if you want to package the sources. 
They also take a fairly large component of time.

When the build is complete there will be a binary 
distribution zip file and (optionally) a sources zip file
e.g.
org.eclipse.cdt_20020926_1.0.0.bin.dist.zip  ... zipped features and plugins
org.eclipse.cdt_20020926_1.0.0.src.zip        ... zipped sources


Back to the top