Can't compile on macOS

7 replies [Last post]
macabeus
User offline. Last seen 6 years 4 weeks ago. Offline
Joined: 2015-11-15
Posts: 2

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 24 weeks 3 days ago. Offline
Joined: 2009-01-28
Posts: 1861

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

Hoot
User offline. Last seen 4 years 49 weeks ago. Offline
Joined: 2013-12-14
Posts: 51

If anyone has a compile that is not dependent on OS X 10.12, that would be fantastic. I am running 10.11 but am not intending to upgrade to Apple's Sierra "We are all iPhones, upgrade every 6 month please" stuff anytime soon – contrary to what that company seems to assume about it's today's customers, there are actually people who are not part of the Smartphone Victim Cloud-Click-Colour-Addicted Masses and actually use OS X for work (and Hedgewars).

If I find the time to compile it myself then I would post a link, of course. Though that might also take some time ...

Lyberta
Lyberta's picture
User offline. Last seen 4 years 16 weeks ago. Offline
Joined: 2016-09-10
Posts: 177

But you are still a victim of Apple Wink Smiley

macabeus
User offline. Last seen 6 years 4 weeks ago. Offline
Joined: 2015-11-15
Posts: 2

Someone added a OSX version in Download page. Nice! Thank you! =]

When I was trying to compile in my mac, I wrote some annotations. Maybe is good added it in wiki page:

brew install fpc

xcode-select --install
install xcode from the app store

brew install sdl2
brew install sdl2_image
brew install sdl2_net
brew install sdl2_ttf
brew install sdl2_mixer

brew install cartr/qt4/qt
brew install qt@4

cmake . -DCMAKE_BUILD_TYPE=Release -DNOSERVER=1 -DNOVIDEOREC=1 -DNOAUTOUPDATE=1
make
make install

The option NOAUTOUPDATE is useful to simplify, and the wiki page doesn't say this command.

Hoot
User offline. Last seen 4 years 49 weeks ago. Offline
Joined: 2013-12-14
Posts: 51

Lyberta allegedly wrote:
But you are still a victim of Apple ;)

Disputable that this would be a bad thing up to 10.11 (it works extremely fine in a productive environment still, even on 2012 Mac Pros), yet with 10.12 it would feel like joining the brainless iPhone victim masses ... indeed.
I mean, I could fetch an axe every time Win10 comes brawling in with their oh-so-important, ooops we just have installed some random software update, sorry your settings are all reset mate, not our working time, get lost ...

Lyberta
Lyberta's picture
User offline. Last seen 4 years 16 weeks ago. Offline
Joined: 2016-09-10
Posts: 177

Hoot allegedly wrote:
I mean, I could fetch an axe every time Win10 comes brawling in with their oh-so-important, ooops we just have installed some random software update, sorry your settings are all reset mate, not our working time, get lost ...

Windows 7 was the last acceptable MS OS and I migrated to GNU/Linux before they ruined Windows 7 with telemetry.

Hoot
User offline. Last seen 4 years 49 weeks ago. Offline
Joined: 2013-12-14
Posts: 51

macabeus, any idea whether the compile would also work for 10.11? I guess it should?

User login

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