Install shapelib HELP

K Kuo mtrp36 at HOTMAIL.COM
Thu Nov 17 10:10:18 EST 2005


Hi,
I follow the procedures provided in book "Beginning MapServer open source 
gis development" by Bill Kropla to build and install shapelib. However, it 
seems that I failed. Could anyone please give me some suggestions. Thanks in 
advance.

As book said:
1. untar the shapelib tarball
tar -xvzf shapelib-1.2.10.tar.gz  -C /usr/local/src/            of course, 
there is no problem...
change directory to usr/local/src/shapelib-1.2.10/

2. make
I got some warning messages:

shpcreate.c: In function ‘main’:
shpcreate.c:68: warning: incompatible implicit declaration of built-in 
function ‘exit’
shpcreate.c:85: warning: incompatible implicit declaration of built-in 
function ‘exit’
shpcreate.c:96: warning: incompatible implicit declaration of built-in 
function ‘exit’
cc -g shpadd.c shpopen.o  -o shpadd
cc -g shpdump.c shpopen.o  -o shpdump
shpdump.c: In function ‘main’:
shpdump.c:93: warning: incompatible implicit declaration of built-in 
function ‘exit’
shpdump.c:104: warning: incompatible implicit declaration of built-in 
function ‘exit’
shpdump.c:198: warning: incompatible implicit declaration of built-in 
function ‘exit’
cc -g shprewind.c shpopen.o  -o shprewind
shprewind.c: In function ‘main’:
shprewind.c:61: warning: incompatible implicit declaration of built-in 
function ‘exit’
shprewind.c:72: warning: incompatible implicit declaration of built-in 
function ‘exit’
shprewind.c:85: warning: incompatible implicit declaration of built-in 
function ‘exit’
shprewind.c:108: warning: incompatible implicit declaration of built-in 
function ‘exit’

3. I ignore the warning message the keep going with
make test
it seems to succeeded...
I got Stream 2 and Stream 3 succeeded.....

4. change directory to /usr/local/src/shapelib-1.2.10/contrib/tests and type 
make
I got message as follow:
make: *** No targets specified and no makefile found.  Stop.

The book indicates there is a syntax error in the script shpproj.sh
I edit the file and change dbfcreate test -s 30 fd to dbfcreate test -s fd 
30 then save it and run make check
Error message as:
make: *** No rule to make target `check'.  Stop.

Please help.....Thanks

by the way, i am running Fedora 4



More information about the mapserver-users mailing list