Pre-processing problems

Jan-Oliver Wagner jan at intevation.de
Wed Mar 12 17:06:37 CET 2003


Hello Johan,

Since you are on a RedHat GNU/Linux, you might simply want
to use the RPM packages of shapelib and gen2shp:

	ftp://intevation.de/freegis/gnu-linux-i586/freegis-1.2.2/i386/

The full story on the FreeGIS CD is here:

	http://freegis.org/cd-contents.en.html

Else the following hints might help:

On Wed, Mar 12, 2003 at 02:35:20PM +0000, Johan Olanders wrote:
> Next I tried to install the gen2shp program. First I got loads of errors
> when executing make. After changing a path to the place where my
> shapfil.h were located in gen2shp.c (#include
> </home/johan/Greater/Preproc/shapelib-1.2.9/shapefil.h>)

You usually specify the include path in the Makefile like this:
CFLAGS=-I /home/johan/Greater/Preproc/shapelib-1.2.9
You then do not need to change the actual source code.

> I get this error message when executing the make command:
> [johan at ouse gen2shp-0.3.1]$ make
> cc  -o gen2shp -lshp gen2shp.c utils.o
> /usr/bin/ld: cannot find -lshp
> collect2: ld returned 1 exit status
> make: *** [gen2shp] Error 1

Same here: You need to specify where to find the libshp.la
and adapt the CFLAGS.
Maybe this works four your setup:
CFLAGS=-I /home/johan/Greater/Preproc/shapelib-1.2.9 -L /home/johan/Greater/Preproc/shapelib-1.2.9
but this is just a guess - you should find out yourself the correct path.

Hope this helps

	Jan
-- 
Jan-Oliver Wagner               http://intevation.de/~jan/

Intevation GmbH	              	     http://intevation.de/
FreeGIS	                               http://freegis.org/




More information about the Great-er-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)