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 cd HDF4.2r1
./configure --prefix=/usr/local/hdf
make install
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
cd mesa-3.2.1
./configure
make
make install
bzip2-1.0.3 (needed for ImageMagick compression support)
tar -zxvf bzip2-1.0.3.tar.gz cd bzip2-1.0.3
make
make install PREFIX=/usr/local
cdf 3.0 (adds import format capabilities for OpenDX)
tar -zxvf cdf30-dist.tar.gz cd cdf30-dist
make all.help
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 cd netcdf-3.6.0-p1/src
./configure --prefix=/usr/local
make
make install
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 cd zlib-1.2.3
./configure
make
make install
JPEG v6b (for ImageMagick)
tar -zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --prefix=/usr/local
make
make install
make install-lib
LessTif .89 (we recommend OpenMotif if at all possible)
tar -zxvf lesstif-0.89.0.tar.gz
cd lesstif
./configure
make
make install
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
cd libpng-1.28-config
./configure
make
make install
tiff 3.8.0 (for ImageMagick)
tar -zxvf tiff-3.8.0.tar.gz cd tiff-3.8.0
./configure
make install
xpm 3.4k (for ImageMagick and also for DX splash screen)
tar -zxvf xpm-3.4k.tar.gz
cd xpm-3.4k
xmkmf -a
make
make install
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)
unzip jasper-1.701.0.zip cd jasper-1.701.0
./configure
make
make install
jbigkit 1.6 (for ImageMagick)
tar -zxvf jbigkit-1.6.tar.gz
cd jbigkit
make
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
cd mpeg2
make
cd src/mpeg2dec
cp mpeg2decode /usr/local/bin/.
cd ../mpeg2enc
cp mpeg2encode /usr/local/bin/.
freetype 2.2 (for ImageMagick)
tar -zxvf freetype-1.3.tar.gz
cd freetype-1.3
./configure --enable-static
make
make install
- 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 cd ImageMagick-6.2.5
./configure
make
make install
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.
|