-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Mac OS build instructions #536
Comments
Thanks. I don't use Homebrew on my M2 mini so a PR here would be great. |
Related but taking another path, the CMakeLists.txt are woefully outdated. I have been able to modernize the CMakeLists and build tilemaker with CMake on my mac. I will try to make a PR for that. The trouble for addressing @cmahnke's problem is that I do a lot of development and thus some packages are already installed on my machine and may be different from his. Having someone try my approach on their machine and helping make sure we write complete correct instructions would be helpful. @cmahnke, would you be willing to help? |
This worked for me on osx Ventura Start by installing homebrew https://brew.sh/ After homebrew is installed. Install the necessary dependencies. Note that an older version of protobuf is required Clone Tilemaker Checkout tag v2.4.0 (this is the version I've verified these instructions against) Update the Makefile (in the tilemaker directory) to include the specific path to protobuf Second, look for this line Third, look for this line Build Tilemaker using the Makefile |
I think this should work: https://github.com/systemed/tilemaker/tree/mac_build It updates the instructions to use cmake and Lua 5.3. The fixes from #555 are now in trunk (slightly adjusted). I don't use Homebrew (too many bad experiences with it breaking everything) so would be interested to hear from anyone who tries it. |
@systemed I've got the new M3 on order and will try your mac_build branch with a clean install when it arrives. |
Thank you! |
|
Oh, that's interesting. It should only be looking for LuaJIT if it couldn't find plain vanilla Lua previously. Had |
The default version of lua is 5.4.6. If we explicitly install 5.3 (which I did), then we also have to explicitly add it to our path.
|
Right, got it. Thank you. I wonder if (for Mac + homebrew) it might be easiest if we just recommend |
I have a brand new Mac M3 and tried the instructions on it with cmake. Here are my observations:
|
v3 now builds and installs fine on an ARM Mac. I need to put my M2 through a deep cleanse after temporarily installing Homebrew to test :| The manpages don't install because of SIP, but that's not really important because |
The current instructions to build
tilemaker
are outdated:Compiling from source has known issues:
Since those are related, fixing this would close multiple issues, please give it a higher priority.
The text was updated successfully, but these errors were encountered: