[Xastir] UGH!!! Shapefiles?

Robert Grattan bgrattan at mwc.edu
Thu Jan 9 16:04:00 EST 2003


I'm having the same sort of problem (among other things) and tried Reuven's suggested test of "whatever.c"
Here's what I got:

[root at pye root]# gcc whatever.c -o whatever -lshp
/usr/bin/ld: cannot find -lshp
collect2: ld returned 1 exit status

Bob

>>> Reuven Z Gevaryahu <gevaryah at netaxs.com> 09-Jan-03 15:29:21 >>>
Scott Clark wrote:
> I'm a Linux engineer by trade - and strangely, I'm having the hardest time
> getting Xastir to work properly!!
> 
> Started with Red Hat 8.0 opn my laptop running smoothly.  Had so much
> trouble with gcc (not just xastir - but LOTS of source code) that I reverted
> to a fresh 7.3 installation.
> 
> I get version 1.3 to compile fine - except the configure script says "NO" to
> building with shapelib support.  Strange, because I've compiled shapelib,
> made sure the library paths are correct & available, yet the Configure
> script flies right on by.  Figuring maybe the config script was as out of
> date as much of the documentation, I ran xastir and discovered the Shapelib
> support did not make it into the build.

The test for shapelib used by configure is rather simple, you can 
duplicate the test:

create a file called whatever.c

char DBFOpen();
int main() {
DBFOpen();
return 0; }

and do "gcc whatever.c -o whatever -lshp"

If that fails to compile or link, correct the problem: DBFOpen is a 
function defined in shapelib, and if -lshp isn't causing shapelib to be 
linked for whatever reason, the configure script is correct in not using 
it. If you give us any error generated by this simple test program, 
perhaps I could help more.

--Reuven (KB3EHW)

_______________________________________________
Xastir mailing list
Xastir at xastir.org 
http://krypton.hscs.virginia.edu/mailman/listinfo/xastir



More information about the Xastir mailing list