Discussion:
[Xastir] libtiff / geotiff install hiccup
T Wegner
2010-09-20 19:14:51 UTC
Permalink
Following these instructions for installing geotiff prior to
installing Xastir on my Powerbook g4 osx 10.5.8 macintosh:

1) tar -xvzf libgeotiff-1.3.0
2) cd libgeotiff-1.3.0
3) ./configure --prefix=/usr/local
4) make
5) sudo make install
6) sudo ranlib /usr/local/lib/libgeotiff.a

Following step 3, I get this error message:

checking for TIFFOpen in -ltiff... no
configure: error: You will need to substantially rewrite libxtiff to
build libgeotiff without libtiff


I looked at the Xastir install page and searched both the libtiff and
Xastir archives, and while I did encounter what appears to be the same
error message in a thread on the latter, I am unable to make sense of
what I should do in my situation.

I did not donwload libtiff, but several libtiff items are found in
searching the computer (in gui mode - I have no idea how to find files
in command line), creation dates match the day I downloaded/installed:
the developer tools, X11, MacPorts, and presumably using MacPorts :
imagemagick, openmotif, pcre, db42, lcms, proj, gdal, libpng, and
libxml2. Finally, using the internet, shapelib-1.2.10 and geotiff 1.3.0

My understanding of command line, if it isn't overtly obvious already,
is quite limited.

Any ideas?

And be honest with me, if you think I'm getting in over my head before
I even try using the software, maybe I should just stick with the gui
stuff and wait for someone to develop a pre-compiled version?

Tom
Curt, WE7U
2010-09-20 19:34:46 UTC
Permalink
Post by T Wegner
3) ./configure --prefix=/usr/local
checking for TIFFOpen in -ltiff... no
configure: error: You will need to substantially rewrite libxtiff to
build libgeotiff without libtiff
You need to install tiff library and tiff headers (devel package).
It's looking to compile a test program against libtiff and not
finding the TIFFOpen function.

I don't know how you find the right packages for a Mac.
Post by T Wegner
And be honest with me, if you think I'm getting in over my head before I even
try using the software, maybe I should just stick with the gui stuff and wait
for someone to develop a pre-compiled version?
You could certainly do "./configure --without-geotiff" and continue
on. If you're not going to be using USGS geoTIFF DRG's or DOQQ's,
you won't need it anyway.
--
Curt, WE7U. <http://www.eskimo.com/~archer>
APRS: Where it's at! <http://www.xastir.org>
Lotto: A tax on people who are bad at math. - unknown
Windows: Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me: I picked the coordinate system!"
Tom Russo
2010-09-20 20:14:29 UTC
Permalink
Post by Curt, WE7U
Post by T Wegner
3) ./configure --prefix=/usr/local
checking for TIFFOpen in -ltiff... no
configure: error: You will need to substantially rewrite libxtiff to
build libgeotiff without libtiff
You need to install tiff library and tiff headers (devel package).
It's looking to compile a test program against libtiff and not
finding the TIFFOpen function.
I don't know how you find the right packages for a Mac.
Tom is attempting to install libgeotiff from source, so the recommendation
to install packages is off the mark.

The libgeotiff install process installs both the libraries and header files.

The issue is that configure is probably not looking in /usr/local/ for anything
unless you've told it to.

Please try this configure line:

./configure --prefix=/usr/local/ CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"

On linux systems packages are installed into /usr instead of /usr/local, so
this is usually not necessary unless you've got hand-installed code.

There are some conditions that can force these CPP and LD flags to be
used without manually specifying them, but they're obviously not happening
in your case. Among those conditions are running with GDAL, whose "gdal-config"
program will usually force /usr/local into your flags variables when it's
run by configure. I think a few other "*-config" programs that Xastir's
configure script runs can do that, too, which is why those on Linux systems
rarely run into this.

As a BSD user, where all third-party packages are always installed into
/usr/local instead of polluting the base-system directories /usr/lib and
/usr/include, adding those CPPFLAGS and LDFLAGS is almost second nature
when running configure.

Give it a shot. I bet you'll find that it satisfies in your case, too.
--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 http://kevan.org/brain.cgi?DDTNM
"The truth will set you free, but first it will piss you off."
Tom Russo
2010-09-20 20:17:55 UTC
Permalink
Post by Tom Russo
Post by Curt, WE7U
Post by T Wegner
3) ./configure --prefix=/usr/local
checking for TIFFOpen in -ltiff... no
configure: error: You will need to substantially rewrite libxtiff to
build libgeotiff without libtiff
You need to install tiff library and tiff headers (devel package).
It's looking to compile a test program against libtiff and not
finding the TIFFOpen function.
I don't know how you find the right packages for a Mac.
Tom is attempting to install libgeotiff from source, so the recommendation
to install packages is off the mark.
Arrgh. And here I was thinking that the configure Tom was reporting was
Xastir's, not libgeotiff's. DUH.

Yes, you can't build libgeotiff if you don't have TIFF libraries installed
first. Install those, and be sure that the install includes headers as well
as libraries (i.e., if it were linux, you'd install -devel or -dev packages
as well as the library package. YMMV on Mac. On BSD, packages don't
separate out headers and libraries that way, you get 'em both in one
package).
--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 http://kevan.org/brain.cgi?DDTNM
"The truth will set you free, but first it will piss you off."
T Wegner
2010-09-21 00:57:01 UTC
Permalink
presuming i found a source for libtiff, and was advised to use the
following instructions for loading on to mac os x

