IMAL can also be compiled by editing makefile and config.h and installing manually. LibXbae is available from ftp.x.org. If it is not present, imal will still compile, but the spreadsheet function for editing pixel values will be disabled.
Depending on how libXbae is compiled, you might also need libXpm (libXpm is not used in imal itself). If the compilation gives the following messages
undefined reference to `XpmFreeAttributes'
undefined reference to `XpmCreateImageFromXpmImage'
undefined reference to `XpmFreeXpmImage'
undefined reference to `XpmReadFileToXpmImage'
this means that you must install libXpm (or install a different version of
libXbae) before continuing.
Also, add ``-lXpm'' after ``-lXm'' in the makefile if it is not
there already.
In addition to libjpeg.a, jpeglib.h must be present on your system. Make sure it is found by configure (it should say ``jpeg...found''). In addition, it might be necessary to run configure in the jpeg-6a directory in order for jconfig.h to be created. Some Linux distributions do not include this essential file by default.
Libtiff is only required for the plugin ``readtif'' which reads FAX images, and is not required for reading/writing TIFF format images in imal.
Libpng is also required.
Note: There are some compilers out there that cannot handle overloaded functions in C++ correctly. These compilers produce large numbers of spurious warning messages, along with nonsensical error messages like:
xmtnimage.cc:2017: no matching function for call to `message (char *&, void *, const int &, int)'
If you get the following message:
In file included from /usr/include/errno.h:36,
from xmtnimage.h:32,
from xmtnimage45.cc:8:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
In file included from /usr/include/signal.h:294,
from xmtnimage.h:43,
from xmtnimage45.cc:8:
/usr/include/bits/sigcontext.h:28: asm/sigcontext.h: No such file or directory
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:30,
from /usr/include/bits/socket.h:31,
from /usr/include/sys/socket.h:34,
from xmtnimage.h:45,
from xmtnimage45.cc:8:
...
This means that the compiler was searching for necessary files in the Linux kernel source tree. In this case, it will be necessary to unpack a Linux kernel in /usr/src before compiling imal. Complaints should go either to your distribution vendor or the Free Software Foundation, Inc.
If you get the message
Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: String to TranslationTable conversion encountered errors
this is caused by an incompatibility between the X11 and Motif. This will prevent all Motif applications from displaying user-entered text and will eventually cause the program to crash. To fix the problem, become the superuser and copy XKeysymDB to its proper place:
su /usr/share/X11 cp XKeysymDB /usr/X11R6/lib/X11