Thanks for responding David and Tom,

I started out doing this because I wanted to interface Xastir to
PostGis/Postgresql as I thought this might prove interesting to our local
digital ham radio group.  The whole Xastir thing appears new to most of us.

Yes, I was following the How to Fedora link you mentioned along with other
sources as I've spent the previous day and a half in an attempt to build
xastir with all its features enabled.
I have slowly been adding libraries and at least getting the configure to
tell me that it thought it was finding the necessary pieces.

Actually neither ImageMagick nor GraphicsMagick, both of which are
installed, along with their development rpms, were being found when I ran
xastir's configure. I just ran the configure after a cold start of my
system this morning and voilĂ  the GraphicsMagick was found by xastir's
configure.

BTW I installed GraphicsMagick in the first place because one of the xastir
installation documents argued that it was more likely to maintain a stable
API than ImageMagick which was under greater development pressures.  I've
had ImageMagick installed for quite a while so added the development rpm,
but ./configure was not finding it, so I added GraphicsMagick to my
system.  I would be curious why you are recommending ImageMagick over
GraphicsMagick.

Results of ./configure first thing this morning:

xastir 2.0.6 has been configured to use the following
options and external libraries:

MINIMUM OPTIONS:
  ShapeLib (Vector maps) ................. : yes

RECOMMENDED OPTIONS:
  GraphicsMagick/ImageMagick (Raster maps) : yes (GraphicsMagick)
  pcre (Shapefile customization) ......... : yes
  dbfawk (Shapefile customization) ....... : yes
  rtree indexing (Shapefile speedups) .... : yes
  map caching (Raster map speedups) ...... : no
  internet map retrieval ................. : yes (wget)

FOR THE ADVENTUROUS:
  AX25 (Linux Kernel I/O Drivers) ........ : no
  libproj (USGS Topos & Aerial Photos) ... : yes
  GeoTiff (USGS Topos & Aerial Photos) ... : yes
  Festival (Text-to-speech) .............. : yes
  GDAL/OGR (Obtuse map formats) .......... : yes
  GPSMan/gpsmanshp (GPS downloads) ....... : yes

xastir will be installed in /usr/local/bin.
Type 'make' to build Xastir (Use 'gmake' instead on some systems).

Not so good after all!  It turns out that if I run ./configure
--with-postgis I get this:

xastir 2.0.6 has been configured to use the following
options and external libraries:

MINIMUM OPTIONS:
  ShapeLib (Vector maps) ................. : yes

RECOMMENDED OPTIONS:
  GraphicsMagick/ImageMagick (Raster maps) : no
  pcre (Shapefile customization) ......... : yes
  dbfawk (Shapefile customization) ....... : yes
  rtree indexing (Shapefile speedups) .... : yes
  map caching (Raster map speedups) ...... : no
  internet map retrieval ................. : yes (wget)

FOR THE ADVENTUROUS:
  AX25 (Linux Kernel I/O Drivers) ........ : no
  libproj (USGS Topos & Aerial Photos) ... : yes
  GeoTiff (USGS Topos & Aerial Photos) ... : yes
  Festival (Text-to-speech) .............. : yes
  GDAL/OGR (Obtuse map formats) .......... : no
  GPSMan/gpsmanshp (GPS downloads) ....... : yes

DEVELOPER OPTIONS:
  ErrorPopups (Old Method) ............... : no
  libgc (Debug memory usage) ............. : no
  profiling (Debug code efficiency) ...... : no
  Linux Standard Base (LSB) .............. : no
  Spatial database support ............... : yes
  Spatial database Postgresql/Postgis .... : yes
  MySQL .................................. :
  MySQL Spatial database support ......... : no

xastir will be installed in /usr/local/bin.
Type 'make' to build Xastir (Use 'gmake' instead on some systems).

The relevant detail sections output as configure runs appear to be:

1. ./configure

checking if db.h is exists and is usable... no
checking for GraphicsMagick-config... /usr/bin/GraphicsMagick-config
checking GraphicsMagick/magick/api.h usability... yes
checking GraphicsMagick/magick/api.h presence... yes
checking for GraphicsMagick/magick/api.h... yes
checking for WriteImage in -lGraphicsMagick... yes
checking that generated files are newer than configure... done

2. ./configure --with-postgis

