[Xastir] UGH!!! Shapefiles?

Reuven Z Gevaryahu gevaryah at netaxs.com
Thu Jan 9 15:29:21 EST 2003


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)



More information about the Xastir mailing list