1These are instructions for building the static and shared flashpix library that image magick will link to on Solaris 2.7.  If you follow these instructions exactly, you should not have any problems putting flashpix support into Image Magick.  This codebase was tested with gnu gcc 2.95.2 and ImageMagick 5.2.4.
2
3You must have libtool, gnumake, gcc installed on your system.  It is probably a good idea to have gdb for debugging.
4
51) cd to /oless run 'make -f makefile.gcc'
6
72) cd to /fpx/jpeg run 'make -f makefile.gcc'
8
93) cd to /fpx
10-  to build the static library run make -f makefile.gcc obj/libfpx.a
11-  to build the dynamic library run make -f makefile.gcc obj/libfpx.so
12-  to build both, run make -f makefile.gcc
13
14After this, you should have one static library obj/libfpx.a or one dynamic library obj/libfpx.so that can be linked to Image Magick.  Image Magick will look for this library when configure is run by checking the LD_LIBRARY_PATH environment variable.  If it determines that this library is present and it can call the function FPX_OpenImageByFilename from it and it can find the needed header file fpx.h, then it will try to link in the flashpix stuff when you build it.  The path to fpx.h needs to be specified in the environment variable CPPFLAGS as so:
15export CPPFLAGS="-I/export/whatever"
16
17and the environment variable LD_LIBRARY_PATH should be specified as:
18
19export LD_LIBRARY_PATH=/export/whatever:$LD_LIBRARY_PATH
20
21Even though configure looks for the file fpx.h, the file ImageMagick/coders/fpx.c tries to include the file fpxlib.h so both files should be present in a directory pointed to by CPPFLAGS.  fpx.h simply includes fpxlib.h and also includes another file flashpix.h which just has some legal mumbo jumbo in it.
22
23To test that you have done this all correctly, after building and installing image magick run the convert utility to convert a file to flashpix like so -->
24
25convert examples.jpg examples.fpx
26
27and then verify that examples.fpx is a flashpix file.  examples.jpg is included in the images subdirectory of the Image Magick distribution.
28
29To verify that you can generate jpeg compressed flashpix files run -->
30
31convert -compress JPEG examples.jpg examples.fpx
32
33That should be it.  Any questions?  Contact: gurupix@hotmail.com.
34
35November 12th, 2000
36
37
38