Re: [hatari-devel] Build errors on Mac

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


Hi Nicolas,

Right you are :) Interesting cause, took me a while to figure out since Gui-Sdl builds just fine.. It seems another utils.h is picked up during compilation of utils.c instead - renaming the one in src/includes and changing the corresponding include in utils.c works fine - it's what then includes SDL_types.h -> SDL_stdinc.h.

Unfortunately I've then spent hours trying to understand why CMake find_package, or find_library for that matter, has no problem detecting my SDL install yet ld refuses to link it - complaining the framework cannot be found. Any resident Mac compiler feel free to chime in - I believe last time I compiled Hatari it was without SDL support although I'm not sure. I've tried forcing directories to no avail.

/Troed



On Wed, Jan 29, 2014 at 8:50 PM, Nicolas Pomarède <npomarede@xxxxxxxxxxxx> wrote:
Le 29/01/2014 20:34, Troed Sångberg a écrit :

Hi all,

Just tried updating to the latest Hatari from Mercurial - and ran into
the following:

1 (minor): Even after cmake (or configure) I had to manually add
-I/opt/local/include to CFLAGS for it to find png.h

2 (major): If my memory serves me right (some of) these are
Microsoft-specific types:


Hi

maybe these types (Uint32, Uint16, ...) exist under Windows, but in our case they come from SDL, so they should workd under mac too.

See /usr/include/SDL/SDL_stdinc.h for example

Nicolas






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