[AD] Apple dudes, help with OS X 10.6 |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Need some help getting the 4.4 branch building on OS X 10.6.
1. From a.cc posts I see we need to use the 10.5 SDK, which as far as I
can tell should be done in CMake by calling:
cmake -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.5.sdk ..
2. You need to set the environment variable MACOSX_DEPLOYMENT_TARGET
to the minimum version you want to run on:
export MACOSX_DEPLOYMENT_TARGET=10.5
make docs works but make alleg results in an error:
[ 0%] Building CXX object CMakeFiles/alleg-main.dir/src/macosx/main.m.o
In file included from /Users/wangp/4.4/src/macosx/main.m:21:
/Users/wangp/4.4/include/allegro/platform/aintosx.h:86: error: cannot find interface declaration for 'NSQuickDrawView', superclass of
'AllegroView'
/Users/wangp/4.4/src/macosx/main.m: In function '-[AllegroAppDelegate application:openFile:]':
/Users/wangp/4.4/src/macosx/main.m:59: warning: 'lossyCString' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:346)
make[3]: *** [CMakeFiles/alleg-main.dir/src/macosx/main.m.o] Error 1
make[2]: *** [CMakeFiles/alleg-main.dir/all] Error 2
make[1]: *** [CMakeFiles/alleg.dir/rule] Error 2
make: *** [alleg] Error 2
Peter