[ptx] libpano12 - build with GNU autoconf, automake and libtool

Andreas Hirczy ahi at itp.tugraz.at
Tue Nov 9 10:12:22 GMT 2004


Douglas Wilkins <douglasw at zahav.net.il> writes:

> One thing that I have not sorted is that the tools are built before the
> library, which is still a problem :-((

Sorry for my previous posting; with "SUBDIRS=m4 . tools" tools will be build
after the library, but fails on a clean machine:

[....]
(cd .libs && rm -f libpano12.la && ln -s ../libpano12.la libpano12.la)
make[2]: Leaving directory `/var/tmp/libpano12-2.7.0.7'
Making all in tools
make[2]: Entering directory `/var/tmp/libpano12-2.7.0.7/tools'
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -DHasJava -I/usr/include -DHasJPEG -I/usr/include -DHasPNG -I/usr/include -DHasTIFF -I/usr/include -DHasZLIB -D__Ansi__=1    -g -O2 -MT panoinfo_unix.o -MD -MP -MF ".deps/panoinfo_unix.Tpo" \
  -c -o panoinfo_unix.o `test -f 'panoinfo_unix.c' || echo './'`panoinfo_unix.c; \
then mv -f ".deps/panoinfo_unix.Tpo" ".deps/panoinfo_unix.Po"; \
else rm -f ".deps/panoinfo_unix.Tpo"; exit 1; \
fi
/bin/sh ../libtool --mode=link gcc  -g -O2  -L/usr/lib -ljpeg -L/usr/lib -lpng -L/usr/lib -ltiff -L/usr/lib -lz  -o panoinfo   panoinfo_unix.o  -lpano12 
mkdir .libs
gcc -g -O2 -o panoinfo panoinfo_unix.o  -L/usr/lib /usr/lib/libjpeg.so -lpng -ltiff -lz -lpano12
/usr/bin/ld: cannot find -lpano12
collect2: ld returned 1 exit status
make[2]: *** [panoinfo] Error 1
make[2]: Leaving directory `/var/tmp/libpano12-2.7.0.7/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/libpano12-2.7.0.7'
make: *** [all] Error 2
[....]


While I like m4/, i still think its better to have build commands for panoinfo
and PTOptimizer in a main Makefile.am.

Andreas

-- 
Andreas Hirczy <ahi at itp.tugraz.at>                   http://itp.tugraz.at/~ahi/
Graz University of Technology                          phone: +43/316/873-81 90
Institute of Theoretical and Computational Physics       fax: +43/316/873-86 78
Petersgasse 16, A-8010 Graz                         mobile: +43/699/19 14 24 60


More information about the ptX mailing list