Compilation problems on OS X

Hi, I’m having problems compiling the Game sample application on OS X. This was found at http://www.lwjgl.org/documents/tutorials/opengl/skeleton_code.html. It seems that a number of the methods that are used in Game aren’t defined in lwjgl.jar (or in the source for that matter).

Consider the following from Game.java (line 23)

It doesn’t compile because it says that Display.create doesn’t exist. I’ve downloaded the source for LWJGL, and looked through the entire org.lwjgl.Display class, and find no definition of the method at all.

There were 26 other errors. I’ll include them below as they refer to methods that don’t exist, or to trying to instantiate an abstract class. I’m not sure what’s going on, but I’d be really grateful if someone could help.

p.s. Oh and by the way, the strange thing is that the compiled demo applications that are provided in lwjgl_test.jar seem to run fine. ???

The tutorial was written for an old version of lwjgl. And newer versions of lwjgl is not backwards compatible with the old.

Instead use the examples that came with the source code of the lwjgl. They are up to date and will compile.

I can’t seem to find the source for the examples shipped in lwjgl_test.jar. I’ve expanded the jar file, but all I found were .class files.

Looking at the source code of LWJGL doesn’t yield any examples either. That tutorial really should be updated to reflect the changes in LWJGL, as it will spare newbies a lot of pain.

make sure you download the source.

And you are right, that does need to be updated. In fact, I think it would be more beneficial to delete it completely if there are no plans to update it soon. I does more harm than good.

[quote] Looking at the source code of LWJGL doesn’t yield any examples either. That tutorial really should be updated to reflect the changes in LWJGL, as it will spare newbies a lot of pain.
[/quote]
Agreed. I will look into substituting the ogl and oal examples with one complete example og ogl+oal+input - stay tuned.