Tetrismus

Started by wolf_m, August 18, 2006, 00:17:16

Previous topic - Next topic

wolf_m

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
   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:
     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?

Matzon

are you sure you dont have some old jar/dlls in jre/ext ?

wolf_m

: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...).

wolf_m

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.

wolf_m

For release 0.7, I've implemented Ogg streaming with classes I found in this forum. I used tomb's implementation. Thanks, tomb!