Compiling Libraries for ImageMagick and OpenDX
There are quite a few libraries that can be used to enhance OpenDX. Below are some quick notes on how we have compiled and installed these on our development systems. In the case of each library, you will probably want to read the README provided. If at any time, you'd like to provide a little bit more information for a specific library, please feel free to send us your notes.
HDF4.2r1 (adds import format capabilities for OpenDX)
tar -zxvf HDF4.2r1.tar.gz
mv /usr/local/hdf/include /usr/local/include/hdf
mv /usr/local/hdf/lib/libdf.a /usr/local/lib/.
Since HDF uses its own jpeg and zlib, plus has a ton of headers, it is a good idea to put them in a separate directory as shown above.
Mesa 3.4.2 (adds OpenGL support for systems without native support)
tar -zxvf MesaLib-3.2.1.tar.gz
bzip2-1.0.3 (needed for ImageMagick compression support)
tar -zxvf bzip2-1.0.3.tar.gz
make install PREFIX=/usr/local
cdf 3.0 (adds import format capabilities for OpenDX)
tar -zxvf cdf30-dist.tar.gz
make OS=os ENV=env all
make INSTALLDIR=/usr/local install
If you're having problems compiling, you may have to turn off the shared compiling "SHARED=no".
netcdf 3.6 (adds import format capabilities for OpenDX)
tar -zxvf netcdf.tar.Z
zlib 1.2.3 (for ImageMagick)
A lot of of UN*Xs already have this installed. You may not need to do this. Look for libz.a in /usr/lib or /usr/local/lib. One note here, many X11R6 variants include a subsetted libz.a. This can cause problems at the configure point with OpenDX and ImageMagick. Check to see if your X11R6/lib directory contains a libz.a--if so, then rename it to libz-old.a or something. This will not cause problems with your X setup.
tar -zxvf zlib-1.2.3.tar.gz
JPEG v6b (for ImageMagick)
tar -zxvf jpegsrc.v6b.tar.gz
LessTif .89 (we recommend OpenMotif if at all possible)
tar -zxvf lesstif-0.89.0.tar.gz
It may work better if you have LessTif current, as Rick has fixed a few things. But bewarned current can have its bugs too.
libpng 1.2.8 (for ImageMagick)
tar -zxvf libpng-1.2.8.tar.gz
tiff 3.8.0 (for ImageMagick)
tar -zxvf tiff-3.8.0.tar.gz
xpm 3.4k (for ImageMagick and also for DX splash screen)
tar -zxvf xpm-3.4k.tar.gz
This package installs into the user's X11 directories. I wish it was fixed to use configure but it compiles pretty straight forward.
If you're having problems with the shared libraries, you may wish to edit the Imakefile and remove XCOMM from the line that defines SharedLibXpm.
jasper 1.701.0 (for ImageMagick)
jbigkit 1.6 (for ImageMagick)
tar -zxvf jbigkit-1.6.tar.gz
cp libjbig/libjbig.a /usr/local/lib
cp libjbig/jbig.h /usr/local/include
mpeg2vidcodec_v12 (gives the mpeg capabilities to ImageMagick)
tar -zxvf mpeg2.tar.gz
cp mpeg2decode /usr/local/bin/.
cp mpeg2encode /usr/local/bin/.
freetype 2.2 (for ImageMagick)
tar -zxvf freetype-1.3.tar.gz
- There may be a problem with 1.3 with both copyright infringements and locations of the headers freetype.h.
ImageMagick 6.2.5-5 (adds support for many more export formats)
Special note: do not use versions 5.2.9 - 5.3.3 as they are partially incompatible.
tar -zxvf ImageMagick-6.2.5-5.tar.gz
Java (add JavaDX functionality)
You will need to download and install Java for your platform. You will
need the full JDK.
Jar Files for certain compiles
There are a few jar files that can be added to enhance JX. These are java40.jar from the Netscape libraries (we've provided them in the OpenDX.org lib area) nscosmop211.jar from the Cosmo Player libs.