tar xzf tiff-3.8.2.tar.gz
cd tiff-3.8.2
./configure
make
make install

do i want to make sure the files/program load/install in any one
particular place, or will this be done automatically?

Thank you

73
Tom W
On Mon, Sep 20, 2010 at 02:14:29PM -0600, we recorded a bogon-
On Mon, Sep 20, 2010 at 12:34:46PM -0700, we recorded a bogon-
Post by Curt, WE7U
Post by T Wegner
3) ./configure --prefix=/usr/local
checking for TIFFOpen in -ltiff... no
configure: error: You will need to substantially rewrite libxtiff to
build libgeotiff without libtiff
You need to install tiff library and tiff headers (devel package).
It's looking to compile a test program against libtiff and not
finding the TIFFOpen function.
I don't know how you find the right packages for a Mac.
Tom is attempting to install libgeotiff from source, so the
recommendation
to install packages is off the mark.
Arrgh. And here I was thinking that the configure Tom was reporting was
Xastir's, not libgeotiff's. DUH.
Yes, you can't build libgeotiff if you don't have TIFF libraries installed
first. Install those, and be sure that the install includes headers as well
as libraries (i.e., if it were linux, you'd install -devel or -dev packages
as well as the library package. YMMV on Mac. On BSD, packages don't
separate out headers and libraries that way, you get 'em both in one
package).
--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 http://kevan.org/brain.cgi?DDTNM
"The truth will set you free, but first it will piss you off."
_______________________________________________
Xastir mailing list
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
Tom Russo
2010-09-21 01:28:34 UTC
Permalink
Post by T Wegner
presuming i found a source for libtiff, and was advised to use the
following instructions for loading on to mac os x
Where are you getting your instructions? They seem to be fairly incomplete
and in at least some cases (where you were told to do manual copies and
ranlibs of libshp) they're not quite normal. And it seems you're being told
to install just about every single package from sources without using any
package management (fink, macports, or whatever). These do not seem to be
the best set of instructions to follow for a low-maintenance first-time install
onto a Mac. The Xastir wiki has multiple sets of instructions for installing
onto Macs, and none suggest doing full, manual source installs of all these
packages.

But in general, the default behavior of "configure" is to install things
in /usr/local (that is, it is redundant to specify "--prefix=/usr/local").
So doing configure/make/make install on libtiff is a normal approach to
installing it from source. But it's strange to need to do all those steps
on a Mac, unless you're avoiding MacPorts and Fink for some particular
reason. And there's a recent binary version available that would probably
suit you better unless you really want to learn exactly what all these
steps are for.
--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 http://kevan.org/brain.cgi?DDTNM
"The truth will set you free, but first it will piss you off."
Jeremy McDermond
2010-09-21 01:42:44 UTC
Permalink
Post by Tom Russo
Post by T Wegner
presuming i found a source for libtiff, and was advised to use the
following instructions for loading on to mac os x
Where are you getting your instructions? They seem to be fairly incomplete
and in at least some cases (where you were told to do manual copies and
ranlibs of libshp) they're not quite normal. And it seems you're being told
to install just about every single package from sources without using any
package management (fink, macports, or whatever). These do not seem to be
the best set of instructions to follow for a low-maintenance first-time install
onto a Mac. The Xastir wiki has multiple sets of instructions for installing
onto Macs, and none suggest doing full, manual source installs of all these
packages.
I would certainly recommend using MacPorts or Fink to get all of this stuff installed. The only trick with that is going to be pointing Xastir to look in the right place for all of that stuff with LDFLAGS/CFLAGS/CPPFLAGS, etc.
Post by Tom Russo
But in general, the default behavior of "configure" is to install things
in /usr/local (that is, it is redundant to specify "--prefix=/usr/local").
So doing configure/make/make install on libtiff is a normal approach to
installing it from source. But it's strange to need to do all those steps
on a Mac, unless you're avoiding MacPorts and Fink for some particular
reason. And there's a recent binary version available that would probably
suit you better unless you really want to learn exactly what all these
steps are for.
I think his problem with my binary version is that it's for Intel only. I believe I saw earlier in the thread that he's on PPC.
Post by Tom Russo
--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 http://kevan.org/brain.cgi?DDTNM
"The truth will set you free, but first it will piss you off."
--
Jeremy McDermond (NH6Z)
Xenotropic Systems
***@xenotropic.com
T Wegner
2010-09-21 05:09:30 UTC
Permalink
Post by Tom Russo
Where are you getting your instructions?
Well, it's a long story, but I started here:

http://www.xastir.org/wiki/Installation_Notes#Mac_OSX

looked into the VMWare option, decided against since it was a limited
time deal, and didn't want to be locked out down the road - had no
idea how long it might take me to get things going.

so next went here:

http://www.xastir.org/wiki/HowTo:Mac_OSX

but when I saw this:

"Some people have reported problems with Fink. I haven't encountered
any yet so I still use it. Fink is a package manager that will keep
you from having to build all the Xastir dependencies from source.

I also continue to use fink. I have had problems with FinkCommander
(the GUI interface for Fink) but the core utilities continue to work
fine. Dick."

I thought, 1) if people are having trouble with it, I want to avoid
it, as I have no command line experience, and 2) as in the above
example and others, it was unclear to me exactly who was saying what,
and to whom . . . at times it sounded as though the author and "Dick"
were 2 different people, at other times, not.

