Login  Register

How to bypass X11 init on linux

Posted by Olivier Chalouhi on Nov 04, 2016; 10:15pm
URL: https://forum.jogamp.org/How-to-bypass-X11-init-on-linux-tp4037380.html

Hi,

I'm trying to use Jogl on a linux system which doesn't have X11, by using the EGL newt driver, however, in NativeWindowFactory, a call is made to initSingletonNativeImpl, which tries and initialize the X11Util class.This in turn fails, as the systems doesn't even have the x11 libraries (Exception in thread "main" java.lang.UnsatisfiedLinkError: /var/tmp/jogamp_0000/file_cache/jln5986866975066636808/jln8589580094999953764/natives/linux-armv6hf/libnativewindow_x11.so: libX11.so.6: cannot open shared object file: No such file or directory)

is there a way to disable this call ? I'm setting the -Dnativewindows.ws.name=.egl , but that doesn't seem to be enough.

Looking at the code, I can't find a way to do what I want via properties.

Thanks in advance,

Olivier