[Xastir] More Xastir questions.

KK6RW kk6rw at kk6rw.us
Sun May 9 09:50:49 EDT 2004


Hello Dick,

>Re: Ok.  Wait a minute.  It's too early in the morning.

>First of all, Everything I said in the last letter is bunk.

>Second on all, you were talking about installing Shapelib, but the
>screen capture you posted had nothing to do with installing shapelib.
>it was about installing the main executable.

>Which one are you trying.to do?

>Dick R.

Another user also sent a message indicating I needed to go to the root user
or "su" however that did not solve the problems.

The information I am using is on the README.Win32 file, a copy of the
pertinent follows:

**************************************************************

RECOMMENDED:  Adding Shapelib (tested with shapelib-1.2.10):
------------------------------------------------------------
Allows using many sources of online polygon, polyline, and point
maps, including ones from NOAA.  This is the only format used for
weather alert maps.

[ ] From a BASH shell, type:

    cd ~/src
    mkdir shapelib

[ ] Fetch "shapelib-1.2.10.tar.gz" from one of these sites:

    http:///shapelib.maptools.org/
or  http://wetnet.net/~we7u/xastir/shapelib/

[ ] Put it in the C:\cygwin\home\<user>\src\shapelib directory.

[ ] Untar it from the BASH shell:

    cd ~/src/shapelib
    tar xzvf shapelib-1.2.10.tar.gz

[ ] Edit Shapelib's Makefile to remove the space after the "-h" on
the line that looks like this:

    /usr/bin/ld -G -h libshp.so.1 -o .libs/libshp.so.$(LIBSHP_VERSION)
shpopen.lo shptree.lo dbfopen.lo -lc

Change it to this (one space missing and 'c' changed to "cygwin"):

    /usr/bin/ld -G -hlibshp.so.1 -o .libs/libshp.so.$(LIBSHP_VERSION)
shpopen.lo shptree.lo dbfopen.lo -lcygwin

I've had another report that says having the space is ok now.  The
"-lcygwin" is important to bypass the "_reent" bug below.

Here are the commands to bring up an editor on the file:

    cd ~/src/shapelib/shapelib-1.2.10
    nano Makefile


[ ] Save the edited file, then type:

    make lib

[ ] You may get the "undefined reference impure_ptr" messages.  If
so, edit the file /usr/include/sys/reent.h to remove the word
"extern" from this line:

    extern struct _reent *_impure_ptr __ATTRIBUTE_IMPURE_PTR__;

then try "make lib" again.

[ ] Type:

    make lib_install

If you get "cp: cannot stat `.libs/libshp.la': No such file or
directory", then you forgot to edit the Makefile.  BZZZT!  Please
start again at step 1) above.  Thank you for playing!

[ ] Now you should be ready to configure and compile Xastir with
Shapelib support.  Type these commands:

    cd ~/src/xastir
    ./configure
    make
    make install

The installed copy of Xastir should now have Shapelib support.  You
can download NOAA weather alert maps and many other sorts of maps,
and Xastir will recognize and use them.  Note that weather alert
shapefiles must go into the /usr/local/share/xastir/Counties
directory.  All other shapefiles must go into the
/cygwin/user/local/share/xastir/maps directory (and subdirectories
below that of your choosing).

***********************************************

Another interesting thing I ran across this morning. I have 2 Xastir.exe
files. One is at G:/cygwin/usr/local/bin/ . The other is at
G:/cygwin/home/randy/src/xastir/src/.

I have tried using the "su" but I receive an error - user root does not
exist

With the dual Xastir.exe files, it seems I may have hosed up the install in
some way.

Thank you for your help. As you've probably surmised, I've not been working
with Linux very long but I am trying to learn.

Thanks Dick

Randy
KK6RW







More information about the Xastir mailing list