continuing down the list, I went here:

http://www.xastir.org/wiki/Macports

which directed me to here:

http://n1ofz.connares.org/software/Xastir

which gives me a "network problem" message and no access

so I went here:

http://www.xastir.org/wiki/MacOSXpackage

which was another dead end

next here:

http://www.xastir.org/wiki/MacOSXsource

directing me to the same dead end

and then:

http://www.xastir.org/wiki/Notes:Mac_OSX

much of which I did not understand, and in the end, was once again
referenced to that same dead end.

SO . . .

I did a search for "Xastir" and "Mac" and landed here:

http://www.wx9grb.org/xastir/mac.htm

and I thought, Eureka! I'm familiar with the Packerland group (name
credibility via Skywarn), and they seem to have the information from
the site I was unable to access above in all those dead end instances,
and reading through it, it seemed oriented toward operators such as
myself, with little command line experience, and quite doable.

Following the sites instructions, I installed what I could using
MacPorts. The instructions noted that shapelib and geotiff can not be
installed with MacPorts, and provided the instructions I've been
posting in my "problem threads". This is where I've run into the
troubles.

I did a search for libtiff and mac this evening, came up with a source
(for a different program, but like this one, need to install it first
- called it a "dependency"), and the instructions in the last post. I
did that, watched as the screen scrolled by with lots of alpha-
numerics, saw a number of "no" conditions and it ended with some
warning/errors. When I tried to continue with the geotiff configure
and make, I ended up with the same "configure: error: You will need to
substantially rewrite libxtiff to build libgeotiff without libtiff"
message. I moved the libtiff library out of the tiff-3.9.4 folder and
into the libgeotiff folder thinking it did not know the where the
libtiff library was, that did nothing, and I stopped.

I believe I have hit a brick wall in this direction. Would like the
ability to use USGS geoTIFF's but unless someone can point me in a
direction to solve the libtiff conundrum, I guess I could live without
it, or wait until someone develops something to make this work
seamlessly.

Re: other discussion about intel mac, it will be some time before I
can afford a new macbook, and even then, I wouldn't dream of taking it
into the field - only older computers for that for me.

Thanks for listening, the help you've given thus far, and any advice
you may provide yet.

73
Tom
Post by Tom Russo
On Mon, Sep 20, 2010 at 07:57:01PM -0500, we recorded a bogon-
Post by T Wegner
presuming i found a source for libtiff, and was advised to use the
following instructions for loading on to mac os x
Where are you getting your instructions? They seem to be fairly incomplete
and in at least some cases (where you were told to do manual copies and
ranlibs of libshp) they're not quite normal. And it seems you're being told
to install just about every single package from sources without using any
package management (fink, macports, or whatever). These do not seem to be
the best set of instructions to follow for a low-maintenance first-
time install
onto a Mac. The Xastir wiki has multiple sets of instructions for installing
onto Macs, and none suggest doing full, manual source installs of all these
packages.
But in general, the default behavior of "configure" is to install things
in /usr/local (that is, it is redundant to specify "--prefix=/usr/
local").
So doing configure/make/make install on libtiff is a normal approach to
installing it from source. But it's strange to need to do all those steps
on a Mac, unless you're avoiding MacPorts and Fink for some particular
reason. And there's a recent binary version available that would probably
suit you better unless you really want to learn exactly what all these
steps are for.
--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 http://kevan.org/brain.cgi?DDTNM
"The truth will set you free, but first it will piss you off."
Jeremy McDermond
2010-09-21 05:59:26 UTC
Permalink
I think what Tom is trying to convey is that you've chosen a hard row to hoe for yourself. Compiling and installing things by hand on the command line can be problematic for even people familiar with the command line. I sometimes have to do a lot of research to figure out issues, and I've been doing the UNIX command line, and GNU autoconf based installations for nearly 20 years now.
I thought, 1) if people are having trouble with it, I want to avoid it, as I have no command line experience, and 2) as in the above example and others, it was unclear to me exactly who was saying what, and to whom . . . at times it sounded as though the author and "Dick" were 2 different people, at other times, not.
My understanding is that the information on Fink being problematic is mildly old. Either way, avoiding it because you have no command line experience and compiling by hand is much like saying that you've heard that people are having problems buying bolts from Home Depot, and because you have limited experience in machining bolts, you're going to machine your own. You're not avoiding the command line by going the direction you're headed, you're diving head first into it.
I did a search for libtiff and mac this evening, came up with a source (for a different program, but like this one, need to install it first - called it a "dependency"), and the instructions in the last post. I did that, watched as the screen scrolled by with lots of alpha-numerics, saw a number of "no" conditions and it ended with some warning/errors. When I tried to continue with the geotiff configure and make, I ended up with the same "configure: error: You will need to substantially rewrite libxtiff to build libgeotiff without libtiff" message. I moved the libtiff library out of the tiff-3.9.4 folder and into the libgeotiff folder thinking it did not know the where the libtiff library was, that did nothing, and I stopped.
To compile things for my binary distribution, I have the following packages downloaded as prerequisites on MacOS X 10.5:

curl-7.19.6
db-4.8.24
gdal-1.6.1
lesstif-0.95.2
libgeotiff-1.2.5
pcre-8.00
proj-4.5.0b4
shapelib-1.2.10
tiff-3.8.2
ImageMagick-6.5.4-5

