[hatari-devel] CMake build system
Thomas H.
th.huth at gmx.de
Sat Jan 23 13:19:17 CET 2010
> Datum: Sat, 23 Jan 2010 10:59:20 +0100
> Von: Christer Solskogen <christer.solskogen at gmail.com>
> On Sat, Jan 23, 2010 at 10:47 AM, Thomas Huth <huth at users.berlios.de>
> wrote:
> >
> > FYI: It's now possible to create a Xcode project with the CMake build
> > system, too :-) There are still some issues left (SDLMain.nib is not
> > loaded right when the user starts hatari.app), but they can certainly
> > be fixed.
> >
>
> I'm sorry but it looks even worse now:
>
> tenderheart:hatari solskogen$ ./configure
> -- The C compiler identification is GNU
> -- The CXX compiler identification is GNU
[...]
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /Users/solskogen/source/hatari
At least the configuration phase looks fine now ;-)
> [ 4%] Building CXX object src/gui-osx/CMakeFiles/GuiOsx.dir/SDLMain.m.o
> /Users/solskogen/source/hatari/src/gui-osx/SDLMain.m:
It's strange that CMake tries to use CXX (this means C++) here for compiling the Objective-C files. I've added a little hack to src/gui-osx/CMakeLists.txt to force the compiler to gcc instead... maybe that works better?
> /Users/solskogen/source/hatari/src/gui-osx/SDLMain.m: In function 'main':
> /Users/solskogen/source/hatari/src/gui-osx/SDLMain.m:446: warning:
> 'poseAsClass:' is deprecated (declared at
> /System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:127)
> /Users/solskogen/source/hatari/src/gui-osx/SDLMain.m:446: error:
> 'poseAsClass:' is unavailable (declared at
> /System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:127)
This seems to be an issue with the code that we've inherited from SDL... seems to be a problem in the current SDL code, too:
http://article.gmane.org/gmane.comp.lib.sdl/44284
Dunno how to fix that, especially since I still have an old version of Mac OS X where this still works fine... I'll leave that up to a Mac OS X guru for fixing.
> But I dont really care about hatari.app. I normally start hatari from CLI.
Ok, I've made the OS X bundling now optional. You can disable it by running cmake with the followin parameter: -DENABLE_OSX_BUNDLE:BOOL=0
Thomas
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
More information about the hatari-devel
mailing list