Building on Mac OS X

From Gnash Project Wiki

Jump to: navigation, search

Note: This process has not been fully tested, it may not even work!

Before we can choose the easy way by installing all needed packages using fink we have to prepare some things which aren't available under fink:

$ sudo port install gtkglext1

Possibly you have to install a bunch of dependend packages (gtk2) first. Install them in the same manner

$ sudo port install [package-name] 

Since fink provides such a nice way to install things on Mac OS X, I will assume that you have it and that you are going to be installing as many packages as possible with it. Using fink, the procedure to get the appropriate libraries required by gnash is as follows:

$ fink install sdl
$ fink install sdl-image
$ fink install sdl-mixer

Next, you need to build boost, ffmpeg, and optionally ming manually.

Now for the actual build. First thing to do, is if you have obtained the gnash sources manually, then you need to generate the usual files with:

$ mv ltmain.sh.darwin ltmain.sh
$ NO_LIBTOOLIZE=1 ./autogen.sh

The reason this is nessessary is because Mac OS X does include libtoolize, but because Apple libtool conflicts with GNU libtool, Apple has remaned all utilities beginning with libtool to glibtool.

Having the usual autoconf/automake files generated, then you can run configure with the appropriate options, which may include some of the following:

$ ./configure \
 --disable-nls \
 --disable-klash \
 --with-sdl-incl=/sw/include \
 --with-sdl-lib=/sw/lib \
 --with-boost-incl=/usr/local/include \
 --with-boost-lib=/usr/local/lib \
 --with-ffmpeg-incl=/usr/local/include \
 --with-ffmpeg-lib=/usr/local/lib \
 --with-libxml-incl=/usr/include \
 --with-libxml-lib=/usr/lib \
 --enable-renderer=ogl \
 --enable-gui=aqua

Then the usual build commands that follow:

$ make
$ sudo make install
Personal tools