And of course, the CVS version of Xastir checked out with fresh sources. I use the following configure lines with the packages:

curl-7.19.6:
./configure
db-4.8.24:
../dist/configure
gdal-1.6.1:
./configure
lesstif-0.95.2:
./configure
libgeotiff-1.2.5:
./configure --with-ld-shared="gcc -dynamiclib -all_load --install_name /usr/local/lib/"
pcre-8.0.0:
./configure
proj-4.5.0b4:
./configure
shapelib-1.2.10:
DOES NOT USE GNU AUTCONF.
tiff-3.8.2:
./configure
ImageMagick-6.5.4-5:
./configure --without-modules --disable-installed --enable-embeddable

I use a configure line for Xastir something like:
./configure --without-ax25 --without-festival --without-gpsman --with-bdb-libdir =/usr/local/BerkeleyDB.4.8/lib --with-bdb-incdir=/usr/local/BerkeleyDB.4.8/include

If you have problems finding these files, I made them available for download at:

http://www.nh6z.net/xastir-distfiles/

Note that the list is not in any particular order. You may need to compile one thing before another, I'd have to dig out my notes to find out which ones are that way. As you've already discovered, libtiff needs to be installed before libgeotiff.
Re: other discussion about intel mac, it will be some time before I can afford a new macbook, and even then, I wouldn't dream of taking it into the field - only older computers for that for me.
I guess I'm rich. My 2.33GHz Core 2 Duo MacBook Pro is nearly falling apart after five years of use in college and law school. I'm getting ready to get rid of my last PPC box.

I'm the guy who packaged up the binary distribution for Intel Macs. I can probably provide some commentary for you, but I'm fairly busy until the DCC is over with in Vancouver next weekend. I've had conferences to go to most of this month, so it's been keeping me behind on my e-mail.
73
Tom
--
Jeremy McDermond (NH6Z)
Xenotropic Systems
***@xenotropic.com
Carl Makin
2010-09-21 10:33:38 UTC
Permalink
Hi Tom,
Post by T Wegner
Following the sites instructions, I installed what I could using
MacPorts. The instructions noted that shapelib and geotiff can not
be installed with MacPorts, and provided the instructions I've been
posting in my "problem threads". This is where I've run into the
troubles.
Shapelib and libgeotiff are both in the Macports repository. They are
listed as having no maintainer, but they do install and work for me.

http://www.macports.org/ports.php?by=library&substr=libgeotiff
http://www.macports.org/ports.php?by=library&substr=shapelib

and the repository also contains Xastir 1.9.8

http://www.macports.org/ports.php?by=name&substr=xastir


To get Xastir 1.9.8 should just require;

sudo port install xastir

with a reasonably recent Macports update which should install all the
dependancies.

You can then disable 1.9.8 using;

sudo port disable xastir

and then follow the cvs instructions to install 1.9.9.

You might need to specify the db include and lib directories;

sh bootstrap.sh
./configure --with-bdb-incdir=/opt/local/include/db46/ --with-bdb-
libdir=/opt/local/lib/db46/
make
sudo make install

NOTE: This will put Xastir into /usr/local/[bin|share]/ and not into /
opt as MacPorts uses.

This is all working on my dual 2.7Ghz G5 PowerMac running Leopard. I
haven't tried them on an intel mac in a while, but they were working 6
months ago.


Carl,
(vk1kcm)
T Wegner
2010-09-21 17:06:18 UTC
Permalink
another day, a new hope, an eternal idiot . . . take your pick.

Thanks again to all for trying to help me, I'm a bit taken aback,
after having dealt with a quite different level of support following
my last attempt at getting an APRS system running, but no sour grapes.

I did a download of tiff-3.8.2 from the NH6Z site
did the tar-xvzf tiff-3.8.2.tar.gz
then cd /tiff-3.8.2
then ./configure

that process ended thus:

libtool: link: creating iptcutil
Making all in mac-cw
make[2]: Nothing to be done for `all'.
Making all in mac-mpw
make[2]: Nothing to be done for `all'.
Making all in mfs
make[2]: Nothing to be done for `all'.
Making all in ojpeg
make[2]: Nothing to be done for `all'.
Making all in pds
make[2]: Nothing to be done for `all'.
Making all in ras
make[2]: Nothing to be done for `all'.
Making all in stream
make[2]: Nothing to be done for `all'.
Making all in tags
make[2]: Nothing to be done for `all'.
Making all in win_dib
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all-am'.
Making all in test
make[1]: Nothing to be done for `all'.
Making all in man
make[1]: Nothing to be done for `all'.
Making all in html
Making all in images
make[2]: Nothing to be done for `all'.
Making all in man
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all-am'.
make[1]: Nothing to be done for `all-am'.
bash-3.2$

should I next run the:

make
sudo make install

commands, or is this unnecessary?

Also, i notice with some of these files, such as the shapelib,
geotiff, and tiff, that I am able to unzip them via "regular
means" (in the gui interface). Is there any reason why I should do it
via the tar-xvzf in x11?

