Personal tools
The Open Lighting Project has moved!

We've launched our new site at www.openlighting.org. This wiki will remain and be updated with more technical information.

Build OLA Mac Packages

From wiki.openlighting.org

Revision as of 13:24, 10 January 2010 by Nomis52 (talk | contribs) (Created page with 'These are my notes on building universal binary packages for mac. ==Directory setup== <pre> # extracted tarballs ~/mac-packaging/build/libartnet-1.1.0 ~/mac-packaging/build/lib…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

These are my notes on building universal binary packages for mac.

Directory setup

# extracted tarballs
~/mac-packaging/build/libartnet-1.1.0
~/mac-packaging/build/libmicrohttpd-0.4.2
~/mac-packaging/build/protobuf-2.2.0
~/mac-packaging/build/ctemplate-
# install desintations
~/mac-packaging/non-flat-packages/libartnet
~/mac-packaging/non-flat-packages/libmicrohttpd
~/mac-packaging/non-flat-packages/protobuf
~/mac-packaging/non-flat-packages/ctemplate

Building OLA Dependancies

libartnet

In ~/mac-packaging/build/libartnet-1.1.0:


libmicrohttpd

./configure prefix=~/mac-packaging/non-flat-packages/microhttpd/ --disable-dependency-tracking --with-libgcrypt-prefix=/tmp/foo
make CFLAGS="-arch ppc -arch i386" CPPFLAGS="-arch ppc -arch i386"  LDFLAGS=" -arch ppc -arch i386"
make install

protobuf

./configure prefix=~/lighting/mac-packaging/non-flat-packages/protobuf/ --disable-dependency-tracking
make CFLAGS="-arch ppc -arch i386" CPPFLAGS="-arch ppc -arch i386"  LDFLAGS=" -arch ppc -arch i386"
make install


ctemplate



Cleanup

In ~/lighting/mac-packaging/non-flat-packages, run

find ./ -name ".DS_Store" -exec rm {} \;

Creating Dependancies Packages

Using PackageMaker, create a distribution package for each of the dependancies. Remember to fix the permissions and set Package Location to 'Same Level'. Build the package and save it in ~/lighting/mac-packaging/non-flat-packages