Closed dsouth closed 7 years ago
Can't reproduce your problem ☹️ what is the value of SDL2_INCLUDE_DIRS in your cmake? It should be /Library/Frameworks/SDL2.framework/Headers
Probably something I did on my end. Apparently had a few libraries 'lying about' on my system that made the build process unhappy. I've cleaned them up and the build is a bit happier now. SDL2_INCLUDE_DIRS
now points to /Library/Frameworks/SDL2.framework/Headers
. However I now get a new build failure:
...
Scanning dependencies of target minkowski_hex_test
[ 82%] Building C object src/tests/CMakeFiles/minkowski_hex_test.dir/minkowski_hex_test.c.o
[ 83%] Building C object src/tests/CMakeFiles/minkowski_hex_test.dir/__/cdogs/collision/minkowski_hex.c.o
[ 83%] Building C object src/tests/CMakeFiles/minkowski_hex_test.dir/__/cdogs/utils.c.o
In file included from /Users/dsouth/development/code/games/cdogs-sdl/src/cdogs/utils.c:60:
In file included from /Users/dsouth/development/code/games/cdogs-sdl/src/cdogs/events.h:34:
In file included from /Users/dsouth/development/code/games/cdogs-sdl/src/cdogs/player.h:30:
In file included from /Users/dsouth/development/code/games/cdogs-sdl/src/cdogs/character.h:33:
In file included from /Users/dsouth/development/code/games/cdogs-sdl/src/cdogs/weapon.h:51:
In file included from /Users/dsouth/development/code/games/cdogs-sdl/src/cdogs/bullet_class.h:56:
In file included from /Users/dsouth/development/code/games/cdogs-sdl/src/cdogs/sounds.h:53:
/Library/Frameworks/SDL2_mixer.framework/Headers/SDL_mixer.h:27:10: fatal error: 'SDL2/SDL_stdinc.h' file not found
#include <SDL2/SDL_stdinc.h>
^
1 error generated.
make[2]: *** [src/tests/CMakeFiles/minkowski_hex_test.dir/__/cdogs/utils.c.o] Error 1
make[1]: *** [src/tests/CMakeFiles/minkowski_hex_test.dir/all] Error 2
make: *** [all] Error 2
SDL_stdin.h
is in /Library/Frameworks/SDL2.framework/Headers
so I'm a bit confused about that one...
Confirmed this fixes the new build failure. Thanks!
On my Mac (OSX 10.10.5) I've used the
build/macosx/install-sdl2.sh
script to install the SDL frameworks and then run cmake:and then make, but make fails:
The frameworks have been installed in
/Library/Frameworks
and the header file it can find is in the framework.