Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Development (http://angband.oook.cz/forum/forumdisplay.php?f=10)
-   -   macOS compiling for dummies (http://angband.oook.cz/forum/showthread.php?t=10090)

davemcwish June 4, 2020 00:22

macOS compiling for dummies
 
Hi all,

Since 4.1.3 I've not been able to get the pre-puilt binares to run on Mojave or Catalina. 4.2.0 didn't load and 4.2.1 just generates the menu structure.

I had thought 'well how easy would it be to build my own?' given the command line tools are installed and I know my way around git (from my day job); no I've not a developer let alone one that knows anything about package building in C.

I got as far as trying to do the make, by following this, but it seems to be missing the osx specific makefile. If I leave out the suffix I get:-


Code:

$ make -f Makefile
Makefile:2: mk/buildsys.mk: No such file or directory
make: *** No rule to make target `mk/buildsys.mk'.  Stop.

looking into the UNIX build doesn't help either

Code:

sh ./autogen.sh
*info* running aclocal (-I m4)
./autogen.sh: line 38: aclocal: command not found
*error* aclocal failed. (exit code = 127)

I'm sure they'll be lots who know the obvious answer so could anyone help ?

Nick June 4, 2020 00:38

I think you've missed the
Code:

cd src
from those instructions. If you run
Code:

make -f Makefile.osx
from the src directory, you should end up with an Angband.app in your top level directory; if you run
Code:

make -f Makefile.osx dist
you should get a .dmg file like the ones that get distributed (I know this works, because I had to do it to build the .dmg for 4.2.1 because I messed up the autobuild...).

Let me know if you still have difficulties.

davemcwish June 4, 2020 21:56

Thanks. I was being a bit thick last night.


All times are GMT +1. The time now is 09:26.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.