AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
April 2008

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2008.04.10 18:58 "Linking against libz, libjpeg", by <dean@brewsession.com>
2008.04.10 21:43 "Re: Linking against libz, libjpeg", by Bob Friesenhahn
2008.04.10 23:38 "Re: Linking against libz, libjpeg", by <dean@brewsession.com>
2008.04.10 23:57 "Re: Linking against libz, libjpeg", by Bob Friesenhahn
2008.04.11 14:50 "Re: Linking against libz, libjpeg", by <dean@brewsession.com>
2008.04.11 09:44 "Re: Linking against libz, libjpeg", by Andrey Kiselev

2008.04.10 18:58 "Linking against libz, libjpeg", by <dean@brewsession.com>

Hello Tiff folks, remember me?  ;-)

I am building libtiff for sparc-sun-solaris2.10 and can't get it to link
against the non-system libz and libjpeg.

Here is my configure script:

#!/usr/bin/sh

OS=`uname -r`
ARCH="sun4"
SOFTDIST_DIR=/usr/dist/share

PACKAGE=libtiff
VERSION=3.8.2

PREFIX="${SOFTDIST_DIR}/${PACKAGE},v${VERSION}"

ZLIBS="${SOFTDIST_DIR}/zlib,v1.2.3"
JPEGSRC="${SOFTDIST_DIR}/jpegsrc,v6b"

CC="${SOFTDIST_DIR}/forte_dev/bin/cc"; export CC
CXX="${SOFTDIST_DIR}/forte_dev/bin/CC"; export CXX

./configure --prefix=${PREFIX} \
            --bindir=${PREFIX}/${OS}-bin.${ARCH} \
            --libdir=${PREFIX}/${OS}-lib.${ARCH} \
            --includedir=${PREFIX}/${OS}-include.${ARCH} \
            --mandir=${PREFIX}/doc/man \
            --enable-cxx \
            --with-zlib-lib-dir=${ZLIBS}/${OS}-lib.${ARCH} \
            --with-zlib-include-dir=${ZLIBS}/${OS}-include.${ARCH} \
            --with-jpeg-lib-dir=${JPEGSRC}/${OS}-lib.${ARCH} \
            --with-jpeg-include-dir=${JPEGSRC}/${OS}-include.${ARCH}

Note that I tell it to look for zlib and jpeg in /usr/dist/share/..., but the
compiled binaries link against /usr/lib:

0 sd-ccs-01 libtiff,v3.8.2/5.10-bin.sun4 % ldd bmp2tiff
        libtiff.so.3 =>  /usr/dist/share/libtiff,v3.8.2/5.10-lib.sun4/libtiff.so.3
        libjpeg.so.62 =>         /usr/lib/libjpeg.so.62
        libz.so =>       /usr/lib/libz.so
        libm.so.2 =>     /lib/libm.so.2
        libc.so.1 =>     /lib/libc.so.1
        /platform/SUNW,Ultra-30/lib/libc_psr.so.1

Is there something I am missing?

Thanks,
--Dean
--
Unscrambler of eggs
[1709.5k, 224.8deg] Apparent Rennerian
-------------------------------------------------------------------------------
i am become def, the mixer of words

I must obey the inscrutable exhortations of my soul