Maybe one of you old linux CVS geniuses can help me out.
I'd like to use the newest version of the lwjgl, so I downloaded it from the "latest CVS tarball" link on the webpage. However, what I get is a bunch of strangeness. Most of the files have a ",v" tagged onto the end. What is the proper way to use the tarball?
I'm running Fedora Core 2. I'd simply like to get the newest stuff and build it myself. I think I can figure out how to build it, but its the getting it that seems to be my problem. I'm sure I'm missing something simple, but am at a loss for what it is.
Is there a particular way I need to be doing this?
Thanks,
jglover13
Hm, not with the CVS tarball. Your best bet is to simply check out the whole LWJGL project from CVS. The CVS root is:
pserver:cvs.lwjgl.org:/cvsroot/java-game-lib
Once its all down on your local machine you will find a load of Linux strangeness like ./configures and makefile thingies. There's an ANT build thing in there too but I don't think it does native compilation, just the Java stuff.
Cas :)
Thanks for the quick response. I've taken your advice. Much simpler... at least after I figured out CVS.
- jglover13
"ant all" does indeed build the native library too. A zip file containing the jars and the so file will end up in dist/ and the libraries themselves end up up in libs/. So no "linux strangeness" will be needed apart from the build environment and the OpenAL headers (openal-devel) package.
- elias
Hi,
I've downloaded the last version in CVS but "ant all" seems to build only the java part of lwjgl, not native lib, as Cas said..
I guess I have to use some c++ toolkit to build them..
Could it be a more practical way (get a full working tar ball from last cvs for example ?)
I only ask if it can be done easily of course
:o
yeah - it needs to be updated - I have a copy lying about that builds the native parts - I'll commit it later today.
What you have to do, is fire up your 'Visual C++ Toolkit 2003 Command Prompt'.
go to LWJGL/platform_build/win32_ms_cmdline.
edit 'build.bat' for paths to where you have installed:
Java
OpenAL
EAX (EAX 2.0)
DirectX SDK
Platform SDK
If you have not installed these, you need to download and install these packages (several hundred MB for Direct X & Platform SDK)
Then just build by running the build.bat file.
Ok, i've just looked at the "build.bat" from my cvs check out and I see what you mean.
I 'll post feedback later,
Thanks for the info
Ok,
I finally managed to build the all thing with the libraries needed
Here you can find the latest version of LWJGL in cvs (20040716)
http://airtel.free.fr/lwjgl-cvs20040716.zip
Hope it will help some beginner like me...
It contains:
lwjgl.jar
lwjgl.dll
lwjglaudio.dll
All that you need to open the pandora box
and say goodbye to your girlfriend ;)
Oh no!
Whats that?
Exception in thread "main" java.lang.UnsatisfiedLinkError: setTime
at org.lwjgl.Sys.setTime(Native Method)
at org.lwjgl.Sys.initialize(Unknown Source)
at org.lwjgl.Sys.<clinit>(Unknown Source)
at org.lwjgl.Display.<clinit>(Unknown Source)
at Breakout.<init>(Breakout.java:35)
at Breakout.main(Breakout.java:146)
Press any key to continue...
WiESi
OK, I managed that problem, the computer didn't copy the files correctly,
but now I get this error message:
Current mode 1152 x 864 x 32 @60Hz
Exception in thread "main" java.lang.UnsatisfiedLinkError: loadOpenGLLibrary
at org.lwjgl.opengl.GLContext.loadOpenGLLibrary(Native Method)
at org.lwjgl.opengl.GLContext.useContext(Unknown Source)
at org.lwjgl.opengl.Display.makeCurrent(Unknown Source)
at org.lwjgl.opengl.Display.create(Unknown Source)
at org.lwjgl.opengl.Display.create(Unknown Source)
at Breakout.<init>(Breakout.java:55)
at Breakout.main(Breakout.java:144)
Press any key to continue...
WiESi
Don't worry, this only means java can't find its way to native librairies
You need the following VM parameter:
-Djava.library.path=<path to lwjgl.dll & lwjglaudio.dll>
I suggest you should use an EDI like eclipse, and follow the installation procedure from www.lwjgl.org
@+
Doesn't help either.
Actually I programmed with LWJGL 0.7 and 0.8 already, but since 0.9
LWJGL isn't working properly.
WiESi
Strange.
Try this one. It contains the lwjgl_util too and other stuff
http://airtel.free.fr/lwjgl-full-cvs20040716.zip
Try this config of eclipse:
Project->Properties
Java Build Path->Libraries->add external jar
(add path too all lwjgl*.jar here)
And :
Run->Run...
Java Application->New->Argument->VM arguments:
-Djava.library.path=.
Then place all dlls in the workspace of your project
It works for me.
Good luck
Thx, now it works :D
WiESi