VP development on OpenSolaris

These are general instruction on preparing an OpenSolaris system for Visual Panels development.


Install and update OpenSolaris

Install OpenSolaris and update (optional) to latest release via pkg image-update. For more information on updating OpenSolaris, refer to the pkg(1), beadm(1M) and pkg(5) manual pages and the following documents

Getting Started With the Image Packaging System
http://dlc.sun.co m/osol/docs/content/IPS/ggcph.html

Upgrading and Managing Your Boot Environments
http://dlc.sun.com/osol/docs/content/IPS/snap3.html

Install development tools and supporting packages

 Obtain the Java development cluster which includes jdk, netbeans, sunstudioexpress, SUNWant, and others.


$ pfexec pkg install java-dev

 Install Cacao MBean server, and Gnome Java libraries.


$ pfexec pkg install SUNWcacaort SUNWcacaowsvr SUNWgnome-base-libs-java

Download and install JavaHelp from
http://java.sun.com/javase/technologies/desktop/javahelp/download_binary.html 

The download is a compressed tar file of SVR4 packages, SUNWjhdem, SUNWjhdev, SUNWjhdoc, and SUNWjhrt, to be installed. The following commands untar the downloaded file and install the packages.


$ zcat javahelp-2_0_05.tar.Z | tar xvf -
$ pfexec pkgadd -d .

Get the source

 Obtain the latest VP source and save under a new "vpanels" directory


$ hg clone ssh://anon@hg.opensolaris.org/hg/vpanels/source vpanels

Workaround for SUNWtoo issue in OpenSolaris 2008.05

If you installed OpenSolaris 2008.05 and didn't pkg image-update (though updating is highly recommended), updating SUNWtoo and its dependencies to a newer release (latest release as shown here), is necessary.

$ pfexec pkg install SUNWtoo

Build

Make sure cc is in your path, java-dev package includes SunStudioEpxress installed under /opt/SunStudioExpress. Simply edit /.bashrc to include /opt/SunStudioExpress/bin in your PATH env.

Setup environment variables as described in README.build and make


$ cd vpanels
$ CODEMGR_WS=`pwd`; export CODEMGR_WS
$ SRC=$CODEMGR_WS/usr/src; export SRC
$ ROOT=$CODEMGR_WS/proto; export ROOT
$ cd usr/src
$ make install

 Once the first "make install" completes, you can also use NetBeans to build the workspace. That's it!

last modified by admin on 2009/10/26 12:18
Collectives
Project


© Sun Microsystems Inc. 2009
XWiki Enterprise 1.8.2.19075 - Documentation
Terms Of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines | Site map | Help
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.