Cyberjim
Senior Newbie 
Java games rock!
|
 |
«
Posted
2003-11-23 15:33:30 » |
|
Hi, I just installed xith3d and I have no plroblem running the demos. I have a problem when using xith3d in Eclipse. I have approx 12 errors that I cant seem to fix. Most of them are related with OpenGL.
Im using the CVS build 2003-11-23
Exemple : gl.viewport(0, 0, width, height); //gl.viewport is undefined for the Typr GL, Im getting the same with gl.maxtrixMode.
Also, GL.PROJECTION cannot be resolved.
The other error Im getting is dataBufferAddrs[loop] = Sys.getDirectBufferAddress(dataBuffers[loop]); // The method getDirectBufferAddress is undefined for the type Sys.
Should I be using an official build instead ?
Any help would be appreciated.
Thank you
|
|
|
|
|
Yuri Vl. Gushchin
Senior Member   
Speak Java!
|
 |
«
Reply #1 - Posted
2003-11-23 15:52:19 » |
|
I also use Eclipse with Xith3D, but I use different approach.
I created a copy of Java Runtime [for my development purposes only] and installed all the bits of code (including jogl, joal, xith3d, etc.) as standatd extensions (i.e. in jre/lib/ext and jre/bin). Then I created separate JRE in Eclipse and assigned it to my project that uses Xith3D, so I can debug, run and compile without any problems.
BTW, deployment of the app should NOT rely on the installation of Xith3D as standard extencion.
Yuri
|
Yuri Vl. Gushchin JProof Group
|
|
|
Jens
|
 |
«
Reply #2 - Posted
2003-11-23 15:52:29 » |
|
I use Xith3D with Eclipse 3.0M4 on Linux. You have to make sure that eclipse finds all the necessary libraries. Have you installed all necessary jar's (except xith3d.jar) and native libs in the JRE you are using? (please check that you are using the right JRE) Have you added xith3d.jar to your classpath? Do other community builds work for you?
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Cyberjim
Senior Newbie 
Java games rock!
|
 |
«
Reply #3 - Posted
2003-11-23 16:06:21 » |
|
Hi, thanks for replying.
Basicly I copied all .jar in /lib/ext of my java j2re1.4.2_02 and the .dll in /bin
I didnt had xith3d.jar to the classpath, Im guessing that under windows, classpath is an environment variable ?
|
|
|
|
|
cfmdobbie
|
 |
«
Reply #4 - Posted
2003-11-23 16:17:48 » |
|
Your problem is that the LWJGL content in Xith3D is compiled against a much earlier version than the lwjgl.jar your environment is finding. The correct jar to use is under /third-party/lwjgl in the Xith3D distribution.
|
Hellomynameis Charlie Dobbie.
|
|
|
Jani Laakso
Junior Member  
Do it with Java!
|
 |
«
Reply #5 - Posted
2003-11-23 16:32:23 » |
|
I am using Eclipse 3.0 (build id: 200310101454). Here's example what I did:
I've first created a java project called Xith3d. Then I used the CVS view for checking out the whole Xith3d CVS into existing project (Xith3d). Next I click the project with right mb and select properties. From there I did the following:
1. select tab "Java Build Path". I remove current build path and add new one by clicking button "Add new folder", now my build path reads "xith3d/src" (right) instead of the default "xith3d" (wrong).
2. select tab "Libraries" Click button "Add JARs..." Add the following libraries to your classpath third-party/misc/junit.jar third-party/misc/log4j.jar third-party/misc/vorbis.jar third-party/vecmath/vecmath.jar third-party/xith/xith_utilities.jar third-party/lwjgl/examples.jar third-party/lwjgl/lwjgl.jar third-party/joal/windows/joal.jar third-party/jogl/jogl-win32/jogl.jar
3. Select tab "Order and export" (not mandatory for Xith examples) Check every library that you wish to use on a project that depends on Xith3d, e.g. your own Xith3d related test project.
One thing, when you run e.g. Xith3d tests, tell JVM from where to find native libraries. You can do it by selecting run from the menus and then selecting "Arguments" tab and then adding the following (fix pathes) to VM arguments: box: -Djava.library.path="D:\eclipse\workspace\xith3d\third-party\jogl\jogl-win32;" This makes sure that you use always the same jogl that Xith3d revision is meant to be using.
|
|
|
|
|
Cyberjim
Senior Newbie 
Java games rock!
|
 |
«
Reply #6 - Posted
2003-11-23 16:38:10 » |
|
It seems that downloading the whole third-party libraries in the third-party.tar.gz corrected my problems... At first I downloaded them from the subdirectories ( http://www.xith.org/download/third-party/) in your downloads section and I got all those errors. Now I download the third-party.tar.gz file ( http://www.xith.org/download/third-party.tar.gz) and Im not getting anymore errors. Maybe the two LWJGL aren't the same version ? Anyway it's working now, Thanks a lot
|
|
|
|
|
moovida
Senior Newbie 
Java games rock! Moovida too!
|
 |
«
Reply #7 - Posted
2003-11-23 17:44:15 » |
|
Please permit me one more question. I use eclipse on linux. Where can I get the lwjgl.so? The third party package only supplies the .dll's.
Kind regards Andrea
|
...life is like a song and you should understand everybody got the base but few have good arrangements... -"growing in one week"- Moovida
|
|
|
Jens
|
 |
«
Reply #8 - Posted
2003-11-23 18:22:44 » |
|
Where can I get the lwjgl.so? The third party package only supplies the .dll's. Actually you don't need the native LWJGL libs to compile Xith3D. Currently Xith3D only supports Jogl (this probably changes). However it would still be good to have the native libs for LWJGL in the right place.
|
|
|
|
Jani Laakso
Junior Member  
Do it with Java!
|
 |
«
Reply #9 - Posted
2003-11-23 18:27:18 » |
|
Where can I get the lwjgl.so? The third party package only supplies the .dll's.
I wonder why it exists only for windows. Here's a link to lwjgl download page: http://sourceforge.net/project/showfiles.php?group_id=58488Download lwjgl-0.8-glibc2.3-linux.zip, I assume .so file is there, at least the filename indicates it.
|
|
|
|
|
Games published by our own members! Check 'em out!
|
|
moovida
Senior Newbie 
Java games rock! Moovida too!
|
 |
«
Reply #10 - Posted
2003-11-23 19:58:55 » |
|
Jani_Laakso was absolutely right. Got the package.
Now it works, thanks. Regards, Andrea
|
...life is like a song and you should understand everybody got the base but few have good arrangements... -"growing in one week"- Moovida
|
|
|
William Denniss
|
 |
«
Reply #11 - Posted
2003-11-23 22:40:58 » |
|
I have posted a bug on the LWJGL dependancy problem, #46 with a list of all files using org.lwjgl. https://xith3d.dev.java.net/issues/show_bug.cgi?id=46It would be good if Xith3D could compile and run without LWJGL there at all (that is if you removed the src/com/xith3d/render/lwjgl/) Will.
|
|
|
|
|