Page 1 of 1

CMake issues building for OS X

PostPosted: Thu Mar 23, 2017 05:57
by saldavonschwartz
If this is not the right section to post about this, please feel free to move it to where it belongs; I'm new to the forums.

So, I'm trying to compile Minetest in OS X (10.12), but it seems the cmake files were done under the assumption that OS X being a Unix system, needs X11. So I cannot generate the Xcode project because cmake can't find X11.
Perhaps the APPLE variable in the cmake files is not being set? No idea, I have just cursory experience with cmake.

The worst part is that about 3 weeks ago I was able to generate the Xcode project and compile just fine. I remember it had something to do with a cmake file missing something, which I might have found in an OGRE cmake file. But unfortunately I can't remember what I did back then!

Does anyone have any tips on how to get it working?

In case you are wondering, I need the source, since I need to modify the code (otherwise I would download a binary).

Thanks!

Re: CMake issues building for OS X

PostPosted: Fri Mar 24, 2017 15:19
by sfan5
You can just comment out the checks that don't apply to OS X in CMakeLists.txt, then see whats broken from there.