Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: PienueDut

26. May 2012, 11:07:25 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)JOGL_drihack??
Pages: [1]
Print
Author Topic: JOGL_drihack??  (Read 1802 times)
Slothman
Just dropped in

Offline Offline

Posts: 6


View Profile Email
« on: 07. February 2007, 02:48:23 am »

Hi,

I just installed Xith3D, but can't get anything to run, it all compiles OK but when I actually run my test Xith3D program I get this error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl_drihack in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:993)
        at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeLibLoader.java:78)
        at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:101)
        at com.sun.opengl.impl.NativeLibLoader.access$100(NativeLibLoader.java:47)
        at com.sun.opengl.impl.NativeLibLoader$3.run(NativeLibLoader.java:141)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.opengl.impl.NativeLibLoader.loadDRIHack(NativeLibLoader.java:139)
        at com.sun.opengl.impl.x11.DRIHack.begin(DRIHack.java:105)
        at com.sun.opengl.impl.x11.X11GLDrawableFactory.<clinit>(X11GLDrawableFactory.java:66)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:111)
        at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:113)
        at com.xith3d.render.jsr231.CanvasPeerImpl.<init>(CanvasPeerImpl.java:153)
        at com.xith3d.render.jsr231.RenderPeerImpl.makeCanvas(RenderPeerImpl.java:147)
        at com.xith3d.render.jsr231.RenderPeerImpl.makeCanvas(RenderPeerImpl.java:128)
        at com.xith3d.render.jsr231.RenderPeerImpl.makeCanvas(RenderPeerImpl.java:113)
        at Main.init(Main.java:46)
        at Main.main(Main.java:90)

any ideas what this jogl_drihack is?

Thanks
Logged

*Slothman* kinda like Spiderman... only slower.
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 07. February 2007, 08:45:08 am »

Hi, Slothman, Welcome to Xith3D Smiley.

You're trying to tun Xith3D on Linux, right? JOGL needs native libraries (just as SWT, LWJGL and JOAL), if you want to use them. You need to setup an appropriate classpath.
The Linux version of JOGL needs a file named jogl_drihack.so, which is not needed in the Windows version.

How are you compiling? Eclipse, NetBeans, ANT? I suppose, it is NetBeans (The SVN project is correctly setup to compile and run on Linux). Plase make sure (however this goes), that in NetBeans the Native Library location for the jogl.jar is setup to point to the linux subfolder of the jogl folder under third-party.

Marvin
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #2 on: 07. February 2007, 06:14:50 pm »

Welcome, Slothman !
Logged
Slothman
Just dropped in

Offline Offline

Posts: 6


View Profile Email
« Reply #3 on: 08. February 2007, 01:05:34 am »

Hello again,

Thanks for the replies, I am indeed using Linux and Netbeans and I've managed to get it working now  Grin didn't see the jogl-natives-linux-i586 jar oooops  Roll Eyes

Thanks for the help
Logged

*Slothman* kinda like Spiderman... only slower.
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #4 on: 08. February 2007, 01:09:51 am »

Hello again,

Thanks for the replies, I am indeed using Linux and Netbeans and I've managed to get it working now  Grin didn't see the jogl-natives-linux-i586 jar oooops  Roll Eyes

Thanks for the help

You're welcome. Good to see, that things are working for you now. Another happy new Xith user Grin.

Marvin
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #5 on: 08. February 2007, 10:20:33 am »

You're welcome. Good to see, that things are working for you now. Another happy new Xith user Grin.
Yeah man, how lucky he is  Cool
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic