LWJGL Forum

Archive => Resolved Bugs/RFE => Topic started by: kruno73 on May 06, 2011, 07:55:17

Title: [FIXED] Add Unix to known platforms in LWJGLUtil
Post by: kruno73 on May 06, 2011, 07:55:17
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.

Title: Re: [RFE] Add Unix to known platforms in LWJGLUtil
Post by: kappa on May 06, 2011, 08:48:55
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?
Title: Re: [RFE] Add Unix to known platforms in LWJGLUtil
Post by: kappa on June 23, 2011, 11:27:14
ok, Added.
Title: Re: [FIXED] Add Unix to known platforms in LWJGLUtil
Post by: jediTofu on June 24, 2011, 01:09:40
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.
Title: Re: [FIXED] Add Unix to known platforms in LWJGLUtil
Post by: kappa on June 24, 2011, 08:23:48
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.