[Xastir] Building on OS-X

2009-12-02 Thread John Ronan
Hi,

Since I updated to OS-X 10.6.2 I haven't had a working xastir installation.  I 
took a look at it at lunchtime today and got it 'mostly' done.

I've built almost completely from source apart from openmotif (I used the 
binary from http://www.xastir.org/wiki/index.php/HowTo:Mac_OSX) .

My configure line is
/configure  \\
--with-motif-includes=/usr/OpenMotif/include \\
--includedir=/usr/local/include/GraphicsMagick/ \\
--libdir=/usr/local/lib/GraphicsMagick-1.3.7/ \\
--with-bdb-incdir=/usr/local/BerkeleyDB.4.8/include \\
--with-bdp-libdir=/usr/local/BerkeleyDB.4.8/lib

It's finding the db header file but not the library files.

here is an extract from config.log
onfigure:17292: checking if db.h is exists and is usableconfigure:17317: gcc -c 
-g -O2 -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes -Wno-unused-parameter 
 -I/usr/OpenMotif/include -I$(top_srcdir)/src/shapelib -I/sw/include 
-I/opt/local/include -I/usr/local/include   -I/usr/OpenMotif/include 
-I/usr/local/include -I/usr/local/BerkeleyDB.4.8/include conftest.c 
5conftest.c:148: warning: function declaration isn't a 
prototypeconfigure:17323: $? = 0
configure:17328: result: yes
configure:17395: checking for a library containing db_create
configure:17421: gcc -o conftest -g -O2 -pipe -W -Wall -Wpointer-arith -Wstrict-
prototypes -Wno-unused-parameter  -I/usr/OpenMotif/include -I$(top_srcdir)/src/s
hapelib -I/sw/include -I/opt/local/include -I/usr/local/include   -I/usr/OpenMot
if/include -I/usr/local/include -I/usr/local/BerkeleyDB.4.8/include -L/usr/OpenM
otif/lib -L/sw/lib -L/opt/local/lib -L/usr/local/lib   -L/usr/X11/lib -L/usr/loc
al/lib -lgdal conftest.c -lXpm -lXt -lXp -lXext   -lSM -lICE -lX11  -lcurl -lpcr
e -lproj -ltiff -lgeotiff -lgdal -ldb-4.9 5
conftest.c:148: warning: function declaration isn't a prototype
ld: library not found for -ldb-4.9

I guess it's defaulting to db-4.9 as it's somehow not finding the 4.8 libraries 
which I've put into the ./configure above.

Can anyone see what I'm doing wrong here?

Note: I'm only adding map caching for completeness.  

Other than that it's working great :) oh and nice article in Linux Journal Kurt 
(and co-authors), well done.

de John
EI7IG



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


Re: [Xastir] Building on OS-X

2009-12-02 Thread Jeremy McDermond

On Dec 2, 2009, at 10:21 AM, John Ronan wrote:


--with-bdp-libdir=/usr/local/BerkeleyDB.4.8/lib

^

It's --with-bdb-libdir=

You have bdp

--
Jeremy McDermond (NH6Z)
Xenotropic Systems
mcde...@xenotropic.com



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


Re: [Xastir] Building on OS-X

2009-12-02 Thread John Ronan

On 2 Dec 2009, at 15:44, Jeremy McDermond wrote:

 On Dec 2, 2009, at 10:21 AM, John Ronan wrote:
 
 --with-bdp-libdir=/usr/local/BerkeleyDB.4.8/lib
^
 
 It's --with-bdb-libdir=
 
 You have bdp
indeed I do,
I guess I should clean my glasses.

Thanks
John



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


Re: [Xastir] Building on OS-X

2009-12-02 Thread Jeremy McDermond

On Dec 2, 2009, at 10:49 AM, John Ronan wrote:



On 2 Dec 2009, at 15:44, Jeremy McDermond wrote:


On Dec 2, 2009, at 10:21 AM, John Ronan wrote:


--with-bdp-libdir=/usr/local/BerkeleyDB.4.8/lib

  ^

It's --with-bdb-libdir=

You have bdp

indeed I do,
I guess I should clean my glasses.



Sometimes just having a second set of eyes helps.  You look at it too  
long and you miss things.




Thanks
John


--
Jeremy McDermond (NH6Z)
Xenotropic Systems
mcde...@xenotropic.com



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


Re: [Xastir] Map caching in OS X

2009-12-02 Thread John Ronan
If you don't need 4.7, why not remove them all and remove the discrepancy?

John

