<div dir="ltr">Hi Quentin.<div><br></div><div>I see. My suggestion related to simplify the build process on developer machines which doesn't have pre-installed native Wayland package. And also I think it would be good if wailand-scanner output will be generated by scanner which has the same version as target machine scanner.</div><div><br></div><div>Currently developers must have installed wayland package and it is not convenient if developer builds several targets for different CPU (and may be different versions of some SW packages) at the same time using cross environment.</div><div><br></div><div>(for example, GNU file also requires native file utility on developer machine, moreover it must have same version). I think not all needed tools can be implemented into toolchain like cross-compiler. Some of them can be built and added into DevEnv later on build time.</div><div><br></div><div>Any way It is up to you. I just suggest.</div><div><br></div><div>Best Regards,</div><div>Andrey K.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 8, 2016 at 11:17 AM, Quentin Glidic <span dir="ltr"><<a href="mailto:sardemff7+wayland@sardemff7.net" target="_blank">sardemff7+wayland@sardemff7.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 18/05/2016 14:55, Andrew Kosteltsev wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi guys,<br>
<br>
Currently during cross compilation of the wayland library the<br>
wayland-scanner utility is built by cross-gcc and then used on the<br>
developer machine which lead build error.<br>
<br>
I suggest to build development version, for example,<br>
$(top_builddir)/build-wayland-scanner and to use this utility during<br>
cross-buildin the wayland package.<br>
<br>
When build is done the user can copy this release of scanner utility<br>
into his toolchain or into his SDK for example wit $(host-triplet) preffix<br>
<br>
cp $(top_builddir)/build-wayland-scanner<br>
SDK/bin/$(host_triplet)-wayland-scanner<br>
<br>
Then the user can make use this cross-wayland-scanner in his SDK, for<br>
example, like follow:<br>
<br>
$ ../MesaLib-10.3.4/configure<br>
WAILAND_SCANNER=$(SDK_DIR)/bin/$(target)-wayland-scanner<br>
<br>
I have attached the patch for you. Please look at this patch and please<br>
make decision related to cross building the wayland.<br>
<br>
Of course after applying attached patch we have to reconfigure src package;<br>
<br>
$ autoreconf -i<br>
</blockquote>
<br></span>
NAK from me on this patch.<br>
<br>
wayland-scanner does not output host-specific code, so you should simply use the one in the PATH of your build machine, via --with-host-scanner.<br>
<br>
Cheers,<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
<br>
Quentin “Sardem FF7” Glidic<br>
</font></span></blockquote></div><br></div>