LWJGL
May 20, 2012, 23:24:09 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Devil on macOS X tutorial crash story...  (Read 4104 times)
nicolas_bol2
Newbie
*
Posts: 4


« on: April 29, 2006, 20:26:25 »

Hello all,

I am trying to use  LWJGL.DevIL on macOS X.

So i downloaded LWJGL on the website, configured classpath and -Dlibrary stuff: Crash.

Ok, so i search a little bit on google and i manage to download MAC OS X libraries on DevIL website.

Then i tried to run the tutorial again: Crash.

Searching on the forum teached me that i need to call IL.create()

Ok let's go, but doing so: Crash.

Searching a little bit more, i learned that i need to Call IL.ilInit

Ok (i pass on the fact that i had to recompile source because IL.ilInit is private), now it is still crashing am i am running out of "search forum/google" bullets:

java.lang.NullPointerException
   at org.lwjgl.opengl.GL11.glGenTextures(GL11.java:1206)
   at Texture.loadTexture(Texture.java:183)
   at Game.init(Game.java:71)
   at Game.main(Game.java:41)

Line 183 of Texture.loadTexture is:

 GL11.glGenTextures(scratch);

It is a little discouraging....but i won't give up ! Anybody can suggest me something ?
Logged
nicolas_bol2
Newbie
*
Posts: 4


.
« Reply #1 on: May 03, 2006, 09:39:27 »

Whatever, i found a working tutorial on nehe productions.

http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=06
Logged
Fool Running
Nerdus Imperius
*****
Posts: 647


« Reply #2 on: May 04, 2006, 06:41:40 »

The crash (if you still care :lol: ) is not caused by DevIL, but more likely as a result of not calling Display.Create().  GL11.glGenTextures() is an OpenGL call, not a DevIL call.
Logged

Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option Grin
nicolas_bol2
Newbie
*
Posts: 4


« Reply #3 on: May 04, 2006, 15:02:23 »

Thanks "Fool Running"...

Too bad i trashed the old version, there is now way for me to investigate further....

LWJGL really needs to overhaul its tutorial, this is really a bad first impression to begin with a piece of code form the "official" site and it doesn't work.
Logged
Fool Running
Nerdus Imperius
*****
Posts: 647


« Reply #4 on: May 05, 2006, 12:24:08 »

Which piece of code did you try to use so someone can look at it?

I looked at a DevIL tutorial on the wiki and I think it assumes you looked at the other tutorials (for calling Display.create() and stuff). The code is designed to be a wrapper for an OpenGL texture object.... Maybe we should be more obvious that the code depends on other code... or at least more knowledge. Smiley
Logged

Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option Grin
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!