73
Tom W
Post by Carl Makin
Hi Tom,
Post by T Wegner
Following the sites instructions, I installed what I could using
MacPorts. The instructions noted that shapelib and geotiff can not
be installed with MacPorts, and provided the instructions I've been
posting in my "problem threads". This is where I've run into the
troubles.
Shapelib and libgeotiff are both in the Macports repository. They
are listed as having no maintainer, but they do install and work for
me.
http://www.macports.org/ports.php?by=library&substr=libgeotiff
http://www.macports.org/ports.php?by=library&substr=shapelib
and the repository also contains Xastir 1.9.8
http://www.macports.org/ports.php?by=name&substr=xastir
To get Xastir 1.9.8 should just require;
sudo port install xastir
with a reasonably recent Macports update which should install all
the dependancies.
You can then disable 1.9.8 using;
sudo port disable xastir
and then follow the cvs instructions to install 1.9.9.
You might need to specify the db include and lib directories;
sh bootstrap.sh
./configure --with-bdb-incdir=/opt/local/include/db46/ --with-bdb-
libdir=/opt/local/lib/db46/
make
sudo make install
NOTE: This will put Xastir into /usr/local/[bin|share]/ and not
into /opt as MacPorts uses.
This is all working on my dual 2.7Ghz G5 PowerMac running Leopard.
I haven't tried them on an intel mac in a while, but they were
working 6 months ago.
Carl,
(vk1kcm)
_______________________________________________
Xastir mailing list
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
T Wegner
2010-09-21 18:29:51 UTC
Permalink
Thanks for trying to help, Carl.

I think my main problem here is an ID10T error, lol.
to make myself feel a smidge better, I think the 2nd problem is I have
been following outdated instructions.

Based on your information, could I have just done this:

sudo /opt/local/bin/port install libgeotiff shapelib

and that's it?

In that scenario, would I still need to do the separate libtiff
download and install, and do it before I downloaded the geotiff via
MacPorts, or is that included in the geotiff download package when
done via MacPorts?

73
Tom
Post by Carl Makin
Hi Tom,
Post by T Wegner
Following the sites instructions, I installed what I could using
MacPorts. The instructions noted that shapelib and geotiff can not
be installed with MacPorts, and provided the instructions I've been
posting in my "problem threads". This is where I've run into the
troubles.
Shapelib and libgeotiff are both in the Macports repository. They
are listed as having no maintainer, but they do install and work for
me.
http://www.macports.org/ports.php?by=library&substr=libgeotiff
http://www.macports.org/ports.php?by=library&substr=shapelib
and the repository also contains Xastir 1.9.8
http://www.macports.org/ports.php?by=name&substr=xastir
To get Xastir 1.9.8 should just require;
sudo port install xastir
with a reasonably recent Macports update which should install all
the dependancies.
You can then disable 1.9.8 using;
sudo port disable xastir
and then follow the cvs instructions to install 1.9.9.
You might need to specify the db include and lib directories;
sh bootstrap.sh
./configure --with-bdb-incdir=/opt/local/include/db46/ --with-bdb-
libdir=/opt/local/lib/db46/
make
sudo make install
NOTE: This will put Xastir into /usr/local/[bin|share]/ and not
into /opt as MacPorts uses.
This is all working on my dual 2.7Ghz G5 PowerMac running Leopard.
I haven't tried them on an intel mac in a while, but they were
working 6 months ago.
Carl,
(vk1kcm)
_______________________________________________
Xastir mailing list
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
T Wegner
2010-09-22 02:17:04 UTC
Permalink
Again, a big thank you to all who have been helping me, and for whom I
fear I am becoming a pain in the whatsis. My apologies if I have
offended or annoyed anyone, I certainly did not mean to.

So, Jason, Curt, Tom, Jeremy, and Carl, again, I appreciate your
willingness to help and not just giving up on me.

I successfully installed libtiff and libgeotiff and I am ready to move
on to the actual Xastir install.

I can follow Carl's instructions (quoted below), or go back to my
instructions from the wx9grb site, my preference, since I've been
following their format as best I can.
They are (please tell me if you see any problems) as follows:

1) Download Xastir from http://www.xastir.org and put it in your
home directory. You may want to keep the source directory after you
finish installing. It will make things easier if you want to update
Xastir later via CVS. Next, from a x11 terminal window type in the
following list of commands:
2) tar -xvzf xastir* (for example tar -xvzf xastir121-2003-Jul-02.tgz)
3) mv xastir* xastir
4) cd xastir
5) ./bootstrap.sh
6) ./configure
7) make
8) sudo make install-strip
6) ./configure --with-bdb-incdir=/opt/local/include/db42 --with-bdb-
libdir=/opt/local/lib/db42

That's it! You can now run Xastir from an X terminal window with:

/usr/local/bin/xastir

Or add it to the X11 Application menu. Do this by going to the
Applications pull down and select Customize. click the 'add item'
button. Double click the blank hi-lighted line under the name column.
Type in 'Xastir'. Next double click under the Command column and type
'/usr/local/bin/xastir'. Click the done button. Now you can launch
Xastir from the Applications menu.

