[Xastir] OSX Build - long

John Ronan jpronans at gmail.com
Fri Dec 16 17:28:25 EST 2011


On 15 Dec 2011, at 23:46, John Ronan wrote:

> 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 responses, and hopefully this will save someone else

save someone else some time.

(just now) on 10.7.2 I used the following to configure xastir
../xastir/configure --with-bdb-libdir=/usr/local/BerkeleyDB.5.2/lib/ --with-bdb-incdir=/usr/local/BerkeleyDB.5.2/include/ CPPFLAGS=-I/usr/local/include/ImageMagick

Regards
John
EI7IG (-2 ;) )


More information about the Xastir mailing list