Tech Stuff‎ > ‎

Vuze on Solaris

Building Vuze (fka. Azureus) on Solaris. Haven't tried this recently, but it might still work...

Prerequisits:

Building Eclipse - brute-force method

Download the "Source Build (Source in .zip)" package (look under "Other downloads for...")

then:

(using zsh syntax)

export ANT_HOME=~/ant
export JAVA_HOME=/usr/j2se
export CDE_HOME=/usr/dt
export SS_HOME=/opt/SUNWspro

export PATH=$ANT_HOME/bin:$JAVA_HOME/bin:$SS_HOME/bin:/usr/sfw/bin:/opt/sfw/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/dt/bin:/usr/X/bin:/usr/ccs/bin

export CC=cc

rm ./features/org.eclipse.platform.launchers/bin/gtk/solaris/sparc/eclipse ./features/org.eclipse.platform.launchers/bin/motif/solaris/sparc/eclipse

mv ./plugins/org.eclipse.platform.source.solaris.gtk.sparc ./plugins/org.eclipse.platform.source.solaris.gtk.x86
mv ./plugins/org.eclipse.platform.source.solaris.motif.sparc ./plugins/org.eclipse.platform.source.solaris.motif.x86
mv ./plugins/org.eclipse.rcp.source.solaris.motif.sparc ./plugins/org.eclipse.rcp.source.solaris.motif.x86
mv ./plugins/org.eclipse.jdt.source.solaris.gtk.sparc ./plugins/org.eclipse.jdt.source.solaris.gtk.x86
mv ./plugins/org.eclipse.pde.source.solaris.motif.sparc ./plugins/org.eclipse.pde.source.solaris.motif.x86
mv ./plugins/org.eclipse.swt.motif.solaris.sparc ./plugins/org.eclipse.swt.motif.solaris.x86
mv ./plugins/org.eclipse.jdt.source.solaris.motif.sparc ./plugins/org.eclipse.jdt.source.solaris.motif.x86
mv ./plugins/org.eclipse.pde.source.solaris.gtk.sparc ./plugins/org.eclipse.pde.source.solaris.gtk.x86
mv ./plugins/org.eclipse.rcp.source.solaris.gtk.sparc ./plugins/org.eclipse.rcp.source.solaris.gtk.x86
mv ./plugins/org.eclipse.swt.gtk.solaris.sparc ./plugins/org.eclipse.swt.gtk.solaris.x86

mv ./features/org.eclipse.platform.launchers/bin/gtk/solaris/sparc ./features/org.eclipse.platform.launchers/bin/gtk/solaris/x86
mv ./features/org.eclipse.platform.launchers/bin/motif/solaris/sparc ./features/org.eclipse.platform.launchers/bin/motif/solaris/x86

mv ./assemble.org.eclipse.sdk.solaris.motif.sparc.xml ./assemble.org.eclipse.sdk.solaris.motif.x86.xml
mv ./assemble.org.eclipse.sdk.solaris.gtk.sparc.xml ./assemble.org.eclipse.sdk.solaris.gtk.x86.xml

mv ./package.org.eclipse.sdk.solaris.motif.sparc.xml ./package.org.eclipse.sdk.solaris.motif.x86.xml
mv ./package.org.eclipse.sdk.solaris.gtk.sparc.xml ./package.org.eclipse.sdk.solaris.gtk.x86.xml

perl -pi -e 's/sparc/x86/g' assemble.*.xml build **/build.xml **/build.sh **/*build.properties **/MANIFEST.MF **/.project **/feature.xml **/*.args

For pre-3.2 versions:

bash build -os solaris -ws gtk -arch x86 -compilelibs

For 3.2 (and maybe later):

bash build -os solaris -ws gtk -arch x86 -java5home /usr/jdk/latest -compilelibs

Building Azureus (from CVS)

Download this set of patches

NOTE: As of December 21st, 2005, these fixes have been incorporated in Azureus CVS, so you may be able to just download the latest CVS Azureus2.jar file or the Solaris/SPARC bundle (and drop in the SWT libs that you built as above)

export ANT_HOME=~/ant
export JAVA_HOME=/usr/j2se
export PATH=$ANT_HOME/bin:$JAVA_HOME/bin:/usr/sfw/bin:/opt/sfw/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/dt/bin:/usr/X/bin:/usr/ccs/bin

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/azureus co azureus2
cd azureus2

gpatch -p0 < path_to_azureus-solaris-fixes-20051220a.diff

ant

Putting it together

  • Download Azureus for Solaris SPARC and extract somewhere

  • From path_to_eclipse_build/plugins/org.eclipse.swt.gtk.solaris.x86/ copy swt.jar and libswt*.so to Azureus installation directory

  • From path_to_azureus2/dist copy Azureus2.jar to Azureus installation directory

  • Run it!

Comments