Re: [hatari-devel] SDL2 support (OS X)

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Are you using a SDL binary with both 32 and 64 bit slices?

// Fredrik Olsson

3 aug 2014 kl. 19:54 skrev Bob Carpenter <hatari@xxxxxxxxxx>:

In my attempts to get the OS X bundle to compile, I am stuck by one last error (unless more errors appear after I solve this error):

Undefined symbols for architecture x86_64:
  "_SDL_main", referenced from:
      -[HatariAppDelegate applicationDidFinishLaunching:] in SDLMain.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am not sure why it does not see SDL_main. I know I have seen error before when I attempted to compile Hatari without an OS X application bundle. Right now, I have either changed SDL constants to their new name or commented out the logic in the full screen function (class?) and replaced it with the full screen call. That is all I have had to change to get this far.

If anyone has any suggestions on how to fix this, I would be very grateful. So far, my changes are simply to see if I can get the SDL2 version to compile and work as well as the non-OSX version. If I actually get it running, then the code would need to be put into the proper .h file with #if statements to only make the changes if SDL2 is selected.


Bob C




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/