There are system library requires that may not be met with typical installations
of Linux.  We have tested this software most recently with Suse 10.2.  To
compile on that distribution, check first that libusb has been installed.

Before you build xmccd you must first compile and install three components:
the Motif development libraries (or Lesstif),  the cfitsio library, and
the sbig device udev components and library. Source codes for these are
supplied in the xmccd_support package.  Many Linux distributions will already
have Lesstif or Motif installed, but some (notably Suse 10.x) will have neither
the  development libraries nor Lesstif.  Fortunately, it is very simple to
install Motif from the OpenMotif package as supplied:

1.  Untar OpenMotif in /usr/local/src, cd to the OpenMotif directory, and use 
./configure to setup your Makefile.  Type "make", and after completion, "make
install". 

2.  Untar cfitsio.tar in /usr/local/src/, cd to the cfitsio directory, and
"make". When the compilation is complete,  "cp libcfitsio.a /usr/local/lib".

3.  Install the sbig library and udev components using the directions in the 
sbig/install  directory included with this xmccd source.  If you have already
installed a library, remove or rename it and install this new version.

4.  As root, use the command ldconfig to update the library database for these
new entries.

4.  Use "make" in this directory.  If it does not work, a command line that 
builds xmccd without using the Makefile is one such as
 
 gcc -o xmccd -O2 -fno-strength-reduce   -L./sbig   -L/usr/X11R6/lib xmccd.o -lXm -lXt -lSM -lICE -lXext -lX11 -lsbigudrv4.0   -lm

You may need to change the library paths (-L flag) to match your system. 

5.  After running make, you should have a new version of the executable for
xmccd.  Copy this to a location in the search path such as /usr/local/bin.

6.  Test the program by turning your camera power on and attaching the camera to
the USB system on your computer.  The green light on the SBIG camera should
turn on, and its fan should start.  

HINT:  If the fan does not start (even before running xmccd) you do not have the
USB firmware loading routines installed.  Check the directions in the sbig
directory.




