No Default Device Available

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

No Default Device Available

JimmyNeutron
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.
Reply | Threaded
Open this post in threaded view
|

Re: No Default Device Available

Xerxes Rånby
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

Reply | Threaded
Open this post in threaded view
|

Re: No Default Device Available

JimmyNeutron
I've seen your name elsewhere on the webs while searching about this problem. You are a super genius! Your solution worked like a charm! Thanks so much!