TIFF and LibTiff Mail List Archive

2014.10.07 04:50 "[Tiff] build a static tiff2pdf", by Joel Costigliola


I'm trying to build a static binaries, to embedd tiff2pdf in my java application.

I'm running Ubuntu 14.04, I have been able to build a tiff2pdf binary using shared libraries but I failed to build a static one.

I'm not really familiar with makefile so I probably haven't used the right configuration, here's what I did:

A tiff2pdf executable is built, its size is 1.6M but running ldd on it shows that it's not a static binary.

~/prog/tiff2pdf/tiff-4.0.3/tools? ldd ./tiff2pdf => (0x00007fff7e7fe000) => /usr/local/lib/ (0x00007f822aa34000) => /lib/x86_64-linux-gnu/ (0x00007f822a72e000) => /lib/x86_64-linux-gnu/ (0x00007f822a367000)
    /lib64/ (0x00007f822ac8c000)

Having read this post, it might not be possible

Is there a way to build a static version of tiff2pdf? If yes how?

Thanks for your help,