Re: [hatari-devel] Compiling with SDL2 without osx-bundle on OSX fails |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Christer,
That is because main() in main.c is renamed to SDL_main if it is an OS X binary. The current #if statement is assuming an OS X bundle. I would think an additional “and” to make sure we are compiling as a bundle would solve the problem. Unfortunately, simply adding “&& defined(__ENABLE_OSX_BUNDLE__)” to the #ifdef changing main to SDL_Main did not compile. Thomas did this to help us get the OS X binary working in SDL2. The bundle is working except for the fact that the New Floppy Window is appearing when you do something that changes the Hatari window (go to fullscreen mode, change monitor type, remove borders, etc.).
Bob C
On Sep 7, 2014, at 8:54 AM, Christer Solskogen <christer.solskogen@xxxxxxxxx> wrote:
> Linking C executable hatari
> Undefined symbols for architecture x86_64:
> "_main", referenced from:
> implicit entry/start for main executable
> (maybe you meant: _SDL_main)
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make[2]: *** [src/hatari] Error 1
> make[1]: *** [src/CMakeFiles/hatari.dir/all] Error 2
> make: *** [all] Error 2
>
> If I don't supply --disable-osx-bundle it compiles (or links, which
> really is the problem)
>
>