The software needs the following components to be installed on the system before compilation:

GCC - Gnu Compiler Collection, http://gcc.gnu.org/
libjpeg - IJG Jpeg software, http://www.ijg.org/
libjasper - JasPer software, http://www.ece.uvic.ca/~mdadams/jasper/
libz - Compression library, http://www.zlib.net/
libpng - PNG software, http://www.libpng.org/


***********************************************************************************
Installing development files for Debian GNU/Linux:
-----------------------------------------------------
apt-get install build-essential libjpeg-dev libjasper-dev libz-dev libpng-dev

Compiling and installing aaphoto:
----------------------------------------
wget log69.com/downloads/aaphoto_sources.tar.gz
tar xf aaphoto_sources.tar.gz
cd aaphoto-*

./configure
make
su -c "make install"


***********************************************************************************
Compiling from whole source code (only gcc is needed):
----------------------------------------------------------
wget log69.com/downloads/aaphoto_sources_all.tar.gz
tar xf aaphoto_sources_all.tar.gz
cd aapPhoto/scripts

./cc_all_unix.sh


***********************************************************************************
To compile the software manually, you should run this from a console:
-------------------------------------------------------------------------

gcc aaphoto.c -o aaphoto -O2 -ljasper -ljpeg -lpng -lz -lm -D __UNIX__
***********************************************************************************


***********************************************************************************
To compile the software manually with only BMP support (no extra libraries needed):
-----------------------------------------------------------------------------------

gcc aaphoto.c -o aaphoto -O2 -D __BMP_ONLY__
***********************************************************************************
