[eclipseoprofile-devel] Re: eclipse-oprofile plugin
Brought to you by:
jhandcock
From: Jeremy H. <je...@ap...> - 2006-05-12 19:22:22
|
On Fri, May 12, 2006 at 07:00:15PM +0200, Viktor Gal wrote: > >Maybe try ecj to build instead of gcj? For RPM-based systems, that's the > >eclipse-ecj package. I don't know if ubuntu packages ecj separately or > >not. You're basically looking for /usr/bin/ecj and associated eclipse > >stuff for that to work. > > ::: you're helping more than anything, since i couldn't find _any_ > information out there about the plugin. Yeah, I think the best we've got is at http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.cdt-contrib/org.eclipse.cdt.oprofile-home/developer/info.html?cvsroot=Tools_Project Sorry about the sad state of documentation. I really need to post some more information about this stuff. > ecj -cp /usr/lib/eclipse/startup.jar org.eclipse.core.launcher.Main \ ^^^ > -application org.eclipse.ant.core.antRunner \ > -DbaseLocation=/usr/lib/eclipse \ > -Dpde.build.scripts=/usr/lib/eclipse/plugins/org.eclipse.pde.build_3.1.0/scripts\ > -Dconfigs=linux,gtk,x86 You should be invoking the build as a Java runtime process; you don't invoke the build directly with a Java compiler. The following build command uses your standard Java runtime to launch the Eclipse plug-in builder. The plug-in builder uses the internal ecj installation that comes with the Eclipse distribution that you have installed at ECLIPSE_HOME. So behind the scenes, you're actually building the plug-ins with ecj, but you need to start the build process in a plain old Java runtime environment. $ cd /path/to/org.eclipse.cdt.oprofile.releng $ export ECLIPSE_HOME=/path/to/eclipse/dir $ java -cp $ECLIPSE_HOME/startup.jar \ org.eclipse.core.launcher.Main \ -application org.eclipse.ant.core.antRunner \ -DbaseLocation=$ECLIPSE_HOME \ -Dpde.build.scripts=$ECLIPSE_HOME/plugins/org.eclipse.pde.build_3.1.0/scripts \ -Dconfigs=linux,gtk,x86 Hope that helps. Let me know if you have problems - hopefully I can have a look at this on the weekend. My Eclipse build hacking skills are a little rusty right now. Jeremy |