[Xastir] Cygwin Xastir help needed

KK6RW kk6rw at kk6rw.com
Sat Nov 13 11:54:51 EST 2004


Tom,

> On Sat, Nov 13, 2004 at 06:39:47AM -0700, we recorded a bogon-computron 
> collision of the <russo at bogodyn.org> flavor, containing:
>> On Sat, Nov 13, 2004 at 06:38:07AM -0700, we recorded a bogon-computron 
>> collision of the <russo at bogodyn.org> flavor, containing:
>> > On Sat, Nov 13, 2004 at 04:31:48AM -0800, we recorded a bogon-computron 
>> > collision of the <kk6rw at kk6rw.com> flavor, containing:
>> > > Hello all,
>> > >
>> > > I've tried to install shapelib support for Xastir under Cygwin. I 
>> > > seem to
>> > > have installed it properly but now I am getting errors during the 
>> > > 'make"
>> > > and 'make install' process. There are many error that I cannot type 
>> > > them
>> > > all here but I was hoping to get some help in learning how to dump 
>> > > out a
>> > > test listing to a file as it displays in the BASH shell. I've looked
>> > > through the BASH help but cannot find any mention of this function. 
>> > > Could
>> > > someone offer assistance?
>> > >
>> > > It seems my problems are with a database as one of the first error 
>> > > lines
>> > > says:
>> > > map_cache.c:37:16: db.h No such file or directory
>> >
>> > There is new code here that is probably broken on Cygwin (and any other
>> > platform that doesn't have Berkeley DB code.  Probably an un-ifdefed 
>> > block
>> > somewhere.
>> >
>> > I'll take a look and see if I can fix it.
>>
>> OOOH!  No, maybe not.
>
> Actually, yes.  There is no ifdef of any sort that disables compilation of
> map_cache if db.h doesn't exist, even though there's a configure test for 
> it.
> This is a bug that will prevent xastir from building on cygwin.
>
> The fix should be simple --- I'm test compiling it on cygwin now and will
> commit it in a few minutes.  The anonymous CVS repository won't be up to 
> date
> for a few hours (I think), so the fix is this: in map_cache.c there's an
> #ifdef USE_MAP_CACHE whose matching #endif is immediately after the 
> "warning".
> Move the #endif to the end of the file so the entire thing is skipped
> if USE_MAP_CACHE isn't defined.  USE_MAP_CACHE is only defined if the 
> Berkeley
> DB library and headers is found.

The #endif solved the problem. ./configure, make, and make install worked 
fine. Thanks!

Would this problem have caused a problem with Shapefiles not available in 
Xastir? I have errors during ./configure shown on the image at 
http://www.kk6rw.com/shapefilerr.png  thats show usability of shapefil  --  
no.

I've followed instructions in README.win32 but cannot get shapefiles to show 
on map chooser.

Any suggestions or what to check?

Thanks Tom!

Randy Whitney, KK6RW
 




More information about the Xastir mailing list