ZziplibBuildOSXUniversal
Dependencies - Mac OS X - Instructions on how to cross build libzzip.a
Welcome to the new Ogre Wiki!
If you haven't done so already, be sure to visit the Wiki Portal to read about how the wiki works. Especially the Ogre Wiki Overview page.
If you haven't done so already, be sure to visit the Wiki Portal to read about how the wiki works. Especially the Ogre Wiki Overview page.
This build script should be placed in the root zziplib source folder and run. Once done, the results are in universal_obj and universal_debug_obj.
It assumes that you're running on an i386 Mac; if you're on PPC then you'll need to alter the host and target options to cross-compile appropriately.
#!/bin/sh # Assumes that you're building on i386 # Instructions on how to cross build libzzip.a mkdir ppc_obj i386_obj universal_obj mkdir ppc_debug_obj i386_debug_obj universal_debug_obj # Build release version of the libraries. pushd ppc_obj ../configure CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc" LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc" --host i386 --target ppc make popd pushd i386_obj ../configure CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386" LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386" make popd pushd universal_obj lipo ../ppc_obj/zzip/.libs/libzzip.a ../i386_obj/zzip/.libs/libzzip.a -create -output libzzip.a popd # Build debug versions of the libraries. pushd ppc_debug_obj ../configure CFLAGS="-g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -g" LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc" --host i386 --target ppc make popd pushd i386_debug_obj ../configure CFLAGS="-g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -g" LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386" make popd pushd universal_debug_obj lipo ../ppc_debug_obj/zzip/.libs/libzzip.a ../i386_debug_obj/zzip/.libs/libzzip.a -create -output libzzip.a popd
Contributors to this page: jacmoe
and
OgreWikiBot
.
Page last modified on Monday 04 of January, 2010 17:18:07 GMT by jacmoe
.
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.
Sidebar
Search box
Online users
68
online users