-end of quoted instructions-
Post by Carl Makin
To get Xastir 1.9.8 should just require;
sudo port install xastir
with a reasonably recent Macports update which should install all
the dependancies.
You can then disable 1.9.8 using;
sudo port disable xastir
and then follow the cvs instructions to install 1.9.9.
You might need to specify the db include and lib directories;
sh bootstrap.sh
./configure --with-bdb-incdir=/opt/local/include/db46/ --with-bdb-
libdir=/opt/local/lib/db46/
make
sudo make install
NOTE: This will put Xastir into /usr/local/[bin|share]/ and not
into /opt as MacPorts uses.
This is all working on my dual 2.7Ghz G5 PowerMac running Leopard.
I haven't tried them on an intel mac in a while, but they were
working 6 months ago.
Carl,
(vk1kcm)
Curt, WE7U
2010-09-22 14:38:40 UTC
Permalink
Post by T Wegner
I can follow Carl's instructions (quoted below), or go back to my
instructions from the wx9grb site, my preference, since I've been following
their format as best I can.
1) Download Xastir from http://www.xastir.org and put it in your home
directory. You may want to keep the source directory after you finish
installing. It will make things easier if you want to update Xastir later via
2) tar -xvzf xastir* (for example tar -xvzf xastir121-2003-Jul-02.tgz)
3) mv xastir* xastir
4) cd xastir
5) ./bootstrap.sh
6) ./configure
7) make
8) sudo make install-strip
"tar" is one of those weird Linux/Unix commands that doesn't use
dashes for the options, so I believe it should be something like:

tar xvzf xastir121-2003-Jul-02.tgz

unless they've messed with "tar" on the Mac to require the dashes.

Here's how I would do it:

*) Download the latest devel snapshot (Sept 16th)

*) "tar xzvf xastir199-2010-Sep-16.tgz"

This will create a new directory called "xastir199" and
decompress the contents of the .tgz file into there.

*) "cd xastir199"

*) "./bootstrap.sh"

Make sure you don't get any errors at this stage. You may need
to install automake & autoconf before this command will succeed.

*) "./configure"

Check some of the Mac-specific instructions 'cuz you may want to
add some flags there to pick up some additional directories that
have libraries of interest. Like the configure line you quoted
below.

*) "make"

*) "sudo make install"

"make install-strip" is also ok, which removes debugging info
from the executable.
Post by T Wegner
6) ./configure --with-bdb-incdir=/opt/local/include/db42
--with-bdb-libdir=/opt/local/lib/db42
--
Curt, WE7U. <http://www.eskimo.com/~archer>
APRS: Where it's at! <http://www.xastir.org>
Lotto: A tax on people who are bad at math. - unknown
Windows: Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me: I picked the coordinate system!"
Tom Russo
2010-09-22 14:55:19 UTC
Permalink
Post by Curt, WE7U
Post by T Wegner
2) tar -xvzf xastir* (for example tar -xvzf xastir121-2003-Jul-02.tgz)
"tar" is one of those weird Linux/Unix commands that doesn't use
tar xvzf xastir121-2003-Jul-02.tgz
unless they've messed with "tar" on the Mac to require the dashes.
Tar doesn't *require* dashes, but gnu tar (and bsd tar and perhaps others)
accepts them. So "tar -xvf archive.tar" is the same as "tar xvf archive.tar"
and the same as "tar -x -v -f archive.tar". Been this way for a long time.
Of course, it was the other way (not even allowing them) for much longer.
--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 http://kevan.org/brain.cgi?DDTNM
"The truth will set you free, but first it will piss you off."
Carl Makin
2010-09-23 11:07:18 UTC
Permalink
Hi Tom,
No problems with the effort, we're happy to help.
Post by T Wegner
6) ./configure --with-bdb-incdir=/opt/local/include/db42 --with-
bdb-libdir=/opt/local/lib/db42
Post by Carl Makin
./configure --with-bdb-incdir=/opt/local/include/db46/ --with-bdb-
libdir=/opt/local/lib/db46/
Just make sure you point to the right db version. I quoted db46 as
that is what MacPorts will install if you install the Xastir from
ports however you need to see what version you have installed and use
that.


Carl.
(vk1kcm)
T Wegner
2011-01-05 05:47:24 UTC
Permalink
I was on here back in September with some questions regarding a
MacPorts install of Xastir onto my PPC G4 Powerbook running 10.5.8.

With your help I was able to figure most of the install out and
proceeded as far as the installation of geotiff (1.3.0). The next step
was to do a:

tar -xvzf xastir199-2010-Sep-16.tgz

Then I ran out of time and one thing led to another, etc.

I have some time again, and would really like to get this up and
running for the Spring Skywarn season here.

I have seen some e-mails come through about a new version of Xastir
(maybe 2.0?)

Can I resume by just downloading the latest version of Xastir, or do I
need to go back and update all the other files somehow? (such as
geotiff, shapelib, and the MacPorts suite).

Tnx

Tom
Curt, WE7U
2011-01-05 05:57:24 UTC
Permalink
I have seen some e-mails come through about a new version of Xastir (maybe
2.0?)
Can I resume by just downloading the latest version of Xastir,
Yes. Should be fine. 2.0.0 is the latest stable. 2.0.1 is what's in CVS (and is quite stable).

Did Jeremy do a binary package for OSX of the 2.0.0 version? Can't recall.
--
Curt, WE7U. <http://www.eskimo.com/~archer>
APRS: Where it's at! <http://www.xastir.org>
Lotto: A tax on people who are bad at math. - unknown
Windows: Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me: I picked the coordinate system!"
Jeremy McDermond
2011-01-05 06:13:14 UTC
Permalink
Post by Curt, WE7U
I have seen some e-mails come through about a new version of Xastir (maybe 2.0?)
Can I resume by just downloading the latest version of Xastir,
Yes. Should be fine. 2.0.0 is the latest stable. 2.0.1 is what's in CVS (and is quite stable).
Did Jeremy do a binary package for OSX of the 2.0.0 version? Can't recall.
Yes, but not for PPC Macs. Intel only. I'm in the process of getting rid of my last PPC Mac, and won't have a test platform.
Post by Curt, WE7U
--
Curt, WE7U. <http://www.eskimo.com/~archer>
--
Jeremy McDermond (NH6Z)
Xenotropic Systems
***@xenotropic.com
T Wegner
2011-01-06 02:11:33 UTC
Permalink
First, a big thank you to anyone who may be reading this who has been
in any way involved in developing this program and more specifically
in helping me personally to get it installed.

