Monday, June 09, 2008

Build gv on Solaris 10 X86.

There is no gv release for solaris 10 x86. However, there is a source version of gv for Solaris Sparc version. OK. Download it and save it to a directory, say ~/tmp.

1. Unpack the source.
gtar zxvf gv-3.5.8.tar.gz
This will create a directory ~/tmp/gv-3.5.8

2. Edit the ~/tmp/gv-3.5.8/config.unix
Modify the path for Xaw3d.
XAW3D_HEADERS = -I/usr/local/include
EXTRA_LDOPTIONS = -L/usr/local/lib -R/usr/local/lib

3. Following the INSTALL.Unix steps.

That's all.
Note, when not specify the -R option, gv cannot find the shared Xaw3d library.

1 comment:

Anonymous said...

You also need code for strndup() and strnlen() in secscanf.c which you can easily find on the Internet.