Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11855 Posts in 1569 Topics- by 3054 Members - Latest Member: Ljustin770

11. February 2012, 12:42:00 PM
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Xith on Mac OS X?
Pages: [1]
Print
Author Topic: Xith on Mac OS X?  (Read 755 times)
Oliver
Enjoying the stay
*
Offline Offline

Posts: 28


View Profile
« on: 18. October 2009, 06:14:50 PM »

Hi Folks,

does anyone run Xith and Netbeans on a mac book? I got various errors running a tk. The most appearing one is this one:

java.lang.UnsatisfiedLinkError: /Users/Oliver/NetBeansProjects/xith3d/third-party/jogl/macosx-universal/libjogl.jnilib:  no suitable image found.  Did find:  /Users/Oliver/NetBeansProjects/xith3d/third-party/jogl/macosx-universal/libjogl.jnilib: no matching architecture in universal wrapper
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1881)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1798)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1045)
        at com.sun.opengl.impl.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:189)
        at com.sun.opengl.impl.NativeLibLoader.access$000(NativeLibLoader.java:49)
        at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeLibLoader.java:80)
        at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:103)
        at com.sun.opengl.impl.NativeLibLoader.access$200(NativeLibLoader.java:49)
        at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:111)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:109)
        at com.sun.opengl.impl.macosx.MacOSXGLDrawableFactory.<clinit>(MacOSXGLDrawableFactory.java:53)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:108)
        at javax.media.opengl.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:520)
        at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:131)
        at org.xith3d.render.jsr231.CanvasPeerImplAWT.<init>(CanvasPeerImplAWT.java:177)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.xith3d.render.Canvas3DFactory.create(Canvas3DFactory.java:132)
        at org.xith3d.render.Canvas3DFactory.create(Canvas3DFactory.java:166)
        at org.xith3d.render.Canvas3DFactory.create(Canvas3DFactory.java:234)
        at org.xith3d.test.etc.Xith3DLogoTest.<init>(Xith3DLogoTest.java:80)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.xith3d.test.Xith3DTestLauncher.runTest(Xith3DTestLauncher.java:782)
        at org.xith3d.test.Xith3DTestLauncher$1.run(Xith3DTestLauncher.java:199)


Logged
ford.304
Enjoying the stay
*
Offline Offline

Posts: 30


View Profile Email
« Reply #1 on: 23. October 2009, 03:00:40 PM »

I'm running it on a macbook pro without any problems. Only suggestion is to make sure all of your updates are installed. What graphics chipset does your system have? We've had all sort of weird problems with the intel drivers on windows, not sure how they hold up on mac.
Logged
horati
Global Moderator
Getting respectable
*****
Offline Offline

Posts: 393


View Profile
« Reply #2 on: 09. November 2009, 04:02:50 AM »

I'm going to ask the simpler question: are you running on a PPC mac?  I wouldn't be surprised at all if the jogl "universal" drivers are really intel drivers.  My suspicions seem to sorta match the error message but that could just be me making the world match my assumptions.

PS
  I have no problems using that jnilib on my intel mac.
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
Oliver
Enjoying the stay
*
Offline Offline

Posts: 28


View Profile
« Reply #3 on: 09. November 2009, 08:39:52 AM »

I'm using a 1 year old mac book. The small white one, intel based.

The curious thing is: the demos from the JOGL home page run properly on it. And the jogl binarys have the same date.
Logged
horati
Global Moderator
Getting respectable
*****
Offline Offline

Posts: 393


View Profile
« Reply #4 on: 09. November 2009, 12:59:13 PM »

Have you tried making a backup of the directory giving the error and copying the libs that work to the location?  If that works, it should be something simple like download corruption.  If it does not work, it means there is a problem with the way you are running the tests.

On my Mac, I run with run.sh:

Code:
LIBS="$XITH_EXTERNAL/gluegen/macosx-universal $XITH_EXTERNAL/jogl/macosx-universal $XITH_EXTERNAL/lwjgl/natives $XITH_EXTERNAL/joal/natives"
java -ea -Djava.library.path=$LIBS -classpath $CLASSPATH -Xms128m -Xmx128m -XX:+AggressiveOpts $ARGS
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
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4337


May the 4th, be with you...


View Profile
« Reply #5 on: 09. November 2009, 10:01:02 PM »

Maybe you have some JOGL libraries in the java installetion folder and you're trying to use other libraries by passing them in the classpath (as you should do).

Marvin
Logged
Oliver
Enjoying the stay
*
Offline Offline

Posts: 28


View Profile
« Reply #6 on: 12. November 2009, 01:55:57 PM »

Fixed.

Not the binaries caused the failure, but the calling jar(s). First I found the same problem with jinput, then i found a post somwhere in the internet, where one said it is the java code, which doesn't recognize the architecture it is runnin on. The error message is really misleadingly.

Updating JOGL and jinput completely (jars & bins) did it.

Thanks for your input, guys!
« Last Edit: 12. November 2009, 01:57:53 PM by Oliver » Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic