Request
Due to the trouble I had last time exporting my game to Linux and OSX, I made a test to see if it works now. I do not have a Linux or OSX, so I would like to ask you to test it for me if you do. Here it is
Comments
20. Aug 2015 · 10:28 UTC
You might want to test it in a virtual machine, this is a must have handy software anyway
pi_pi3
20. Aug 2015 · 10:32 UTC
Thanks for the tip. On it
20. Aug 2015 · 10:50 UTC
Doesn’t work on OS X 10.11 with Java 1.8.0.60, throwing this error when I start it through the command line (double clicking the Jar from the GUI does nothing):
pi_pi3
20. Aug 2015 · 11:22 UTC
I think I made a workaround that should work for now. I’ll fix it properly after the LD. If it doesn’t work, then, well, only the Windows build will be playable.
20. Aug 2015 · 11:55 UTC
I got the following error while trying to run on MacOs 10.10.4, java 1.8.0_31:
pi_pi3
20. Aug 2015 · 13:09 UTC
Thanks for the help. I still don’t know what’s the issue on OSX
ungarischeziegenspielen
20. Aug 2015 · 18:52 UTC
I see you’re using LWJGL… that library needs some natives. Since I haven’t downloaded your files or tested them yet, I’m going to make a wild guess, that you set your natives path to windows DLLs in eclipse or whatever IDE you’re using… But if you want to make it truly cross-platform, you need to set it dynamicly. In your main, before you would create a Display or an OpenGL context, set a System property, called “org.lwjgl.librarypath” to the folder containing the natives for the given OS. You can check the OS by calling System.getProperty (“user.os”). If it starts with “Win” -> windows, set “org.lwjgl.librarypath” to the folder of windows’ natives. if it ends with “nix”, or “nux” set it to the linux natives (.so-s). Otherwise, take a guess and set them to the OSX natives. If something fails, look up the OS names for OS X, and hardcode that too. If I covered anything you did before, and not this was your problem, I’m sincerely sorry!