Joel Costigliola
2014-10-07 04:50:37 UTC
Hey,
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 :
- ./configure --prefix=/home/joelco/prog/tiff2pdf/ --enable-shared=no
- make
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
linux-vdso.so.1 => (0x00007fff7e7fe000)
libjpeg.so.7 => /usr/local/lib/libjpeg.so.7 (0x00007f822aa34000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f822a72e000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f822a367000)
/lib64/ld-linux-x86-64.so.2 (0x00007f822ac8c000)
Having read this post, it might not be possible http://www.asmail.be/msg0055326082.html
Is there a way to build a static version of tiff2pdf ? If yes how ?
Thanks for your help,
Joel
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 :
- ./configure --prefix=/home/joelco/prog/tiff2pdf/ --enable-shared=no
- make
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
linux-vdso.so.1 => (0x00007fff7e7fe000)
libjpeg.so.7 => /usr/local/lib/libjpeg.so.7 (0x00007f822aa34000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f822a72e000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f822a367000)
/lib64/ld-linux-x86-64.so.2 (0x00007f822ac8c000)
Having read this post, it might not be possible http://www.asmail.be/msg0055326082.html
Is there a way to build a static version of tiff2pdf ? If yes how ?
Thanks for your help,
Joel