[Shapelib] Shapelib 1.3
Brian Peschel
brianp at occinc.com
Mon Jun 21 11:45:04 PDT 2010
Is the 1.3 still a beta release of shapelib? I noticed it is available
at http://download.osgeo.org/shapelib/ but not at
http://dl.maptools.org/dl/shapelib/.
Either way, I needed to make a change to the 1.3.0b2 Makefile in the lib
section. The file safileio.c was not being compiled in the library, so
I couldn't link the library.
I figured I would pass this on (I don't recall seeing an email about it,
but I couldn't recall if this was a beta either) in cause you want to
update the master :
lib:
/bin/sh ./libtool --mode=compile gcc -DPACKAGE=\"libshp\"
-DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I.
-I/usr/local/include -g -O2 -c shpopen.c
gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\"
-DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c -fPIC -DPIC
shpopen.c -o .libs/shpopen.lo
gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\"
-DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c shpopen.c -o
shpopen.o >/dev/null 2>&1
mv -f .libs/shpopen.lo shpopen.lo
/bin/sh ./libtool --mode=compile gcc -DPACKAGE=\"libshp\"
-DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I.
-I/usr/local/include -g -O2 -c shptree.c
rm -f .libs/shptree.lo
gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\"
-DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c -fPIC -DPIC
shptree.c -o .libs/shptree.lo
gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\"
-DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c shptree.c -o
shptree.o >/dev/null 2>&1
mv -f .libs/shptree.lo shptree.lo
/bin/sh ./libtool --mode=compile gcc -DPACKAGE=\"libshp\"
-DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I.
-I/usr/local/include -g -O2 -c dbfopen.c
rm -f .libs/dbfopen.lo
gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\"
-DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c -fPIC -DPIC
dbfopen.c -o .libs/dbfopen.lo
gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\"
-DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c dbfopen.c -o
dbfopen.o >/dev/null 2>&1
mv -f .libs/dbfopen.lo dbfopen.lo
/bin/sh ./libtool --mode=compile gcc -DPACKAGE=\"libshp\"
-DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I.
-I/usr/local/include -g -O2 -c safileio.c
rm -f .libs/safileio.lo
gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\"
-DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c -fPIC -DPIC
safileio.c -o .libs/safileio.lo
gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\"
-DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c safileio.c -o
safileio.o >/dev/null 2>&1
mv -f .libs/safileio.lo safileio.lo
/bin/sh ./libtool --mode=link gcc -g -O2 -o libshp.la -rpath
/usr/local/lib -version-info 1:1:0 shpopen.lo shptree.lo dbfopen.lo
safileio.lo
rm -fr .libs/libshp.la .libs/libshp.* .libs/libshp.*
rm -fr .libs/libshp.lax
mkdir .libs/libshp.lax
$(LD) -G -h libshp.so.1 -o .libs/libshp.so.$(LIBSHP_VERSION)
shpopen.lo shptree.lo dbfopen.lo safileio.lo -lc
(cd .libs && rm -f libshp.so.1 && ln -s
libshp.so.$(LIBSHP_VERSION) libshp.so.1)
(cd .libs && rm -f libshp.so && ln -s
libshp.so.$(LIBSHP_VERSION) libshp.so)
ar cru .libs/libshp.a shpopen.o shptree.o dbfopen.o
ranlib .libs/libshp.a
rm -fr .libs/libshp.lax
(cd .libs && rm -f libshp.la && ln -s ../libshp.la libshp.la)
- B
--
Brian Peschel
More information about the Shapelib
mailing list