Login  Register

Re: LWUIT NEWT JOGL Enlightenment Wayland - Tizen Phone

Posted by Peter on Oct 25, 2015; 7:03am
URL: https://forum.jogamp.org/LWUIT-NEWT-JOGL-Enlightenment-Wayland-Tizen-Phone-tp4035335p4035578.html

I've been investigating the Tizen platform further, at present I'm experimenting on Tizen 2.3, which uses X, instead of Wayland.

What I've found is that root access is required to access DISPLAY:0, in this case policytool, works from root, but not a user account (see appended).

Tizen expects developers to create OpenGL apps via Enlightenment foundation library classes, EvasGL and GLview.  
The Developer can use OpenGL API, but there's a level of indirection and the GL headers aren't used directly.  However it appears possible to create a wrapper around EvasGL for OpenGL calls.

The EFL libraries encapsulate the window system, EGL and OpenGL ES, Although not supported by hardware, OpenGL ES 1.1 is supported by EvasGL and GLView.

https://developer.tizen.org/development/guides/native-application/graphics/opengl-es

As I don't want to "root" the phone to get access to a native window, I'm going to investigate Tizen's permission model further to see if it's possible to gain access.

I've also ordered a Samsung Z3, to experiment with.

Regards,

Peter.

sh-4.1$ policytool
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server
 using ':0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java
:65)
        at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)

        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:7
4)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java:82)
        at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:126)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at java.awt.Toolkit$2.run(Toolkit.java:860)
        at java.awt.Toolkit$2.run(Toolkit.java:855)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
        at javax.swing.UIManager.getSystemLookAndFeelClassName(UIManager.java:61
1)
        at sun.security.tools.policytool.PolicyTool.<clinit>(PolicyTool.java:90)

sh-4.1$