Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11993 Posts in 1588 Topics- by 3508 Members - Latest Member: PienueDut

26. May 2012, 11:17:28 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)XithTK Tests Question
Pages: [1]
Print
Author Topic: XithTK Tests Question  (Read 1103 times)
horati
Global Moderator
Getting respectable
*****
Offline Offline

Posts: 393


View Profile
« on: 09. February 2007, 02:50:25 pm »

As you've figured out by my recent posting activity, I'm new to X3D but intensely interested.  I'm trying to get the tests running from the demo/teststarter.sh on my Mac but having a few problems.  Here are the tweaks I made to get nearly running
Code:
cd ..

LIBS=../xith3d/third-party/jogl/macosx/jogl-natives-macosx-universal.jar:../xith3d/third-party/jogl/macosx:../xith3d/third-party/joal/macosx:../xith3d/third-party/swt/macosx:../xith3d/third-party/lwjgl/macosx

XITH_CP=../xith3d/third-party/joal/macosx/joal.jar:../xith3d/third-party/jogl/jogl.jar:../xith3d/third-party/lwjgl/lwjgl.jar:../xith3d/third-party/lwjgl/lwjgl_devil.jar:../xith3d/third-party/lwjgl/lwjgl_fmod3.jar:../xith3d/third-party/math/openmali.jar:../xith3d/third-party/misc/commons-logging-optional.jar:../xith3d/third-party/misc/commons-logging.jar:../xith3d/third-party/misc/junit.jar:../xith3d/third-party/misc/log4j.jar:../xith3d/third-party/misc/vorbis.jar:../xith3d/third-party/swt/macosx/swt.jar

DEMO_CP=third-party/collada/whoola_collada_jaxb.jar:third-party/jaxb1/jaxb-api__V1_0_6.jar:third-party/jaxb1/jaxb-impl__V1_0_6.jar:third-party/jaxb1/jaxb-libs__V1_0_6.jar:third-party/jaxb1/jax-qname__V1_0_6.jar:third-party/jaxb1/relaxngDatatype__V1_0_6.jar:third-party/jaxb1/xsdlib__V1_0_6.jar:third-party/hial/hial.jar:bin:../xith3d/bin:resources:resources/media.jar

CP=$XITH_CP:$DEMO_CP

java -Djava.library.path=$LIBS -Xmx64m -Xms16m -classpath $CP org.xith3d.test.Xith3DTestLauncher $*
as well as updating org.xith3d.test.Xith3DTestLauncher near line 376 to the following
Code:
                int lastIndex = Math.max( 0 , file.getAbsolutePath().lastIndexOf( baseFolder ) ) + baseFolder.length();
                String className = file.getAbsolutePath().substring( lastIndex ).replace( '\\', '/' ).replace( '/', '.' );
                className = className.substring( 0, className.length() - 6 );
so that it can handle classpaths that are not placed at c:\ or /.  So far, so good.  The list of X3D tests shows up in the launcher but I still get unsatisfied link errors for both JOGL and LWJGL.  As you can see from my LIBS declaration, I am attempting to point to all of my currently compiled code extracted from the X3D trunk.
Logged

Kevin
"It may not seem like a big deal, but ignorance of character encoding issues leads to insidious code rot akin to y2k."
http://stackoverflow.com/users/3474/sylvarking
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #1 on: 09. February 2007, 03:39:32 pm »

IMHO, Java can't read natives directly from .jar
You have to extract them from the .jar files (you will then find .jnilibS files)
That said, I don't know why LWJGL is not running (settings seems correct)
Logged
horati
Global Moderator
Getting respectable
*****
Offline Offline

Posts: 393


View Profile
« Reply #2 on: 09. February 2007, 03:52:58 pm »

Extracting the natives did the trick.  Shouldn't they be stored in SVN extracted if that's required?
Logged

Kevin
"It may not seem like a big deal, but ignorance of character encoding issues leads to insidious code rot akin to y2k."
http://stackoverflow.com/users/3474/sylvarking
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #3 on: 09. February 2007, 03:57:30 pm »

Extracting the natives did the trick.  Shouldn't they be stored in SVN extracted if that's required?
Yes and no. Having the natives in a jar are necessary for Java Web Start. And their jar is (normally) signed.

Glad that you finally had it working Smiley

What are you planning to do with Xith3D ?
Logged
horati
Global Moderator
Getting respectable
*****
Offline Offline

Posts: 393


View Profile
« Reply #4 on: 09. February 2007, 04:01:42 pm »

Correction: JOGL works now.

Here is what I'm getting with LWJGL

Exception in thread "AWT-EventQueue-0" java.lang.LinkageError: Version mismatch: jar version is '1.0bet?
Logged

Kevin
"It may not seem like a big deal, but ignorance of character encoding issues leads to insidious code rot akin to y2k."
http://stackoverflow.com/users/3474/sylvarking
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic