Login  Register

Re: GLException "No device available" error on Ubuntu 20 / Intel Graphics

Posted by Wade Walker on Aug 03, 2020; 7:11pm
URL: https://forum.jogamp.org/GLException-No-device-available-error-on-Ubuntu-20-Intel-Graphics-tp4040754p4040763.html

Hi Arnaud, my point about the FileLocator is not that you need to use that specific class, it's that you should check the JarResolver to see how JOGL is trying to find itself when invoked from inside your OSGi app. If JOGL is invoked from inside a "strange" environment where the classpath is a path to the inside of a JAR file (instead of being a plain file:// URL of a .class file), then JOGL may be unable to automatically unpack its native binaries to the hidden temp cache directory that it uses.

But on the other hand, if you're making your own bundles/fragments like I used to do for Eclipse, maybe this step is not needed. But I think in that case you may need to turn off JOGL's native library cache so it'll use your copies of the native libs, wherever you've put them.