Page 1 of 2
Mac Build?

Posted:
Tue Dec 04, 2012 22:18
by AlPhA_DuDe
Hi guys, been playing minetest for a while now. My computer broke, so I got a Mac. Used to have windows. Was wondering if anyone had a Mac build for 0.4.4. Anyone?

Posted:
Wed Dec 05, 2012 00:00
by OmniStudent

Posted:
Wed Dec 05, 2012 00:01
by dannydark
There are a few people who have managed to get Minetest compile on Mac, currently there is no official build for Macs but these links will still hopefully be useful:
http://minetest.net/forum/viewtopic.php?id=3627http://minetest.net/forum/viewtopic.php?id=2803https://github.com/toabi/minetest-mac < Old but just might be useful
EDIT: Oh nice work OmniStudent, posted just a few seconds before me ^_^

Posted:
Wed Dec 05, 2012 03:00
by AlPhA_DuDe
Thanks guys. How do I install mods?

Posted:
Wed Dec 05, 2012 05:33
by jpeng
~/Library/Application Support/minetest
I'm doing some testing with minetest on my mac
http://www.mediafire.com/?8q46n3l2w7a7pgiCurrently you have to open up the minetest executable in the MacOS folder inside the package

Posted:
Wed Dec 05, 2012 21:29
by IrishHillbilly007
hey guys i tried downloading the mac build but it wont open... help?

Posted:
Wed Dec 05, 2012 22:05
by IrishHillbilly007
turns out the link is broken.... any help?

Posted:
Thu Dec 06, 2012 02:26
by tux_peng
My current test build, randomly fails to start-- is
http://www.mediafire.com/?z1t5vtv65pv52ovMy building process

Posted:
Fri Dec 07, 2012 20:20
by tux_peng
4 people downloaded my build, I would like to know if it has worked

Posted:
Sun Dec 09, 2012 14:03
by IrishHillbilly007
tux_peng wrote:4 people downloaded my build, I would like to know if it has worked
No it didnt for me... i click on the app and it doesnt start... do you know why this might be?

Posted:
Tue Dec 11, 2012 23:13
by tux_peng
No, could you try to open the minetest executable in the MacOS directory; it was compiled on 10.8
Port is not high on my priority, I play on Linux. I provided my xcodeproj file for anyone to work on

Posted:
Wed Dec 12, 2012 11:45
by OmniStudent
What do you need IrishHillbilly?
It is the osx 0.4.4 version youre after, right?

Posted:
Thu Dec 13, 2012 18:24
by IrishHillbilly007
OmniStudent -
Yes it is.

Posted:
Thu Dec 13, 2012 19:27
by OmniStudent

Posted:
Sat Dec 15, 2012 15:31
by IrishHillbilly007
Thanks Omni

Posted:
Sat Dec 15, 2012 15:36
by IrishHillbilly007
OmniStudent-
It stil does the same thing, when i click on the app it doesnt open on the dock at all... do you know why it could be doing this? Is it something with my Computer?

Posted:
Sat Dec 15, 2012 15:38
by centaury
Hey there,
same here - when I try to run that build from the last link I get the following in my console:
15.12.12 16:29:35 com.apple.launchd.peruser.501[217] ([0x0-0x119119].celeron55.minetest[1905]) posix_spawn("/Applications/Games/minetest.app/Contents/MacOS/minetest", ...): Permission denied
and
15.12.12 16:29:35 com.apple.launchd.peruser.501[217] ([0x0-0x119119].celeron55.minetest[1905]) Exited with exit code: 1
No program window whatsover.
What permission is needed? What am I doing wrong?
Help is greatly appreciated! :-)

Posted:
Sat Dec 15, 2012 18:19
by OmniStudent
Sorry I don't know how to fix this. Are you all running 10.8 or some other version?
The solution may be doing an install on your own computer. For this you need xcode and macports, to start with.

Posted:
Sat Dec 15, 2012 19:08
by tux_peng
You need to use dylibbunddler for your build to be distributable. You can fix the permission errors with
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
chmod +x /Applications/minetest.app/Contents/MacOS/minetest
chmod +x /Applications/minetest.app/Contents/Resources/bin/minetest
chmod +x /Applications/minetest.app/Contents/Resources/bin/minetestserver

Posted:
Sat Dec 15, 2012 20:19
by centaury
@tux_peng:
Thx, that let me start minetest.
(Note for other noobs: you might have to change the path accordingly and the command(s) won't give any confirmation back ;-) )
Now I ran into another error (I copied a part from the message):
Dyld Error Message:
Library not loaded: /opt/local/lib/libjpeg.8.dylib
Referenced from: ///Applications/Games/minetest.app/Contents/MacOS/../Resources/bin/minetest
Reason: image not found
Binary Images:
0x8fe00000 - 0x8fe4163b dyld 132.1 (???) <4CDE4F04-0DD6-224E-ACE5-3C06E169A801> /usr/lib/dyld

Posted:
Sat Dec 15, 2012 21:24
by Centaury
My last post might have come out wrong:
Of course it DIDN'T start, but the "no permission"-error didn't come up again, so it's different issue.
And I might add that the command(s) work and do change the permission even though they don't give a confirmation about that.

Posted:
Sat Dec 15, 2012 21:52
by centaury
On another note:
how do you install the STK framework?
In their zip-files there are only folder structures with files in them (which actually IS the framework, I assume?). Where do I need to put these?

Posted:
Sat Dec 15, 2012 23:46
by tux_peng
@centaury
Yes you can do noting about the dependencies, tthe packager needs to use dylibbundler to fix those issues
For my build method- just copy the frameworks to /Library/Frameworks, and then copy them to /Applications/minetest.app/Contents/Frameworks when you are ready to distribute

Posted:
Sun Dec 16, 2012 04:50
by IrishHillbilly007
i just gave up and downloaded wine, a software that can run windows programs

Posted:
Sun Dec 16, 2012 05:44
by OmniStudent
tux_peng wrote:You need to use dylibbunddler for your build to be distributable. You can fix the permission errors with
Oh, I did not know this. Then my builds are unusable :(

Posted:
Sun Dec 16, 2012 19:35
by tux_peng
OmniStudent wrote:tux_peng wrote:You need to use dylibbunddler for your build to be distributable. You can fix the permission errors with
Oh, I did not know this. Then my builds are unusable :(
It took me a while to learn that. I have worked on porting lincity-ng, pingus, defenguin, supertuxkart & other games in the past. I was lost until someone named Auria (currently one of the leaders of supertuxkart) helped me out.
What version of osx are you running?
You might want to check out my xcodeproj, I think I have it pretty close to compiling with frameworks only

Posted:
Mon Dec 17, 2012 06:29
by OmniStudent
Thanks for the tip, this would have taken me ages to figure out on my own. I have looked at dylibbbundler and will probably use it in this week.
I'm running 10.6 and won't change until my uber-mac-savvy bro tells me to.
Link to your xcode project please?

Posted:
Mon Dec 17, 2012 21:53
by tux_peng
It will need some adjusting, and I do not know if it will open for you; I'll help out if I can
http://minetest.net/forum/viewtopic.php?pid=55239#p55239Tell me if anything needs reuploading

Posted:
Tue Dec 18, 2012 08:00
by OmniStudent
Oh, it was that one you published here :)

Posted:
Wed Mar 06, 2013 00:05
by ch98
Is it possible to make one for mac 10.4 ppc?