I am trying to compile an open source program called quantim4 (
http://www.ufz.de/index.php?en=16562) on Ubuntu 13.10 (64x) machine.
This program requires TIFF library. I believe I have TIFF library installed, because I found following library files in my computer. I need help to properly link libtiff files so that I can successfully compile this program quantim4.
/usr/lib/evince/4/backends/libtiffdocument.so
/usr/lib/i386-linux-gnu/libtiff.so.5.1.0
/usr/lib/i386-linux-gnu/libtiff.so.5
/usr/lib/x86_64-linux-gnu/libtiff.so
/usr/lib/x86_64-linux-gnu/libtiffxx.so.0.0.10
/usr/lib/x86_64-linux-gnu/libtiff.so.4.3.6
/usr/lib/x86_64-linux-gnu/libtiff.so.5.1.0
/usr/lib/x86_64-linux-gnu/libtiff.la
/usr/lib/x86_64-linux-gnu/libtiffxx.a
/usr/lib/x86_64-linux-gnu/libtiffxx.so.0
/usr/lib/x86_64-linux-gnu/libtiff.so.5
/usr/lib/x86_64-linux-gnu/libtiffxx.so
/usr/lib/x86_64-linux-gnu/libtiffxx.la
/usr/lib/x86_64-linux-gnu/libtiff.so.4
/usr/lib/x86_64-linux-gnu/libtiff.a
/usr/share/man/man3/libtiff.3tiff.gz
/usr/share/lintian/overrides/libtiff4
also, I created link(ln -s) to tiff files in my local bin folder
$ls /usr/local/lib/
libPSgraf3.a libtiff.a python2.7 site_ruby tiffio.h
libQuantim4.a libtiff.so.5 python3.3 tiff.h
$PATH
bash: /usr/local/lib:/usr/local/cuda-5.5/bin:/usr/local/cuda-5.5/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/jdk1.7.0_45/bin: No such file or directory
when I try to compile a demo example of this program, I am getting following errors related to LIBTIFF
$g++ -g demo.c -lm -ltiff -lQuantim4 -lPSgraf3
demo.c: In function ‘int main(int, char**)’:
demo.c:172:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/usr/local/lib/libQuantim4.a(files.o): In function `LoadImage(char*)':
files.c:(.text+0xe49): undefined reference to `TIFFOpen'
files.c:(.text+0xe6d): undefined reference to `TIFFGetField'
files.c:(.text+0xe83): undefined reference to `TIFFGetField'
files.c:(.text+0xe9c): undefined reference to `TIFFGetField'
files.c:(.text+0xeb5): undefined reference to `TIFFGetField'
files.c:(.text+0xfab): undefined reference to `TIFFGetField'
files.c:(.text+0xfb5): undefined reference to `TIFFScanlineSize'
files.c:(.text+0xfff): undefined reference to `TIFFGetField'
files.c:(.text+0x1052): undefined reference to `TIFFReadScanline'
files.c:(.text+0x108d): undefined reference to `TIFFClose'
files.c:(.text+0x1209): undefined reference to `TIFFReadScanline'