Login  Register

Re: No Default Device Available

Posted by Xerxes Rånby on Jun 02, 2016; 6:45pm
URL: https://forum.jogamp.org/No-Default-Device-Available-tp4036780p4036781.html

On 9th Feb 2016 Raspbian Raspberry Pi system images started to ship their system with two incompatible implementations of OpenGL ES installed at the same time.
https://jogamp.org/bugzilla/show_bug.cgi?id=1290

The Mesa3D OpenGL ES implementation work in combination with AWT and NEWT GLWindow
The Broadcom OpenGL ES implementation only work in combination with NEWT GLWindow

When using JogAmp 2.3.2 the only known workaround is to remove one of the two implementations from the system.

To get your AWT program running you have to first select the experimental opengl driver in raspi-config
then you have to make the Broadcom driver unavailable by renaming the /opt/vc driver folder
sudo mv /opt/vc /opt/vc-disabled

To get Broadcom OpenGL ES initialization working you uninstall Mesa3d OpenGL ES
sudo aptitude remove libgles1-mesa libgles2-mesa libgl1-mesa-dri


2016-06-02 19:32 GMT+02:00 JimmyNeutron [via jogamp] <[hidden email]>:
Okay, so I'm trying to get JOGL working on my Raspberry Pi. I followed the instructions in the JOGL wiki for setting up a project in eclipse to use JOGL. I included the native jars for Mac OS X, both Windows architectures, and all four Linux, since I would like this program to be cross-platform. I followed the instructions to creating a minimal JOGL with AWT program found here: https://sites.google.com/site/justinscsstuff/jogl-tutorial-2

It runs fine inside of eclipse, it runs fine when exported as a runnable jar on my Mac, but if I try to run it on the Raspberry Pi, I get the error:

Exception in thread "main" com.jogamp.opengl.GLException: No default device available

This occurs whenever I try to get a GLProfile, regardless of whether I am getting the default profile using GLProfile.getDefault() or a specific one using GLProfile.get(GLProfile.GL2ES2). I've tried getting GL2ES1, GL2, GL2ES2, and none of them work. If anyone could help me out, I'd be very grateful.


If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/No-Default-Device-Available-tp4036780.html
To start a new topic under jogl, email [hidden email]
To unsubscribe from jogamp, click here.
NAML