Can't compile on macOS

1 reply [Last post]
macabeus
User offline. Last seen 6 days 1 hour ago. Offline
Joined: 2015-11-15
Posts: 1

I'm trying to compile this game on macOS.

I already trying installing SDL2 using Homebrew or downloading from official site and put the framework on /Library/Frameworks directory, but in both case I receive the same error message:

Quote:
➜ hedgewars-src-0.9.23 make
[ 14%] Built target lua
[ 14%] Built target physfs
[ 14%] Building C object misc/libphyslayer/CMakeFiles/physlayer.dir/physfsrwops.c.o
In file included from /Users/macabeus/Desktop/hedgewars-src-0.9.23/misc/libphyslayer/physfsrwops.c:25:
/Users/macabeus/Desktop/hedgewars-src-0.9.23/misc/libphyslayer/physfsrwops.h:28:10: fatal error: 'SDL.h' file not found
#include "SDL.h"
^~~~~~~
1 error generated.
make[2]: *** [misc/libphyslayer/CMakeFiles/physlayer.dir/physfsrwops.c.o] Error 1
make[1]: *** [misc/libphyslayer/CMakeFiles/physlayer.dir/all] Error 2
make: *** [all] Error 2

How to fix it?

nemo
nemo's picture
User offline. Last seen 41 min 3 sec ago. Offline
Joined: 2009-01-28
Posts: 1566

So, I'm not at all familiar w/ OSX (although that looks like a missing dependency to me).
But, I'd like to note a couple of things.
https://hg.hedgewars.org/hedgewars/shortlog/0.9.23 koda has 2 recent fixes on the 0.9.23 branch for build issues
https://hedgewars.org/download.html koda packaged OSX today - should have a torrent as well soon I hope

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Copyright © 2004-2017 Hedgewars Project. All rights reserved. [ contact ]