Preamble
With neoascetic's last daily macOS build in December 2020, there's been a hole in available macOS builds. Since my procurement of an M1 MacBook Air with above average specifications, and with how homebrew is actively hostile against any multi-arch setups like Big Sur universal binaries. I decided to uninstall homebrew for good, and manually compile every Minetest dependancy with CMake. It's doable, just an exercise in becoming one with the Gentoo.tl;dr Homebrew sucks and won't support the next generation of Apple hardware.
Pre-Built Binaries:
https://www.dropbox.com/sh/jt3el1tn6s1y ... NKQh5Csu-a
Ask me if you need a more recent build in thread or via Direct Message / Private Message.Note on Universal Binaries: these will only run on Big Sur Macs. They will not run on: Sierra, High Sierra, Mojave and Catalina. If you have a Mac that was made within the last 8-9 years (around 2013) it probably supports Big Sur.
Zipballs with Mavericks, and come with LuaJIT by default; can be run on Macs as old as 2007.
If you're struggling to find which is which, this button hides the full filenames.
If you can't install Big Sur because of an obsoleted Mac, no worries, I wrote a guide on doing such with Homebrew under an x64 or ARM64/M1 environment.
Building Minetest With Homebrew
Opening the Terminal:Press Command + Space then with Spotlight open, type Terminal, and press enter. It should launch a terminal window.
Installing Homebrew and Xcode-Tools:
Otherwise, you're not compiling.
https://brew.sh
With brew and it's requirements satisfied, we move onto the installing of dependancies.
Code: Select all
brew install cmake freetype gettext jpeg libogg libvorbis
Code: Select all
brew install luajit
Code: Select all
brew install lua@5.1
Code: Select all
mkdir Development
cd Development
Code: Select all
git clone https://github.com/minetest/irrlicht.git
cd irrlicht
cmake . -DBUILD_SHARED_LIBS=FALSE
make -j$(nproc)
cd ..
Code: Select all
git clone https://github.com/minetest/minetest.git
cd minetest
cmake . -DRUN_IN_PLACE=FALSE -DIRRLICHT_INCLUDE_DIR="../irrlicht/include" -DIRRLICHT_LIBRARY="../irrlicht/lib/OSX/libIrrlichtMt.a"
make package -j$(nproc)
Known Issues:
Camera spins around super fast in game; since Mojave, apps now have to request permission to be able to grab the mouse properly. To fix this, click the Security and Privacy under System Preferences.Once you've navigated to Security and Privacy, you'll want to click the header named Privacy.
Before you can grant Minetest permissions, you will want to click the lock to make changes, which on Big Sur (and earlier where supported); will ask for TouchID or your Apple Watch for confirmation; otherwise macOS will ask for your user password to make changes.
Here's what the window will look like:
Of all the options given to you, click on Accessibility and Input Monitoring. There should be a little button with a +. Click that and navigate to where the Minetest.app resides. Once added you will have to add a second check box to the left of it to fully grant permission. With both of these steps completed it should work fine.
If this step is a bit confusing, pause this video frequently or play it at 0.25x rate.
https://www.youtube.com/watch?v=QkfGxl-yrzc