Minetest 0.4.9 on Mac!

raffahacks
Member
 
Posts: 12
Joined: Sat Apr 26, 2014 18:18
GitHub: raffahacks
IRC: raffahacks
In-game: raffahacks

Minetest 0.4.9 on Mac!

by raffahacks » Sat Apr 26, 2014 19:01

Hello,
today I ran a working release of Minetest on my Mac!
I've just used Wine to run the .exe
If you want I can publish a standalone Mac binary

Here's a screenshot:
Image

Bye!
 

Morn76
Member
 
Posts: 640
Joined: Sun Feb 16, 2014 19:45
GitHub: mdoege

Re: Minetest 0.4.9 on Mac!

by Morn76 » Sat Apr 26, 2014 19:32

We already have a working Mac binary (without the need for Wine) at https://github.com/mdoege/minetest/releases
 

Morn76
Member
 
Posts: 640
Joined: Sun Feb 16, 2014 19:45
GitHub: mdoege

Re: Minetest 0.4.9 on Mac!

by Morn76 » Sat Apr 26, 2014 21:02

Raffahacks, it would be useful if you could do a rough frame rate comparison between the Wine MT version and the native build. Because the native build has debug mode turned on and I worry a bit about the performance hit this causes. So I'd like to get confirmation it's at least faster than the Wine version.
 

raffahacks
Member
 
Posts: 12
Joined: Sat Apr 26, 2014 18:18
GitHub: raffahacks
IRC: raffahacks
In-game: raffahacks

Re: Minetest 0.4.9 on Mac!

by raffahacks » Sun Apr 27, 2014 13:30

Remember I am using a 2009 Mac, if you want to compare you have to try on your Mac.
 

Morn76
Member
 
Posts: 640
Joined: Sun Feb 16, 2014 19:45
GitHub: mdoege

Re: Minetest 0.4.9 on Mac!

by Morn76 » Sun Apr 27, 2014 13:56

Well you could download my MT OS X binary to your 2009 Mac and see if it runs faster or slower than the Wine solution. Press F5 to see the developer bar with frame rate (FPS).

Of course if your Mac isn't running Mavericks that might not work.
 

raffahacks
Member
 
Posts: 12
Joined: Sat Apr 26, 2014 18:18
GitHub: raffahacks
IRC: raffahacks
In-game: raffahacks

Re: Minetest 0.4.9 on Mac!

by raffahacks » Mon Apr 28, 2014 12:53

My Wine version runs @ 35-37 fps

