[FIXED] Add Unix to known platforms in LWJGLUtil

Started by kruno73, May 06, 2011, 07:55:17

Previous topic - Next topic

kruno73

I'm getting this error in Slackware linux while running lwjgl 2.7 app:
org.lwjgl.LWJGLUtil ---> java.lang.LinkageError: Unknown platform: Unix 2.6.38.2

lwjgl.LWJGLUtil.java line 280

else if ( osName.startsWith("Linux") || osName.startsWith("FreeBSD") || osName.startsWith("SunOS") )
         PLATFORM = PLATFORM_LINUX;

Please add "Unix" to the list.
Thank You.


kappa

Found it a bit odd that a Linux distribution identifies itself as Unix, but after a quick wikipedia found this
QuoteSlackware aims for design stability and simplicity, and to be the most "Unix-like" Linux distribution
so its intentionally disguising itself.

I suppose "Unix" could be added to the list but just curious whether the Linux LWJGL binaries would be compatible with Unix?

kappa


jediTofu

As a catch all, can we just do as a last resort always try Linux?

if(windows...){
}
else if(mac...) {
}
else {
PLATFORM = PLATFORM_LINUX;
}

It doesn't seem like it will hurt anything; if the Linux files don't work, it won't be a big deal as it wouldn't have worked anyway.
cool story, bro

kappa

sure it won't hurt (much) but things can change on the windows and mac platforms too, e.g. recently "Darwin" was added to support a variant of OS X. We don't really want to be attempting to load linux natives on something like that.