> With a small amount of work by us the OSX people could also have an
> easy source install of Xastir.

I didn't realize that there wasn't an easy source install of Xastir on
OSX--I did it last week without any hiccups. Maybe I should share my
work (I just have bash history, although there are a few graphical
steps).

1. Download and install Macports from
http://www.macports.org/install.php. I downloaded the dmg, install was
painless.

2. Open Terminal

3. I found that OSX couldn't find port, so run "export
PATH=/opt/local/bin:/opt/local/sbin:$PATH"

4. Install stuff: "sudo port install lesstif imageMagick db45 pcre
proj gdal" (it sounds like openmotif causes problems, so I used
lesstif). This command runs for a long time.

5. Follow the shapelib instructions here:
http://n1ofz.connares.org/software/build (looks like credit goes to
Bill Owen, N2RKL, for this):
5a. Download http://wetnet.net/~we7u/xastir/shapelib/shapelib-1.2.10.tar.gz
5b. Go to the directory that you downloaded the shapelib source with
the cd command then type in the following list of commands:
tar xvzf shapelib-1.2.10.tar.gz
cd shapelib-1.2.10
cc -c shpopen.c
cc -c shptree.c
cc -c dbfopen.c
ar cru libshp.a shpopen.o shptree.o dbfopen.o
sudo cp libshp.a /usr/local/lib
sudo ranlib /usr/local/lib/libshp.a
sudo mkdir /usr/local/include/libshp
sudo cp shapefil.h /usr/local/include/libshp

6. This is in my bash history:
tar zvxf libgeotiff-1.2.5.tar.gz
sudo tar zvxf libgeotiff-1.2.5.tar.gz
cd libgeotiff-1.2.5
./configure --prefix=/usr/local
Note: I don't compile or install this, so I must have realized I
didn't need to do these steps. Xastir reports I have GeoTiff, so I
must have installed this some other way.

7. Install Xastir from cvs with configure flags
(http://www.xastir.org/wiki/index.php/Notes:CVS)
7a. cd ~/src/
cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/xastir login
cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/xastir co xastir
cd xastir/
./bootstrap.sh
./configure --with-bdb-incdir=/opt/local/include/db45
--with-bdb-libdir=/opt/local/lib/db45
make
sudo make install-strip
xastir

About Xastir shows:
Libraries used: ImageMagick libProj GeoTiff GDAL/OGR ShapeLib PCRE
Dbfawk map_caching rtree libcurl

So far I have only used the online Tigermaps. I still need to transfer
and test my Tiger shapefiles onto my MacBook (hopefully they
render--they should with this install, right?)

I have the iPhone Developer SDK, so I think I got the required X11
stuff from there (I didn't do anything special before installing
xastir).

For this install I pieced together information for a few of the Xastir
Wiki pages and other sources (noted above). I'd like to consolidate
this into one wiki page, but I haven't had a chance yet. It would be
helpful if someone could confirm this process works before I throw it
in the wiki--installation on my system is probably not a good test
because I already had a few dependencies.

Anyway, this is what worked for me. I hope someone can find some use in this.

Tom KD7LXL
_______________________________________________
Xastir mailing list
Xastir@xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

Reply via email to