Hello Guest

Tetrismus

  • 19 Replies
  • 11459 Views
Tetrismus
« Reply #15 on: August 24, 2006, 00:11:22 »
I've upgraded to LWJGL 1.0beta3 now. It works fine on WinXP, but on Linux, I get

Quote

Exception in thread "main" java.lang.UnsatisfiedLinkError: getJNIVersion
   at org.lwjgl.DefaultSysImplementation.getJNIVersion(Native Method)
   at org.lwjgl.Sys.<clinit>(Sys.java:103)
   at org.lwjgl.openal.AL.<clinit>(AL.java:59)
   at game.output.SoundProcessor.initAL(SoundProcessor.java:219)
   at game.Tetrismus.initSoundProcessor(Tetrismus.java:411)
   at game.Tetrismus.initMenu(Tetrismus.java:293)
   at game.Tetrismus.run(Tetrismus.java:471)
   at game.Tetrismus.main(Tetrismus.java:136)

The line says
Code: [Select]
   if(!AL.isCreated())
I've checked the OS string and disabled sound for Linux, but then the same UnsatisfiedLinkError for Display.<clinit>() appeared when I do this:
Code: [Select]

      if(Display.isCreated())


I did a Google search for "getJNIVersion" and landed in the chatlog of #lwjgl, where Mazon says basically the same for WinXP on 08/01/2006, check it out:

http://new.lwjgl.org/irclog_browse.php?date=1154408150

So... Is this a bug in the beta release? Is it my fault? I've got the newest libs and all, am obviously doing the usual stuff...

I definitely need support :)

Edit: If it's a bug in the release, is it fixed on the svn trunk?

*

Offline Matzon

  • *****
  • 2242
Tetrismus
« Reply #16 on: August 24, 2006, 05:23:07 »
are you sure you dont have some old jar/dlls in jre/ext ?

Tetrismus
« Reply #17 on: August 25, 2006, 01:06:30 »
:oops: I had an old .so in my PATH. Deleting it did the trick for display operations. Thanks!

However, libopenal.so still segfaults on Linux as described here. What's up with that?

Edit: And there's definitely only the newest libopenal.so on my system. 'Newest' meaning the one from trunk, but the same thing happens with the one from 1.0beta3 release (if they are different after all...).

Tetrismus
« Reply #18 on: August 26, 2006, 01:15:50 »
I still don't have any clue why OpenAL segfaulted, but I fixed the bug by calling AL#create() instead of AL#create(String, int, int, boolean).

Thus, I have a new release :) The game should now run fine on Linux.

Tetrismus
« Reply #19 on: September 10, 2006, 20:36:16 »
For release 0.7, I've implemented Ogg streaming with classes I found in this forum. I used tomb's implementation. Thanks, tomb!