I am running Mavericks, but it crashes after showing a blank window while opening :(

This is the piece you may need of the crash report:

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libluajit-5.1.2.dylib 0x00000001055336ea luaL_newstate + 778
1 minetest 0x0000000104a4cab9 ScriptApiBase::ScriptApiBase() + 41
2 minetest 0x0000000104a7aad5 MainMenuScripting::MainMenuScripting(GUIEngine*) + 37
3 minetest 0x000000010499f5da GUIEngine::GUIEngine(irr::IrrlichtDevice*, irr::gui::IGUIElement*, IMenuManager*, irr::scene::ISceneManager*, MainMenuData*, bool&) + 922
4 minetest 0x00000001049e98f2 main + 32034
5 libdyld.dylib 0x00007fff8f2785fd start + 1

Thread 1:
0 libsystem_kernel.dylib 0x00007fff94804e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8da85f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8da88fb9 start_wqthread + 13

Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff94805662 kevent64 + 10
1 libdispatch.dylib 0x00007fff8ef7143d _dispatch_mgr_invoke + 239
2 libdispatch.dylib 0x00007fff8ef71152 _dispatch_mgr_thread + 52

Thread 3:
0 libsystem_kernel.dylib 0x00007fff94804e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8da85f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8da88fb9 start_wqthread + 13

Thread 4:
0 libsystem_kernel.dylib 0x00007fff94804e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8da85f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8da88fb9 start_wqthread + 13

Thread 5:

Thread 6:: com.apple.audio.IOThread.client
0 libsystem_kernel.dylib 0x00007fff94800a1a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff947ffd18 mach_msg + 64
2 com.apple.audio.CoreAudio 0x00007fff95dace02 HALC_IOContext_Start + 116
3 com.apple.audio.CoreAudio 0x00007fff95dabd99 HALC_ProxyIOContext::IOWorkLoop() + 289
4 com.apple.audio.CoreAudio 0x00007fff95dabbcd HALC_ProxyIOContext::IOThreadEntry(void*) + 97
5 com.apple.audio.CoreAudio 0x00007fff95daba8d HALB_IOThread::Entry(void*) + 75
6 libsystem_pthread.dylib 0x00007fff8da84899 _pthread_body + 138
7 libsystem_pthread.dylib 0x00007fff8da8472a _pthread_start + 137
8 libsystem_pthread.dylib 0x00007fff8da88fc9 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00000001055913b0 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000009ef9401
rdi: 0x0000000009ef8f68 rsi: 0x0000000009ef9208 rbp: 0x0000000105591458 rsp: 0x00007fff5b3296e0
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x00007fff96d4e083 r11: 0x00007fff90ce08fe
r12: 0x0000000000000010 r13: 0x00007f814b4a23f0 r14: 0x0000000009ef8010 r15: 0x0000000009ef8378
rip: 0x00000001055336ea rfl: 0x0000000000010246 cr2: 0x0000000009ef97e0

Logical CPU: 1
Error Code: 0x00000000
Trap Number: 6

 

Morn76
Member
 
Posts: 640
Joined: Sun Feb 16, 2014 19:45
GitHub: mdoege

Re: Minetest 0.4.9 on Mac!

by Morn76 » Mon Apr 28, 2014 13:17

Did you get today's updated version with the "2" at the end (minetest-osx-bin-20140425.3a6d6e4-redis2.zip) ?

Because "-redis.zip" was missing a library.
 

raffahacks
Member
 
Posts: 12
Joined: Sat Apr 26, 2014 18:18
GitHub: raffahacks
IRC: raffahacks
In-game: raffahacks

Re: Minetest 0.4.9 on Mac!

by raffahacks » Mon Apr 28, 2014 13:28

Yes, it's minetest-osx-bin-20140425.3a6d6e4-redis2.zip
 

Morn76
Member
 
Posts: 640
Joined: Sun Feb 16, 2014 19:45
GitHub: mdoege

Re: Minetest 0.4.9 on Mac!

by Morn76 » Mon Apr 28, 2014 13:48

Stack Overflow says about EXC_BAD_INSTRUCTION ( http://stackoverflow.com/questions/1073 ... ubcode-0x0 ) :

This kind of crash will happen when you are running a (vector)extension which is not supported on your CPU.


So apparently because you have a 2009 Mac, it will not work because the CPU is too old for the binary.

Then maybe you should post instructions for how to use Minetest with Wine or even a Minetest/Wine binary. I could link to that from my Mac build thread, so everyone with slightly older Apple machines would be covered too.
 

raffahacks
Member
 
Posts: 12
Joined: Sat Apr 26, 2014 18:18
GitHub: raffahacks
IRC: raffahacks
In-game: raffahacks

Re: Minetest 0.4.9 on Mac!

by raffahacks » Mon Apr 28, 2014 14:58

Can you give me the source, so I can try to compile it? Thanks
 

Morn76
Member
 
Posts: 640
Joined: Sun Feb 16, 2014 19:45
GitHub: mdoege

Re: Minetest 0.4.9 on Mac!

by Morn76 » Mon Apr 28, 2014 15:12

I have a script at https://github.com/mdoege/mtmake-osx for compiling. The README has more detailed instructions.

But basically grab that repo (git clone or just download the ZIP.) Install dependencies with Homebrew: cmake, freetype, gettext, hiredis, irrlicht, jpeg, leveldb, libogg, libvorbis, luajit.

You probably don't have to install all of Xcode (it's 2 GB I think), just the Xcode commandline tools. You should get prompted to install them when you run my script.

Then run make_mac.sh from a Terminal and if everything works as intended, you should eventually get the updated compiled app in releases/. You might also have to run build_libs.sh because the existing libraries in libs/ will probably not work on your machine. Or you could comment out the line with dylibbundler in make_mac.sh, then the minetest executable will point to your libraries in /usr/local. (Dylibbundler is really only needed to make an app work on other machines which do not have the dependencies installed in /usr/local by Homebrew.)
 

theoluk
Member
 
Posts: 21
Joined: Sun May 11, 2014 18:24

Re: Minetest 0.4.9 on Mac!

by theoluk » Mon Jun 09, 2014 23:11

Sorry to bother everyone with my mundane questions, but does this run on OS X 10.8?

Edit: No It Doesn't
 

raffahacks
Member
 
Posts: 12
Joined: Sat Apr 26, 2014 18:18
GitHub: raffahacks
IRC: raffahacks
In-game: raffahacks

Re: Minetest 0.4.9 on Mac!

by raffahacks » Thu Oct 23, 2014 21:02

Just tested, your port is about 1.40 the speed of the wine one in singleplayer and 1.8 in multiplayer. I cannot just get the fullscreen and the mod store to work. For everything else, very good port.
 


Return to Minetest General

Who is online

Users browsing this forum: Google [Bot] and 11 guests

cron