Hello Guest

[FIXED] Add Unix to known platforms in LWJGLUtil

  • 4 Replies
  • 20251 Views
[FIXED] Add Unix to known platforms in LWJGLUtil
« 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.

« Last Edit: May 06, 2011, 08:05:36 by kruno73 »

*

Offline kappa

  • *****
  • 1315
Re: [RFE] Add Unix to known platforms in LWJGLUtil
« Reply #1 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
Quote
Slackware 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?
« Last Edit: May 06, 2011, 08:50:59 by kappa »

*

Offline kappa

  • *****
  • 1315
Re: [RFE] Add Unix to known platforms in LWJGLUtil
« Reply #2 on: June 23, 2011, 11:27:14 »
ok, Added.

Re: [FIXED] Add Unix to known platforms in LWJGLUtil
« Reply #3 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.
cool story, bro

*

Offline kappa

  • *****
  • 1315
Re: [FIXED] Add Unix to known platforms in LWJGLUtil
« Reply #4 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.