[hatari-devel] CMake on MacOsX

Thomas Huth huth at users.berlios.de
Mon Mar 22 23:36:57 CET 2010


On Sun, 21 Mar 2010 17:17:13 +0100
Jerome Vernet <vernet.jerome at wanadoo.fr> wrote:

> Hi,
> 
> CMake doesn't work on my Mac. First, it produce au config.h file
> which lead to errors:
> #define HAVE_POSIX_MEMALIGN 1==>No mem_align unde MacOsX

Which Mac OS X version are you using? For Mac OS X 10.6.2, it seems to
be available:

http://developer.apple.com/mac/library/DOCUMENTATION/Darwin/Reference/ManPages/man3/posix_memalign.3.html

It was missing on older versions of OS X, though...

> #define HAVE_X11 1==>should be 0 as we do not build an X11 app, but a 
> cocoa SDL App.

You can safely ignore this, as long as it's not causing compilation
troubles. It's only used for embedding the Hatari window in a remote
GUI, a feature that is not used on Mac OS X.

> Then, make failed will building sdlmain.m, moslty, I guess, because
> bad compile options that I need to check.
> 
> /Users/jeromevernet/Documents/dev/Hatari-hgrc/hatari/src/gui-osx/SDLMain.m:451: 
> error: 'poseAsClass:' is unavailable (declared at 
> /System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:127)

This is a problem with the SDLMain code on 64-bit versions of latest
Mac OS X... try to Google for "poseAsClass" and "SDL" and you'll see
that this problem comes from the SDL. Seems like the poseAsClass
function has become obsolete on recent 64-bit versions of OS X.
Unfortunately I haven't seen a fix for this yet, so I don't know how to
avoid this problem.

By the way, could it be that you were compiling a 32-bit build  in the
past with the old project files, but now CMake generated a 64-bit build
for you? Or why did you not run into this poseAsClass problem earlier?

 Regards,
  Thomas



More information about the hatari-devel mailing list