Login  Register

Re: Jogl_cg can't load cg or cggl library on system64.

Posted by jetlee01 on Jan 12, 2015; 2:04pm
URL: https://forum.jogamp.org/Jogl-cg-can-t-load-cg-or-cggl-library-on-system64-tp4033828p4033843.html

I had already contained the jogl-cg-natives-windows-amd64.jar and jogl-cg-natives-windows-i586.jar. The main problem is that the 64-bit jvm couldn't load the 32-bit Cg.dll library, and the Navidia doesn't provide any 64-bit cg.dll or cggl.dll for windows. When I call the cg native functions throw the jogl libraries, the first thing that jogl will to do is to load the gluegen-rt.dll into jvm, if this step success, it will load the Cg.dll and CgGL.dll, and finally load the jogl_cg.dll. Because my jvm is 64-bit, it needs 64-bit Cg libraries, they aren't match, so it would failed in the half way. So it nothing to do with the jogl-cg-natives-*.jar.

The only way to run the cg code through the jogl on 64-bit windows system is to use the 32-bit jvm instead of the 64-bit jvm.

I hope you to check whether the jogl-cg code can work on 64-bit windows system.