Kyng Chaos
“The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects.”
- the wisdom of Tarzan

Ming Build

version: 0.4.3
source: http://www.libming.org/

parallel: OK

Ming is a simple build, though it doesn't have explicit options to locate dependent libraries – everything (except FreeType) is assumed to be in the default link path, /usr/lib and /usr/local/lib.

Edit configure

One patch needed to do a universal build. Find the strings "-DSWF_LITTLE_ENDIAN" and "-DSWF_BIG_ENDIAN", and delete them.

Another patch to support libpng 1.4. Edit src/blocks/pngdbl.c, change the line:

if(!png_check_sig(header, 8))

to:

if(png_sig_cmp(header, 0, 8))

Snow Leopard

In the libming source:

export MACOSX_DEPLOYMENT_TARGET=10.6
./configure --disable-dependency-tracking \
CFLAGS="-Os -arch i386 -arch x86_64" \
LDFLAGS="-arch i386 -arch x86_64"
make
sudo make install

Leopard

In the libming source:

configure

export MACOSX_DEPLOYMENT_TARGET=10.5
./configure --disable-dependency-tracking \
CFLAGS="-Os -arch ppc -arch i386 -arch ppc64 -arch x86_64" \
LDFLAGS="-arch ppc -arch i386 -arch ppc64 -arch x86_64"

Edit src/ming_config.h

add at end:

#undef SWF_BIG_ENDIAN
#undef SWF_LITTLE_ENDIAN
#ifdef __BIG_ENDIAN__
  #define SWF_BIG_ENDIAN
#else
  #define SWF_LITTLE_ENDIAN
#endif

make & install

make
sudo make install

Tiger

In the libming source:

configure

export MACOSX_DEPLOYMENT_TARGET=10.4
./configure --disable-dependency-tracking \
CFLAGS="-Os -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" \
LDFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"

Edit src/ming_config.h

add at end:

#undef SWF_BIG_ENDIAN
#undef SWF_LITTLE_ENDIAN
#ifdef __BIG_ENDIAN__
  #define SWF_BIG_ENDIAN
#else
  #define SWF_LITTLE_ENDIAN
#endif

make & install

make
sudo make install

Panther

In the libming source:

./configure --disable-dependency-tracking \
CFLAGS="-Os"
make
sudo make install

With Frameworks

To build Ming using my UnixImageIO and FreeType frameworks, add the following to CFLAGS in the instructions above (make sure they are within the quotes):

CFLAGS="-I/Library/Frameworks/UnixImageIO.framework/Headers"

and insert these lines right after the ./configure line (before CFLAGS):

--with-freetype-config=/Library/Frameworks/FreeType.framework/Programs/freetype-config \
LDFLAGS=-L/Library/Frameworks/UnixImageIO.framework/unix/lib \
macosx/build/ming.txt · Last modified: 2010/07/27 15:53 by kyngchaos
Copyright © 2004-2010 William Kyngesburye Driven by DokuWiki Recent changes RSS feed