Where is the package com.jogamp.opengl.cg?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Where is the package com.jogamp.opengl.cg?

Marco
I would like to use the classes of package com.jogamp.opengl.cg but I dont' know which jar to include in my project.
I found this package in the javadoc and in the sources but I cannot find it in the jar libraries.
For my project I use the following libraries:

gluegen-rt.jar
gluegen-rt-natives-windows-amd64.jar
jogl-all.jar
jogl-all-natives-windows-amd64.jar

Where I can find the compiled package com.jogamp.opengl.cg?

Reply | Threaded
Open this post in threaded view
|

Re: Where is the package com.jogamp.opengl.cg?

Xerxes Rånby
The classes you seek are found inside the atomic/jogl-cg.jar and atomic/jogl-cg-natives-linux-amd64.jar

https://jogamp.org/deployment/jogamp-current/jar/atomic/jogl-cg.jar
https://jogamp.org/deployment/jogamp-current/jar/atomic/jogl-cg-natives-linux-amd64.jar
Reply | Threaded
Open this post in threaded view
|

Re: Where is the package com.jogamp.opengl.cg?

Marco
Thank you for answer.
I added these jar (with the windows 64 bit version) but when I call the method CgGL.cgGLIsProfileSupported I have some exceptions that depend on the error message:

Caused by: java.lang.RuntimeException: Couln't load native Cg or CgGL library
        at com.jogamp.opengl.cg.CgGL.<clinit>(CgGL.java:6582)

I tried to launch with the option -Djogamp.debug=1 and I have many messages I cannot understand. The first lines are:

NativeLibrary.findLibrary(<java>, sun.misc.Launcher$AppClassLoader@5b3d9c02) (CL): null
findSysLib #0: test java.dll
findSysLib #0: java.dll not readable
findSysLib #1: test C:\Program Files\Java\jdk1.7.0_79\jre\bin\java.dll
ELF-1: Using C:\Program Files\Java\jdk1.7.0_79\jre\bin\java.dll
Caught: Buffer is not an ELF Header
java.lang.IllegalArgumentException: Buffer is not an ELF Header

Do you have any ideas?
Reply | Threaded
Open this post in threaded view
|

Re: Where is the package com.jogamp.opengl.cg?

Xerxes Rånby
This post was updated on .
The we had a similar report from 2015 by a user who tried to use the Cg classes.

It turned out that the Nvidia provided Cg.dll and CgGL.dll installed on the system was 32bit and those system dll refused to get load using a 64bit JVM.

http://forum.jogamp.org/Jogl-cg-can-t-load-cg-or-cggl-library-on-system64-td4033828.html

Previously it was possible to workaround this limitation by passing -d32 to the JVM however that option has been depricated and removed using Java 10.

Are 64bit versions of Cg.dll and CgGL.dll available?

It appears the cg-toolkit is depricated by Nvidia.
https://developer.nvidia.com/cg-toolkit