2020.11.10 09:40 "[Tiff] Compiling Libtiff with JBIG support", by Peter Chan

2020.11.10 14:15 "Re: [Tiff] Compiling Libtiff with JBIG support", by Bob Friesenhahn

$ cd ../tiff-4.1.0
$ ./configure --with-jbig-include-dir=./libjbig/ --with-jbig-lib-dir=./libjbig/

This request is saying that libjbig is in a subdirectory of the libtiff code.

/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -W -L./libjbig/ -o libport.la dummy.lo -ljbig -lz
../libtool: line 7486: cd: ./libjbig/: No such file or directory
libtool: error: cannot determine absolute directory name of './libjbig/'
make[1]: *** [libport.la] Error 1
make: *** [all-recursive] Error 1

It seems that the subdirectory does not exist.

S["CPPFLAGS"]="-I../libjbig/ "
S["LDFLAGS"]="-L../libjbig/ "

If you meant "../libjbig/", why did you not specify that as the argument to configure? Regardless, it is always wise to specify fully-qualified paths (starting with "/") rather than relative paths in case they are evaluated by a script in some other directory.

#### Manage to compile up to libtiff.a and various *.dylib are generated but it stop here. ####
#### That's my best effort. Don't know how to continue from here. ####

This seems like an obvious error in the way the configure arguments were prepared.


Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt