<HTML>
<HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<div>Hello,</div>
<div>
<br /></div>
<div>Thanks for your response.</div>
<div>I am sorry if the link I attached was not visible to you. It's this one: <a href="https://wayland.freedesktop.org/xserver.html#heading_toc_j_6"><u><b>Xwayland Compilation</b></u></a>
<br /></div>
<div>
<br /></div>
<div>I don't know if my cross-build is wrong, because there were no errors during compilation. Can you please tell how should I check if it's compiled correctly or not?</div>
<div>
<br /></div>
<div>Also, how should I specify the DRM-backend explicitly? Right now, my weston.ini file looks like this:</div>
<div>
<br />
</div>
<div><blockquote><blockquote><blockquote><blockquote><blockquote><blockquote><blockquote><blockquote><font color="#0000FF">[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</font>
<br /></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote>
<br /></div>
<div>I have commented the xwayland entries because weston throws error on including them.
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div><font size="2"><b>On Tue, 26 Nov 2019 11:16:19 +0200, Pekka Paalanen wrote</b></font></div>
<font size="2">On Tue, 26
Nov 2019 10:01:38 +0530
<br />
"Devashish Tiwari" <devashish@cdot.in> wrote:
<br />
<br />
> Hi All,
<br />
>
<br />
> I have written a third party application that utilities SDL-X11 to
<br />
> draw a window.
<br />
>
<br />
> I have successfully cross-compiled Xwayland (that is used for X
<br />
> clients under Wayland) for my EVM. I have used instructions from this
<br />
> official website and did the cross-compilation. However, when I run
<br />
> the command:
<br />
>
<br />
> root@am57xx-evm:/# /mnt/Xwayland
<br />
<br />
Hi,
<br />
<br />
you are not supposed to run that by hand. Let Weston launch Xwayland
<br />
automatically instead. Weston will do that in any case with the
<br />
configuration below, which means you might have had two Xwayland's
<br />
running.
<br />
<br />
> a black screen appears on top of weston display on my EVM. I don't
<br />
> see any logs on command line. Also, I am not able to run my X11 based
<br />
> application or even simple X11 demo apps (like xeyes, xclock)
<br />
> cross-compiled for my EVM.
<br />
>
<br />
> As suggested in the above attached link, I even did changes
<br />
<br />
What link?
<br />
<br />
> to /etc/weston.ini file as -
<br />
>
<br />
> [core]
<br />
> xwayland=true
<br />
>
<br />
> [xwayland]
<br />
> path=/mnt/Xwayland
<br />
>
<br />
<br />
That looks ok.
<br />
<br />
> and I restarted weston to get following error:
<br />
>
<br />
> [02:19:21.709] weston 2.0.0
<br />
> <a href="http://wayland.freedesktop.org/" target="_blank">http://wayland.freedesktop.org</a>
<br />
> Bug reports to: bugs.freedesktop.org/enter_bug.cgi
<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 />
> [02:19:21.709] Command line: weston
<br />
> [02:19:21.709] OS: Linux, 4.14.79-ge669d52447, #1 SMP PREEMPT Sat Apr 6
02:23:36 UTC 2019, armv7l
<br />
> [02:19:21.709] Using config file '/etc//weston.ini'
<br />
> [02:19:21.710] Output repaint window is 7 ms maximum.
<br />
> [02:19:21.720] Loading module '/usr/lib/libweston-2/wayland-backend.so'
<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 />
> I have no idea, which part I did wrong. But I'd really appreciate if
<br />
> you guys can help me out.
<br />
<br />
You have two problems in that.
<br />
<br />
1. Your cross-build or runtime is somehow broken. The undefined symbol
<br />
does not exist and is not referenced anymore in Weston 2.0.0. You
<br />
probably have stale binaries around.
<br />
<br />
2. Wayland-backend is the wrong backend. The Wayland-backend is used
<br />
when you run Weston on top of another Wayland compositor in a window.
<br />
Just like the X11-backend is used for running Weston in a window on
<br />
Xorg. Use the DRM-backend instead to run "directly on hardware".
<br />
<br />
Neither of the two problems above are related to Xwayland at all.
<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>