DevIL crashes my game engine

Started by dosse, September 18, 2009, 18:16:06

Previous topic - Next topic

dosse

Hi, i have this problem with devil: if i run my GE on windows, everything works fine, but when I try to run it from linux, I keep getting this error:

- CORE MESSAGE: can't create DevIL (Core.init())
org.lwjgl.LWJGLException: Could not load devil library.
        at org.lwjgl.devil.ILNative.nCreateIL(Native Method)
        at org.lwjgl.devil.ILNative.createIL(ILNative.java:116)
        at org.lwjgl.devil.IL.create(IL.java:590)
        at org.easyway.system.Core.init(Core.java:289)
        at org.easyway.system.Sincro.run(Sincro.java:58)
- CORE MESSAGE: You have selected a resolution that isn't supported: I'll try to change the resolution.. please wait (Core.createWindow)
Exception in thread "Thread-1" java.lang.UnsatisfiedLinkError: org.lwjgl.devil.IL.nilGenImages(ILjava/nio/IntBuffer;I)V
        at org.lwjgl.devil.IL.nilGenImages(Native Method)
        at org.lwjgl.devil.IL.ilGenImages(IL.java:344)
        at org.easyway.objects.texture.ImageData.<init>(ImageData.java:166)
        at org.easyway.objects.texture.TextureID.<init>(TextureID.java:105)
        at org.easyway.objects.texture.TextureID.<init>(TextureID.java:76)
        at org.easyway.objects.texture.Texture.<init>(Texture.java:118)
        at org.easyway.objects.texture.Texture.getTexture(Texture.java:612)
        at mygame.NewClass.preCacheMenu(NewClass.java:157)
        at mygame.NewClass.loop(NewClass.java:199)
        at org.easyway.system.Core.coreLoop(Core.java:474)
        at org.easyway.system.Sincro.run(Sincro.java:77)

Can you help me?

thanks!

Matzon

devil is only supported in 1.x series
make sure that the binary is locatable

dosse

it finds the binary, but the game crashes when it loads the first texture...
btw, how can i switch to version 2.x? can i just change the files in the lwjgl directory of my ge? sorry for the noob's question...

dosse

i made some tries and found out that the only library with problems is devil... is there an alternative to use something else and rewrite so much code?

dosse

i solved the problem by redownloading the native libraries for linux... apparently the devil libraries were corrupt...

kappa

there is an alternative to devil and fmod (recommended in lwjgl 2.0), its called slick-util (note separate from slick), you can use that to load textures and sounds.

It can be found at http://slick.cokeandcode.com/downloads/util/
with javadoc being at http://slick.cokeandcode.com/javadoc-util/

dosse

Quote from: javalwjgl on September 19, 2009, 13:56:52
there is an alternative to devil and fmod (recommended in lwjgl 2.0), its called slick-util (note separate from slick), you can use that to load textures and sounds.

It can be found at http://slick.cokeandcode.com/downloads/util/
with javadoc being at http://slick.cokeandcode.com/javadoc-util/
thanks! i think that i'll use that in the next version of my engine instead of devil