Next: Running DOS version
Up: Installation instructions
Previous: Compiling with Lesstif
Contents
Index
If you have problems compiling the program
Here are some tips that have been found helpful in compiling tnimage on some systems. For normal Unix systems, these steps should not be necessary.
- In makefile, try substituting ``CC=g++'' for ``CC=gcc''.
- If a problem occurs with xmtnimage16.cc, make sure libjpeg.a is somewhere on your system. In one case it
was necessary to copy some of the libjpeg include files (jconfig.h, jdct.h,
jerror.h, jinclude.h, jmemsys.h, jmorecfg.h, jpegint.h, jpeglib.h, and
jversion.h) to the tnimage source directory or in /usr/include/gr.
- Add /usr/X11R6/LessTif/Motif1.2/lib to /etc/ld.so.conf and type
``/sbin/ldconfig''. (This solved a problem on one machine that could
not load libXm.so.1).
- Check to make sure the files in /usr/X11R6/include/Xm are the
correct version. Don't mix Motif 1.x files with 2.x libraries or vice
versa.
- If problems are encountered with calculator.l or
calculator.y, try substituting bison and flex for yacc and lex respectively.
- If you have an unusual CPU and the program compiles successfully but
cannot read TIFF files, it may be caused by incorrect determination of the
byte order. Each compiler seems to have a different way of indicating the
byte order. Posix-compliant systems are supposed to have a file called
bytesex.h or endian.h. If these files are not present,
make may get the byte order wrong.
To fix this, add either #define LITTLE_ENDIAN or
#undef LITTLE_ENDIAN after the line #define MAXWINDOWS 10 in xmtnimage.h to force the correct byte order and run 'make clean'
and 'make' again.
- Don't edit y.tab.c or y.tab.cc. These are created
automatically from calculator.y.
More compiling problems and solutions
- Problem:
In file included from xmtnimage.cc:11:
xmtnimagec.h:9: Xbae/Matrix.h: No such file or directory
- Solution:
Xbae installation did not occur correctly. Manually copy libXbae.a
to /usr/X11R6/lib and copy *.h to /usr/X11R6/include/Xbae.
- Problem: grep: /Xm/Xm.h: No such file or directory
./configure: test: -ge: unary operator expected
- Solution: Motif is not installed correctly; or paths to
Motif are incorrect. This occurs on SuSE linux with Lesstif.
Should say: found after looking for
/usr/X11R6/include/Xm/Xm.h
...
looking for /usr/openwin/share/include/Xm/Xm.h
- Problem: In file included from xmtnimage.cc:10:
xmtnimage.h:79: bytesex.h: No such file or directory
- Solution:
This should not occur. Delete config.cache and rerun ./configure.
- Problem:
gcc: installation problem, cannot exec `cc1plus': No such file or directory
- Solution:
gpp / g++ must be installed; egcs or gcc alone are not sufficient to compile
C++ programs.
- Problem:
/usr/X11R6/lib/libXbae.a(Matrix.o)(.data+0xb7c):
undefined reference to `XmeFromHorizontalPixels'
- Solution: Motif is not installed correctly. This message will
also occur during compilation of libXbae. Reinstall Motif and recompile
and reinstall libXbae.a.
- Problem:
tnimage: loadlocale.c:220: _nl_load_locale: Assertion `idx % __alignof__ (u_int32_t) == 0' failed.
- Solution: export LC_ALL=POSIX
Next: Running DOS version
Up: Installation instructions
Previous: Compiling with Lesstif
Contents
Index
root
2006-11-13