<HTML>
<HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<div>
<div><i>Hello,</i></div>
<div><i>
<br /></i></div>
<div><i>Thanks for your response.</i><b>
<br /></b></div>
<div>
<br /></div>
<div>I rebooted my EVM after making changes to <b>/etc/weston.ini file </b>and I
found out in /var/log/weston.log that it is using DRM-backend now. When I used
to run ./Xwayland by hand it used to take
Wayland-backend.</div>
<div>However, it still shows some error regarding EGL library, although I have
already specified
LD_LIBRARY_PATH.
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>Date: 2019-04-06
UTC
<br />[01:57:12.089] weston
2.0.0
<br />
http://wayland.freedesktop.org
<br /> Bug reports to:
https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=2.0.0
<br /> Build: 1.99.94-2-g4c4f13d configure.ac: bump
to version 2.0.0 for the official release (2017-02-24 16:19:03
-0800)
<br />[01:57:12.089] Command line: weston
--idle-time=0
<br />[01:57:12.089] OS: Linux, 4.14.79-ge669d52447, #1 SMP PREEMPT Sat Apr 6
02:23:36 UTC 2019,
armv7l
<br />[01:57:12.090] Using config file
'/etc//weston.ini'
<br />[01:57:12.090] Output repaint window is 7 ms
maximum.
<br />[01:57:12.090] Loading module
'/usr/lib/libweston-2/drm-backend.so'
<br />[01:57:12.091] initializing drm
backend
<br />[01:57:12.092] using
/dev/dri/card0
<br />[01:57:12.093] Loading module
'/usr/lib/libweston-2/gl-renderer.so'
<br />failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object
file: No such file or
directory
<br />failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared
object file: No such file or
directory
<br />loaded module :
gbm_pvr.so
<br />found valid GBM backend :
gbm_pvr.so
<br />[01:57:12.114] EGL client extensions:
EGL_EXT_client_extensions
<br /> EGL_EXT_platform_base
EGL_KHR_client_get_all_proc_addresses
<br /> EGL_KHR_debug EGL_EXT_platform_wayland
EGL_EXT_platform_x11
<br />
EGL_MESA_platform_gbm
<br />[01:57:12.114] failed to initialize
display
<br />[01:57:12.114] EGL error state: EGL_NOT_INITIALIZED
(0x3001)
<br />[01:57:12.114] failed to initialize
egl
<br />[01:57:12.140] fatal: failed to create compositor
backend
<br />
<br /></div>
<div>
<br /></div>
<div><b>My /etc/weston.ini file looks like
this:</b></div>
<div>
<br /></div>
<div>[core]
<br />require-input=false
<br />xwayland=true
<br />
<br />[shell]
<br />locking=false
<br />animation=zoom
<br />panel-position=top
<br />startup-animation=fade
<br />
<br />[screensaver]
<br /># Uncomment path to disable
screensaver
<br />#path=@libexecdir@/weston-screensaver
<br />
<br />[xwayland]
<br />path=/usr/local/XORG/bin/Xwayland
<br /></div>
<div>
<br /></div>
<div>Please note that I have not set any environment variables manually. I have
only copied the libraries required by Xwayland on my EVM and added the path to
LD_LIBRARY_PATH.</div>
<div>The values of WAYLAND_DISPLAY & DISPLAY is null on my system which
makes me think that it takes the default
values.</div>
<div>
<br /></div>
<div>Also, if I undo the changes to <b>/etc/weston.ini</b> file and comment the
<b>xwayland entries</b>, weston works like a cake. I have also attached the logs with this email when weston runs successfully without xwayland.
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>Kindly see if you can help.
</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div><font size="2"><b>On Tue, 26 Nov 2019 14:46:35 +0200, Pekka Paalanen wrote</b></font></div>
<font size="2">On Tue, 26
Nov 2019 17:10:35 +0530
<br />
"Devashish Tiwari" <devashish@cdot.in> wrote:
<br />
<br />
> Hello,
<br />
>
<br />
> Thanks for your response.
<br />
>
<br />
> I am sorry if the link I attached was not visible to you. It's this
<br />
> one: Xwayland Compilation
<br />
<br />
Hi,
<br />
<br />
sorry, I don't do HTML emails, so there is no link in that.
<br />
<br />
> I don't know if my cross-build is wrong, because there were no errors
<br />
> during compilation. Can you please tell how should I check if it's
<br />
> compiled correctly or not?
<br />
<br />
I have no way of knowing. All I know is that Weston 2.0.0 source code
<br />
does not have a function named weston_compositor_init(), not defined
<br />
nor called. But your error message referred to such function, so I can
<br />
only assume that you are not running what you intended to.
<br />
<br />
>
<br />
> Also, how should I specify the DRM-backend explicitly? Right now, my
<br />
> weston.ini file looks like this:
<br />
<br />
See 'man weston' and 'man weston.ini' for how to specify the backend.
<br />
<br />
The DRM-backend should be the default though, unless you configured the
<br />
build to use something else, or you have WAYLAND_DISPLAY or DISPLAY
<br />
environment variables defined.
<br />
<br />
Defining WAYLAND_DISPLAY environment variable manually would be a
<br />
mistake that could cause Weston to choose the Wayland-backend.
<br />
<br />
>
<br />
> [core]
<br />
> require-input=false
<br />
> #xwayland=true
<br />
>
<br />
> [shell]
<br />
> locking=false
<br />
> animation=zoom
<br />
> panel-position=top
<br />
> startup-animation=fade
<br />
>
<br />
> [screensaver]
<br />
> # Uncomment path to disable screensaver
<br />
> #path=@libexecdir@/weston-screensaver
<br />
>
<br />
> [xwayland]
<br />
> #path=/mnt/Xwayland
<br />
>
<br />
> I have commented the xwayland entries because weston throws error on
including them.
<br />
<br />
What errors?
<br />
<br />
If you refer to
<br />
<br />
> > [02:19:21.735] Failed to load module:
/usr/lib/libweston-2/wayland-backend.so: undefined symbol:
weston_compositor_init
<br />
> > [02:19:21.735] fatal: failed to create compositor backend
<br />
<br />
then those are not caused by the xwayland entries.
<br />
<br />
Thanks,
<br />
pq
<br />
<br />
<br />--
<br />
<br />
Thanks & Regards,
<br />
<br />
Devashish Tiwari
<br />
Fault Tolerance
<br />
#8587
<br />
<br />
</font>
</BODY>
</HTML>