checking if db.h is exists and is usable... no
checking for GraphicsMagick-config... /usr/bin/GraphicsMagick-config
checking GraphicsMagick/magick/api.h usability... yes
checking GraphicsMagick/magick/api.h presence... yes
checking for GraphicsMagick/magick/api.h... yes
checking for WriteImage in -lGraphicsMagick... no
configure: WARNING: *** Cannot find GraphicsMagick library files: Building
w/o GraphicsMagick support. ***
checking for Magick-config... /usr/bin/Magick-config
checking magick/api.h usability... yes
checking magick/api.h presence... yes
checking for magick/api.h... yes
checking for library containing WriteImage... no
configure: WARNING: *** Cannot find ImageMagick library files:  Building
w/o ImageMagick support. ***
checking that generated files are newer than configure... done

which suggest to me that there is a problem to be found in the ./configure
having to do with how the --with-postgis flag is being processed.  Like I
said I really don't understand exactly what the .configure does but I will
take a look and see what I can learn.  Hopefully someone with more xastir
experience and knowledge of what it takes to get it to run will take a look
and provide some advice.

Eventually, I'm going to see if I can add map caching next and see if I can
get the AX25 drivers in too.  Though at this point I am not sure what AX25
will do for me.  Guess the challenge is put it all together and see what I
get.

I was disappointed when I did a ./configure --with-postgis followed by a
make which quickly gave me a fatal error apparently because it couldn't
find a requisite .h file.

gcc -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include
-I/usr/pgsql-9.4/include -D_GNU_SOURCE -I/usr/include/libxml2
-I/usr/include -DXASTIR_DATA_BASE=\"/usr/local/share/xastir\"  -g -O2 -pipe
-W -Wall -Wpointer-arith -Wstrict-prototypes -Wno-unused-parameter -pthread
-MT db.o -MD -MP -MF .deps/db.Tpo -c -o db.o db.c
In file included from db.c:82:0:
db_gis.h:57:22: fatal error: libpq-fe.h: No such file or directory
 #include <libpq-fe.h>

I've Postgres 9.4 and PostGIS installed on this system so I'll go looking
for the file.  I can't remember how I installed it but the default version
of Postgresql for Fedora 20 is 9.3 so I did something different than just
yum from the Fedora repos.

I apologize if this is too much.

[image: Picture]G3

On Sun, Apr 19, 2015 at 8:36 PM, David Ranch <[email protected]> wrote:

>
> Are you following http://xastir.org/index.php/HowTo:Fedora ?  If so, I
> recommend to install ImageMagick instead.
>
> Btw, if you want to build things as an RPM, you can download my spec file
> here:
>
>
> http://www.trinityos.com/HAM/CentosDigitalModes/usr/src/redhat/SPECS/xastir.spec
>
> My long hand notes in getting it going are here if you're interested:
>
>
> http://www.trinityos.com/HAM/CentosDigitalModes/hampacketizing-centos.html#19b.xastir-compile
>
>
> --David
> KI6ZHD
>
>
>
> On 04/19/2015 07:54 PM, Gayland Gump wrote:
>
>> I running Fedora 20.  I've installed GraphicsMagick via yum.  ./configure
>> doesn't offer me an option (eg
>> with-graphicsmagick=/usr/lib64/GraphicsMagick-1.3.20) as far as I can see.
>> I don't compile applications much these days and just not understanding
>> why
>> this is happening.  Any help would be appreciated.
>>
>> checking for GraphicsMagick-config... /usr/bin/GraphicsMagick-config
>> checking GraphicsMagick/magick/api.h usability... yes
>> checking GraphicsMagick/magick/api.h presence... yes
>> checking for GraphicsMagick/magick/api.h... yes
>> checking for WriteImage in -lGraphicsMagick... no
>> configure: WARNING: *** Cannot find GraphicsMagick library files: Building
>> w/o GraphicsMagick support. ***
>> [image: Picture]G3
>> _______________________________________________
>> Xastir mailing list
>> [email protected]
>> http://xastir.org/mailman/listinfo/xastir
>>
>
> _______________________________________________
> Xastir mailing list
> [email protected]
> http://xastir.org/mailman/listinfo/xastir
>
_______________________________________________
Xastir mailing list
[email protected]
http://xastir.org/mailman/listinfo/xastir

Reply via email to