CMake issues building for OS X

For people working on the C++ code.
saldavonschwartz
New member
 
Posts: 2
Joined: Thu Mar 23, 2017 05:49
GitHub: saldavonschwartz

CMake issues building for OS X

by saldavonschwartz » Thu Mar 23, 2017 05:57

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!
 

User avatar
sfan5
Moderator
 
Posts: 3712
Joined: Wed Aug 24, 2011 09:44
Location: Germany
GitHub: sfan5
IRC: sfan5

Re: CMake issues building for OS X

by sfan5 » Fri Mar 24, 2017 15:19

You can just comment out the checks that don't apply to OS X in CMakeLists.txt, then see whats broken from there.
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)
 


Return to Partly official engine development



Who is online

Users browsing this forum: No registered users and 3 guests