[Xastir] OSX Build - long

John Ronan jpronans at gmail.com
Thu Dec 15 18:46:25 EST 2011


Ok,


On OSX 10.7.2 (LION) I had to do this first (I've had the development environments already installed so X11 was all in place)

edit /usr/X11/include/freetype2/freetype

and comment out the following lines

/* #ifndef FT_FREETYPE_H */
/* #error "`ft2build.h' hasn't been included yet!" */
/* #error "Please always use macros to include FreeType header files." */
/* #error "Example:" */
/* #error "  #include <ft2build.h>" */
/* #error "  #include FT_FREETYPE_H" */
/* #endif */

For 10.7.2 AND 10.6.8 I had to do added the following patch to openmotif 2.3.3 (ignore the version no below)

--- openmotif-2.3.2.org/clients/uil/UilDefI.h	2004-11-18 08:54:32.000000000 +0000
+++ openmotif-2.3.2/clients/uil/UilDefI.h	2009-11-08 13:24:29.000000000 +0000
@@ -283,7 +283,7 @@
 #include "UilIODef.h"
 #include "UilDiagDef.h"
 #include "UilSarDef.h"
-#if defined(linux)
+#if defined(linux) || defined(__APPLE__)
 #define YYSTYPE yystype
 #endif
 #include "UilLexPars.h"

For 10.7.2 I had to do 
./configure LDFLAGS=-L/usr/X11/lib LIBS=-lXft

For 10.6.8
./configure was ok

make 
make install

ImageMagick was fine
./configure
make
make install

I installed BerkeleyDB just now on 10.6.8

configured xastir with

../xastir/configure --without-ax25 --without-festival --without-gpsman --with-bdb-libdir=/usr/local/BerkeleyDB.5.2/lib --with-bdb-incdir=/usr/local/BerkeleyDB.5.2/include

For 10.7.2 I had to tell xastir where to find Magic-Config, but that's not really a big issue.. the openmotif issues above are more in-depth.

Thanks for the assistance, and hopefully this will save someone else time at some stage in the future.

Regards
John
EI7IG

On 15 Dec 2011, at 19:49, Jeremy McDermond wrote:

> On Dec 15, 2011, at 11:03 AM, Tom Russo wrote:
>> FWIW, on my systems, "ldd" on the libXm.so shared library reports that it 
>> depends on libXft, and the dynamic linker takes care of that.  I don't know
>> why the dylib you've build doesn't carry that same information, but you
>> can double check the dependencies with "/usr/bin/otool," so I read.  
> 
> otool -L is the rough equivalent of ldd on other systems.  Note that MacOS doesn't really look for shared libraries around the file system with the equivalent of /etc/ld.so.conf or LD_LIBRARY_PATH, rather having paths to the shared libraries contained within the binaries themselves.  You can change these paths with install_name_tool.
> 
> One also needs to be careful with fat binaries.  If the appropriate architecture isn't in the .dylib file linkages can easily fail.  The file command will show the different architectures continued within a shared library.
> 
> --
> Jeremy McDermond (NH6Z)
> Xenotropic Systems
> mcdermj at xenotropic.com
> 
> 
> _______________________________________________
> Xastir mailing list
> Xastir at lists.xastir.org
> http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir




More information about the Xastir mailing list