On 2 Dec 2009, at 17:04, Bob Nielsen wrote:

 
 On Dec 1, 2009, at 8:46 PM, Jeremy McDermond wrote:
 
 On Dec 1, 2009, at 9:33 PM, Bob Nielsen wrote:
 
 I have Berkely DB 4.7 and 4.8 installed but configure doesn't recognize 
 them and as a result, caching is not enabled.  Is there any trick to this 
 with OS X?
 
 I had to point configure specifically at the directories with flags:
 
 --with-bdb-libdir=/usr/local/BerkeleyDB.4.8/lib
 --with-bdb-incdir=/usr/local/BerkeleyDB.4.8/include
 
 You might try:
 
 --with-bdb-libdir=/sw/lib
 --with-bdb-incdir=/sw/include
 
 or something similar.
 
 Thanks, I ended up using --with-bdb-libdir=/sw/lib and 
 --with-bdb-incdir=/sw/include/db4 and that worked, as far as the configure 
 step.  However, it looks like I have a version discrepancy to work on:
 
 * WARNING *
 Berkeley DB header files/shared library file do NOT match!
 Disabling use of the map cache.
 Header file: Berkeley DB 4.7.25: (May 15, 2008)
 Library file: Berkeley DB 4.8.24: (August 14, 2009)
 * WARNING *
 
 This is probably an issue with fink.
 
 73, Bob N7XY
 
 
 ___
 Xastir mailing list
 Xastir@lists.xastir.org
 http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

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


Re: [Xastir] Map caching in OS X

2009-12-02 Thread Jeremy McDermond

On Dec 2, 2009, at 12:12 PM, John Ronan wrote:

If you don't need 4.7, why not remove them all and remove the  
discrepancy?


I'm not a big Fink user, but I recall that it has dev packages and  
normal packages.  The include files only install with the dev  
package, so there's a possibility that you only have 4.7.25-dev  
installed and not 4.8.24-dev.  You may only be able to have one of the  
dev packages installed because it may stomp on the include files.   
Again, I don't know for sure because I don't use Fink, I compile stuff  
from scratch generally.




John

On 2 Dec 2009, at 17:04, Bob Nielsen wrote:



On Dec 1, 2009, at 8:46 PM, Jeremy McDermond wrote:


On Dec 1, 2009, at 9:33 PM, Bob Nielsen wrote:

I have Berkely DB 4.7 and 4.8 installed but configure doesn't  
recognize them and as a result, caching is not enabled.  Is there  
any trick to this with OS X?


I had to point configure specifically at the directories with  
flags:


--with-bdb-libdir=/usr/local/BerkeleyDB.4.8/lib
--with-bdb-incdir=/usr/local/BerkeleyDB.4.8/include

You might try:

--with-bdb-libdir=/sw/lib
--with-bdb-incdir=/sw/include

or something similar.


Thanks, I ended up using --with-bdb-libdir=/sw/lib and --with-bdb- 
incdir=/sw/include/db4 and that worked, as far as the configure  
step.  However, it looks like I have a version discrepancy to work  
on:


* WARNING *
Berkeley DB header files/shared library file do NOT match!
Disabling use of the map cache.
Header file: Berkeley DB 4.7.25: (May 15, 2008)
Library file: Berkeley DB 4.8.24: (August 14, 2009)
* WARNING *

This is probably an issue with fink.

73, Bob N7XY


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


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



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


Re: [Xastir] Map caching in OS X

2009-12-02 Thread Bob Nielsen
I did, but needed to add some additional 4.8 stuff (which is building  
now).


Bob

On Dec 2, 2009, at 9:12 AM, John Ronan wrote:

If you don't need 4.7, why not remove them all and remove the  
discrepancy?


John

On 2 Dec 2009, at 17:04, Bob Nielsen wrote:



On Dec 1, 2009, at 8:46 PM, Jeremy McDermond wrote:


On Dec 1, 2009, at 9:33 PM, Bob Nielsen wrote:

I have Berkely DB 4.7 and 4.8 installed but configure doesn't  
recognize them and as a result, caching is not enabled.  Is  
there any trick to this with OS X?


I had to point configure specifically at the directories with  
flags:


--with-bdb-libdir=/usr/local/BerkeleyDB.4.8/lib
--with-bdb-incdir=/usr/local/BerkeleyDB.4.8/include

You might try:

--with-bdb-libdir=/sw/lib
--with-bdb-incdir=/sw/include

or something similar.


Thanks, I ended up using --with-bdb-libdir=/sw/lib and --with-bdb- 
incdir=/sw/include/db4 and that worked, as far as the configure  
step.  However, it looks like I have a version discrepancy to work  
on:


* WARNING *
Berkeley DB header files/shared library file do NOT match!
Disabling use of the map cache.
Header file: Berkeley DB 4.7.25: (May 15, 2008)
Library file: Berkeley DB 4.8.24: (August 14, 2009)
* WARNING *

This is probably an issue with fink.

73, Bob N7XY


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


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


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