Hello Guest

DevIL crashes my game engine

  • 6 Replies
  • 23244 Views
*

Offline dosse

  • *
  • 10
DevIL crashes my game engine
« on: September 18, 2009, 18:16:06 »
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!

*

Offline Matzon

  • *****
  • 2242
Re: DevIL crashes my game engine
« Reply #1 on: September 19, 2009, 06:29:17 »
devil is only supported in 1.x series
make sure that the binary is locatable

*

Offline dosse

  • *
  • 10
Re: DevIL crashes my game engine
« Reply #2 on: September 19, 2009, 11:45:56 »
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...

*

Offline dosse

  • *
  • 10
Re: DevIL crashes my game engine
« Reply #3 on: September 19, 2009, 12:38:51 »
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?

*

Offline dosse

  • *
  • 10
Re: DevIL crashes my game engine
« Reply #4 on: September 19, 2009, 13:49:14 »
i solved the problem by redownloading the native libraries for linux... apparently the devil libraries were corrupt...

*

Offline kappa

  • *****
  • 1319
Re: DevIL crashes my game engine
« Reply #5 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/

*

Offline dosse

  • *
  • 10
Re: DevIL crashes my game engine
« Reply #6 on: September 19, 2009, 14:10:47 »
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