[Xastir] XASTIR not picking up maps

Tom Russo russo at bogodyn.org
Sat Nov 13 18:52:06 EST 2004


On Sat, Nov 13, 2004 at 04:46:11PM -0700, we recorded a bogon-computron collision of the <russo at bogodyn.org> flavor, containing:
> On Sun, Nov 14, 2004 at 09:14:13AM +1000, we recorded a bogon-computron collision of the <vk4tec at tech-software.net> flavor, containing:
> > On Sun, 2004-11-14 at 08:07, vk4tec wrote:
> > 
> > Whats does this mean ?
> > 
> > Built-in map types:
> >       gnis   USGS GNIS Datapoints
> >        map   APRSdos Maps
> >        map   WinAPRS/MacAPRS/X-APRS Maps
> >        pdb   PocketAPRS Maps
> > 
> > Support for these additional map types has been compiled in:
> >        geo   URL (Internet maps via libcurl library)
> >        xpm   X Pixmap Maps (XPM library)
> > ERROR loading /usr/local/share/xastir/maps/00.jpg
> 
[etc.]
> The .geo code in map_geo prints out this message when it attempts to 
> use the "XpmReadFileToImage" call --- which is only supposed to be used to
> read in xpm (X PixMap) files.
> 
> For whatever reason your xastir does not have support for jpg or any other
> raster map compiled in, and the code is trying to load them as if they're
> xpm files.
> 
> To use xastir with jpg or PNG files (such as the ones you're going to get
> from USRadar.geo), you need to have ImageMagick working.  Do you?

As a point of information: the XpmReadFileToImage is only called if 
"HAVE_IMAGEMAGICK" is not defined, usually meaning that configure failed
to detect ImageMagick.

It's unfortunate, though, that the non-imagemagick code simply assumes that
any file it's given is an xpm and tries to read it, giving this error message.
Perhaps a little checking of file type should be done prior to the call?

-- 
Tom Russo    KM5VY     SAR502  DM64ux         http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236 AHTB#1 http://www.qsl.net/~km5vy/
 "Politics consists of choosing between the disastrous and the unpalatable."
                                      -- John Kenneth Galbraith



More information about the Xastir mailing list