I especially appreciate the helpful attitude and tone which is so many
times lacking on sites where new users seek help from established
experts.


Second,

For you Mac users out there, is there a way I can invoke the "right-
click mouse" function? In other programs I use either command click or
control click, and neither seems to be working in this case. As I am
using a powerbook, there is only the one button (below the trackpad).

Thanks

Tom
Jason Godfrey
2011-01-06 02:17:12 UTC
Permalink
If you open "Preferences" under the X11 menu there is an option "Emulate 3
Button Mouse". Make sure that is checked, then command click should be right
click.

- Jason
First, a big thank you to anyone who may be reading this who has been in
any way involved in developing this program and more specifically in helping
me personally to get it installed.
I especially appreciate the helpful attitude and tone which is so many
times lacking on sites where new users seek help from established experts.
Second,
For you Mac users out there, is there a way I can invoke the "right-click
mouse" function? In other programs I use either command click or control
click, and neither seems to be working in this case. As I am using a
powerbook, there is only the one button (below the trackpad).
Thanks
Tom
_______________________________________________
Xastir mailing list
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
--
I have learned to use the word 'impossible' with the greatest caution. --
Wernher von Braun
T Wegner
2011-01-06 16:45:19 UTC
Permalink
Not having a lot of luck here, probably because I don't' understand Unix

I would like to download some maps

an example is

wisconsin.osm.bz2

found here

http://downloads.cloudmade.com/north_america/united_states/wisconsin#downloads_breadcrumbs

i used my regular gui to download it to my home directory

then used x11 to move it to the /usr/local/share/xastir/maps directory

tried to unzip it, but got an error message, which i guess makes sense
as it's not a .zip file


1) am i even remotely close to doing this correctly?

2) this seemed like the map i would most likely want - does anyone
have any idea if it would be a good map to use for navigating around
wisconsin or would the wisconsinshapefiels.zip be a better choice. I
will be perusing the site to try and find info about the different
maps. there is quite a difference in file size.

tnx
73
tom
Peter Gamache
2011-01-06 16:52:03 UTC
Permalink
You need bunzip2, as .bz2 is a different compression scheme. According to a
quick google search ("bunzip2 macos x"), it seems like it may be included in
the standard installation of MacOS. At a terminal window, you'll have to
decompress the archive with "bunzip2 wisconsin.osm.bz2", which will strip
the .bz2 extension and leave you a larger (and perhaps useful) file.

FMI:
http://developer.apple.com/library/mac/#DOCUMENTATION/Darwin/Reference/ManPages/man1/bunzip2.1.html

Regards,
-PG
Post by T Wegner
Not having a lot of luck here, probably because I don't' understand Unix
I would like to download some maps
an example is
wisconsin.osm.bz2
found here
http://downloads.cloudmade.com/north_america/united_states/wisconsin#downloads_breadcrumbs
i used my regular gui to download it to my home directory
then used x11 to move it to the /usr/local/share/xastir/maps directory
tried to unzip it, but got an error message, which i guess makes sense
as it's not a .zip file
1) am i even remotely close to doing this correctly?
2) this seemed like the map i would most likely want - does anyone have
any idea if it would be a good map to use for navigating around
wisconsin or would the wisconsinshapefiels.zip be a better choice. I
will be perusing the site to try and find info about the different maps.
there is quite a difference in file size.
tnx
73
tom
_______________________________________________
Xastir mailing list
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
T Wegner
2011-01-06 17:28:15 UTC
Permalink
Thanks . . . I've read so many FAQ's, Help files, and README's in the
last 3 days, 90% of which are over my head, it's . . . well . . . .

1) Do you (others welcome too) have any insight as to what the main
difference (from an end user standpoint) would be between the osm and
shapefile map offerings.

on the site is found this:

OSM XML files are the native format used by the OpenStreetMap API and
also by many OpenStreetMap applications. Use OSM XML if you want to
load the files into an application like JOSM, or if you want to
convert to other formats using a library such as osm-lib. In addition
to full osm extracts there are partial feature extracts which contain
administrative boundaries, coastlines or highways only.

Shapefiles are a data exchange format created by ESRI which are one of
the most widely used geodata formats. When we talk about a “shapefile”
we are usually talking about four different files
– .shp, .shx, .dbf, .prj. First three files must all be present in
order to use the data. Each shapefile can hold only one geometry type.
The projection information contained in the .prj file is critical in
order to understand the data contained in the .shp file correctly. Our
files are split into several categories – highway, which contains
features like roads and footpaths, natural, which contains area
features like parks and forests, poi (point of interest), which
contains point features like amenities and tourist attractions,
administrative boundaries and finally coastlines and water bodies.
Because shapefiles are widely used they can be combined with other
geodata and used inside GIS (Geographic Information Systems), such as
the open source QGIS application.


