Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How to build CDT?

> Did you follow the instructions at http://wiki.eclipse.org/CDT/release_engineering?

Yes, but I had to unravel the build scripts to override all the necessary system references which assume the continuous build server's environment.  After following the instructions, do these additional steps instead of running build.sh:

. download and save eclipse-SDK-3.4-linux-gtk-x86_64.tar.gz to some directory
. download and save mylyn-3.0.3-e3.4.zip to that directory
. export SDK_DIST=<that directory>/eclipse-SDK-3.4-linux-gtk-x86_64.tar.gz
. export MYLYN_DIST=<that directory>/mylyn-3.0.3-e3.4.zip

# change as needed to point to your system's Eclipse distribution
. export PDE_HOME=/opt/eclipse/plugins/org.eclipse.pde.build_3.4.0.v20080604

. in your workspace, cd to org.eclipse.cdt.releng/
. mkdir -p tools
. cd tools
. cvs -d:pserver:anonymous@xxxxxxxxxxxxxxx:/cvsroot/eclipse \
    checkout -r RC2_34 org.eclipse.releng.basebuilder
. cd ..

. java -jar tools/org.eclipse.releng.basebuilder/plugins/org.eclipse.equinox.launcher.jar \
    -ws gtk -arch x86 -os linux -application org.eclipse.ant.core.antRunner \
    -Dpde.build.home=$PDE_HOME -Dpde.build.scripts=$PDE_HOME/scripts \
    -Dpde.build.templates=$PDE_HOME/templates -DeclipseDist=$SDK_DIST \
    -DmylynDist=$MYLYN_DIST <optional ant-targets>

My hunch is that no one is building complete builds other than the build server.  If anyone wants, I can enhance build.sh to pull in an optional site definition file so other servers can more easily do builds.

Tom

On Thu, Oct 30, 2008 at 5:14 PM, Sergey Prigogin <eclipse.sprigogin@xxxxxxxxx> wrote:
Did you follow the instructions at http://wiki.eclipse.org/CDT/release_engineering?

-sergey

On Thu, Oct 30, 2008 at 5:06 PM, Tom Ball <tball@xxxxxxxxxx> wrote:
I'm at wits end (not a long drive) trying to rebuild CDT.  The Developers FAQ states that Export->Plug-in Development->Deployable Features should work, and it does except for the org.eclipse.cdt.sdk feature.  This feature needs a build.xml file in modules such as org.eclipse.cdt.doc.user, but Doug deleted those files last summer as part of the fix for 157260 (according to the CVS comment). 

The FAQ then states that one can use ant in org.eclipse.cdt.releng, but the instructions are incomplete.  I pieced together which bundles need to be downloaded, and eventually figured out what pde.build.scripts and templates variables should be.  Now it's failing in PDE's genericTargets.xml in fetchElement, with a "failed to create task" error.  My guess is that someone has a properties file with all the golden Ant variables in it -- would you please post it and/or update the FAQ?  Alternatively, could fixing building using the Export command within Eclipse be possible?

Tom

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top