Current ODEJava branch

Hey, guys. What is the current SVN (or CVS?) branch/trunk, that I should use with ODEJava? Is is the trunk or one of the branches? I hope, it is one, that already uses vecmath. I would want to port it to vecmath2.

Marvin

The “with-odejava-jni” cvs branch uses vecmath and a newer version of xith than the head. I think we should merge it into the head in the near future. The only active developer besides myself seems to be a user named harsens

  • so if you are around, harsens - any objections?

Where do I get the org.odejava.ode.* classes from? There doesn’t seem to be a jar, nor a src folder in the branch containing these classes.

Marvin

Oh, and how about Java-5 syntax? You seem to be using Java 1.4 syntax. Is it a problem, if I port the lib to use the nice generics and @Override annotations?

Marvin

OK, found it.

The methods Ode.setWorldID() and Ode.setContactGroupID() don’t seem to be applicable anymore. What should I use instead?

Marvin

they’re parameters to the collision function now (setting them globally caused errors with multiple worlds)

I think there might be people who would like to use it with 1.4 - but not myself. They could use retroweaver if they really need 1.4, though… so… why not?

Could you maybe fix that in the branch and commit? I don’t know, how to do that.

Marvin

ok, fixed in branch

Cool. Thanks. I have finished the port to the latest Xith3D and vecmath2. Please tell me, if and when I can commit it.

Marvin

There’s one thing left, that I don’t know, how to fix. In org.odejava.GeomTriMesh.init() the method getVoidPointer() is undefined for the SWIG types. What should I do here? Well I could simply commit all the stuff and let you fix it. Is this ok?

Marvin

What’s this?


18.11.2007 16:53:45 org.odejava.Odejava <clinit>
SCHWERWIEGEND: Wrong native version! Expected 0.3.1, but found 0.3
Exception in thread "main" java.lang.UnsupportedOperationException: Failed to load natives
	at org.odejava.Odejava.init(Odejava.java:125)
	at org.odejava.test.car.CarTerrain.initWorld(CarTerrain.java:142)
	at org.odejava.test.car.CarTerrain.<init>(CarTerrain.java:131)
	at org.odejava.xith3d.test.CarTerrainExample.<init>(CarTerrainExample.java:124)
	at org.odejava.xith3d.test.CarTerrainExample.main(CarTerrainExample.java:105)
Caused by: java.lang.UnsatisfiedLinkError: Wrong native version! Expected 0.3.1, but found 0.3
	at org.odejava.Odejava.<clinit>(Odejava.java:105)
	... 4 more

Marvin

you should use the head in odejava-jni module, sorry, forgot to point that out - the branch was joined there already

As printed: you use an old native version of odejava-jni :stuck_out_tongue: (same problem as above probably)
OS? (osx might be out of date, win/lin should be fine)

:o. Well, if it’s ok, I will commit the changes to the with-odejava-jni branch now. Could you than please merge it to where it should be? And then please tell me, where I can checkout the latest. I am a bit confused now.

I am using Linux.

Marvin

Due to the weired cvs setup on java.net I was not able to delete the branch for the odejava-jni folder, that’s why you need to check out the “HEAD” for the folder odejava-jni, but “with-odejava-jni” branch for all the other dirs.
For me it’s ok, if you commit to the “with-odejava-jni” branch (am I the one to decide that?). But do you have commit rights - what’s your login?

I have commit rights. My Login is “qudus”. I have committed the changes. Please tell me, if everything is ok.

After you’ve merged it to where ever it should be I can start the Java-5-Syntax port.

Marvin

Oh, just to be mentioned: I don’t know, if there are any ant-scripts to be updated. I am working with Eclipse and don’t have too much knowledge about ant. So please have a look at the .classpath file to know, which jars etc. have to be imported.

Marvin

I won’t merge into the head in the next couple of days (no time for that). So just go ahead in the branch.

And: I don’t use Ant either.

ok

So, what are you using? The eclipse project wasn’t completely setup in the branch.

Marvin