2) There are other types as well but from what I've read I believe
maybe the Shapefiles version is the way to go. Why such a large
difference in file size?

note - my sole previous experience with APRS maps were the Tiger maps
I downloaded for MacAPRS. They were detailed but rather awkward in
appearance. POI's interest me not at all to the extent they contain
motels, hotels, gas stations, restaurants, etc.

3) would i be correct in presuming that once i download to my home
directory, the procedure would be:

mv *.zip /usr/local/share/xastir/maps
unzip *.zip

where * is the specific file name

4) there is mention of 4 different files for each shapefile map, do
you think it wise for me to make a subdirectory for, say, "wisconsin"
so the map directory does not get all cluttered up? Do all 4 of these
files show up in the "map chooser" menu?

5) Is there any way to preview maps . . . I'm overwhelmed at the
offerings available and don't know where to begin.

6) what's the recommendation on the number of different questions a
person should ask in a single e-mail?

tnx
tom
Post by Peter Gamache
You need bunzip2, as .bz2 is a different compression scheme.
According to a
quick google search ("bunzip2 macos x"), it seems like it may be included in
the standard installation of MacOS. At a terminal window, you'll have to
decompress the archive with "bunzip2 wisconsin.osm.bz2", which will strip
the .bz2 extension and leave you a larger (and perhaps useful) file.
http://developer.apple.com/library/mac/#DOCUMENTATION/Darwin/
Reference/ManPages/man1/bunzip2.1.html
Regards,
-PG
Post by T Wegner
Not having a lot of luck here, probably because I don't' understand Unix
I would like to download some maps
an example is
wisconsin.osm.bz2
found here
http://downloads.cloudmade.com/north_america/united_states/wisconsin#downloads_breadcrumbs
i used my regular gui to download it to my home directory
then used x11 to move it to the /usr/local/share/xastir/maps
directory
tried to unzip it, but got an error message, which i guess makes sense
as it's not a .zip file
1) am i even remotely close to doing this correctly?
2) this seemed like the map i would most likely want - does anyone have
any idea if it would be a good map to use for navigating around
wisconsin or would the wisconsinshapefiels.zip be a better choice. I
will be perusing the site to try and find info about the different maps.
there is quite a difference in file size.
tnx
73
tom
_______________________________________________
Xastir mailing list
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
_______________________________________________
Xastir mailing list
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
Curt, WE7U
2011-01-06 18:23:29 UTC
Permalink
Thanks . . . I've read so many FAQ's, Help files, and README's in the last 3
days, 90% of which are over my head, it's . . . well . . . .
1) Do you (others welcome too) have any insight as to what the main
difference (from an end user standpoint) would be between the osm and
shapefile map offerings.
OSM XML files are the native format used by the OpenStreetMap API and also by
many OpenStreetMap applications.
Shapefiles are a data exchange format created by ESRI which are one of the
most widely used geodata formats.
2) There are other types as well but from what I've read I believe maybe the
Shapefiles version is the way to go. Why such a large difference in file
size?
OSM XML files are in XML format, ever looked at XML files? They have a lot of pairs of tags in them, plus it appears the files they describe above are the complete database.

Xastir uses a much more compact format which is only some extracts from the main OSM database, but have just the vectors/points/labels that we need.

Then there's a third type of OSM maps: The online maps. In this case we download a complete raster image that we display in Xastir, or small raster tiles which we stitch together, depending on the Map Chooser selection. Tiles are better/faster 'cuz we cache them locally and if you move slightly you only have to grab a few more tiles to complete the picture.

Xastir is quite happy with Shapefiles and this is the format I'd recommend for offline use.
mv *.zip /usr/local/share/xastir/maps
Yes, as root usually, or use "sudo"
unzip *.zip
Yep.
4) there is mention of 4 different files for each shapefile map, do you think
it wise for me to make a subdirectory for, say, "wisconsin" so the map
directory does not get all cluttered up? Do all 4 of these files show up in
the "map chooser" menu?
Only one of them shows up in the Map Chooser for a shapefile set. Feel free to create subdirectories under the maps directory at will. That's how I organize my maps.
5) Is there any way to preview maps . . . I'm overwhelmed at the offerings
available and don't know where to begin.
Not in Xastir.
6) what's the recommendation on the number of different questions a person
should ask in a single e-mail?
One. hi hi

Shorter e-mails with just one or two questions seem to get read/answered by more people. Longer ones often get skipped because people aren't wanting to dedicate minutes of their life to reading/understanding them right at that time. Often responses get delayed because of that.
--
Curt, WE7U. <http://www.eskimo.com/~archer>
APRS: Where it's at! <http://www.xastir.org>
Lotto: A tax on people who are bad at math. - unknown
Windows: Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me: I picked the coordinate system!"
Curt, WE7U
2011-01-06 18:03:10 UTC
Permalink
2) this seemed like the map i would most likely want - does anyone have any
idea if it would be a good map to use for navigating around wisconsin or
would the wisconsinshapefiels.zip be a better choice.
The only ones I've used from that site are the ones that contain "shapefiles" in the name. They work in Xastir quite easily.
--
Curt, WE7U. <http://www.eskimo.com/~archer>
APRS: Where it's at! <http://www.xastir.org>
Lotto: A tax on people who are bad at math. - unknown
Windows: Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me: I picked the coordinate system!"
Loading...