Monday, June 30, 2008

Solipse for Eclipse on solaris-gtk-x86

Many thanks to Hugo Garcia for setting up the Solipse project to house our progress in creating a distributable build of Eclipse for solaris-gtk-x86. The scripts that I had previously posted on this blog have now been moved to the downloads area of the project site. We have successfully been able to build fully-functional Eclipse distributions (sans the internal browser and OpenGL support) from 3.3 to 3.4 on OpenSolaris and Nexenta, and our goal is currently to iron out the last details of the SWT browser component, OpenGL support and the p2 SDKProfile and to contribute the binaries back to eclipse to make the build official.
Thanks to everyone who sent suggestions and who found some use for the initial scripts, and please feel welcome on the Solipse community site!

9 comments:

stderr said...

Thanks Tim! it worked for me!

Tim Myer said...

Thanks for the comment and glad to be of help. If you encounter any problems, please let us know.
----Tim----

gtw said...

Excellent! Very helpful! The eclipse build process is incomprehensible to mere mortals, and impossible to debug when it doesn't work. Your script took away all the pain and suffering. Thanks!

Tim Myer said...

Very happy to help, and, believe me, I feel your pain. Hopefully we will be able to get the last few components (internal browser, p2 and opengl) verified soon so we can submit patches to eclipse and get this distro official.
If you see anything unexpected or have any problems, please let us know! Thanks.
------Tim------

James Le Cuirot said...

Hi Tim. Any luck with the missing SDKProfile stuff yet? I'm trying to make a new ebuild for Gentoo Linux and I'm facing the same problem.

Tim Myer said...

Hi Chewi,
I have not yet had the chance to look at this further, but your comment gives me a reason to get crackin'. If you have any luck with this in the meantime, please let me know!
Thanks.
----Tim-----

James Le Cuirot said...

Hi Tim. I managed to figure it out. I think you know how to generate the metadata but I'll include that command too. Once you've done that, you have to "install" or "provision" the application using P2. I was using regular cp before. (-; This is assuming you've just build Eclipse into "eclipse" and you're installing to "eclipse-provisioned". Obviously you can change the Gentoo stuff to whatever you like but the name and version have to match in both commands.

java -jar eclipse/plugins/org.eclipse.equinox.launcher_*.jar -data workspace -application org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -flavor tooling -metadataRepositoryName "Gentoo Eclipse" -artifactRepositoryName "Gentoo Eclipse" -metadataRepository "file:eclipse/metadata" -artifactRepository "file:eclipse/metadata" -root "Gentoo Eclipse SDK" -rootVersion "3.4.0" -source eclipse -append -publishArtifacts

java -Declipse.p2.data.area="file:eclipse-provisioned/p2" -jar eclipse/plugins/org.eclipse.equinox.launcher_*.jar -data workspace -application org.eclipse.equinox.p2.director.app.application -flavor tooling -metadataRepository "file:eclipse/metadata" -artifactRepository "file:eclipse/metadata" -installIU "Gentoo Eclipse SDK" -version "3.4.0" -p2.os linux -p2.ws gtk -p2.arch x86 -profile SDKProfile -profileProperties org.eclipse.update.install.features=true -destination "eclipse-provisioned" -bundlepool "eclipse-provisioned"

I was pointed to Fedora CVS where I found this out. See...
http://cvs.fedoraproject.org/viewcvs/rpms/eclipse/devel/

Tim Myer said...

Hi Chewi,
This is terrific information, and I really appreciate your follow-through and follow-up here. I will have the chance to try your steps out this week, will work it into the eclipse build script and will let you know how it turns out.
Thanks a bunch!
----Tim----

Tim Myer said...

Hi Chewi,
I ran your commands tonight against my eclipse install, and they worked perfectly. Many, many thanks again.
----Tim----