<div dir="ltr">I'm wondering how you are supposed to use the .pc file when cross-compiling weston for example. Typically you would have the following directory layout:<div><br></div><div>wayland build for host:</div><div>
<br class="">host/usr/bin/wayland-scanner</div><div><div>host/usr/lib/pkgconfig/wayland-scanner.pc</div><div>host/usr/share/aclocal/wayland-scanner.m4</div><div>host/usr/share/wayland/wayland.dtd</div><div>host/usr/share/wayland/<a href="http://wayland-scanner.mk">wayland-scanner.mk</a></div>
<div>host/usr/share/wayland/wayland.xml</div></div><div><br></div><div>wayland build for target (configured with --disable-scanner):</div><div><br></div><div><div>target/usr/include/wayland-client.h</div><div>target/usr/include/wayland-client-protocol.h</div>
<div>target/usr/include/wayland-cursor.h</div><div>target/usr/include/wayland-egl.h</div><div>target/usr/include/wayland-server.h</div><div>target/usr/include/wayland-server-protocol.h</div><div>target/usr/include/wayland-util.h</div>
<div>target/usr/include/wayland-version.h</div><div>target/usr/lib/libwayland-client.a</div><div>target/usr/lib/<a href="http://libwayland-client.la">libwayland-client.la</a></div><div>target/usr/lib/libwayland-client.so.0.1.0</div>
<div>target/usr/lib/libwayland-cursor.a</div><div>target/usr/lib/<a href="http://libwayland-cursor.la">libwayland-cursor.la</a></div><div>target/usr/lib/libwayland-cursor.so.0.0.0</div><div>target/usr/lib/libwayland-server.a</div>
<div>target/usr/lib/<a href="http://libwayland-server.la">libwayland-server.la</a></div><div>target/usr/lib/libwayland-server.so.0.1.0</div><div>target/usr/lib/pkgconfig/wayland-client.pc</div><div>target/usr/lib/pkgconfig/wayland-cursor.pc</div>
<div>target/usr/lib/pkgconfig/wayland-server.pc</div><div>target/usr/share/aclocal/wayland-scanner.m4</div><div>target/usr/share/wayland/wayland.dtd</div><div>target/usr/share/wayland/<a href="http://wayland-scanner.mk">wayland-scanner.mk</a></div>
<div>target/usr/share/wayland/wayland.xml</div></div><div><br></div><div>Weston must be configured with PKG_CONFIG_LIBDIR=target/lib/pkgconfig, so that the host pc files are not used. This prevents detecting wayland-scanner.pc in the configure, making the build fail as wayland-scanner.pc is needed to find the DTD.</div>
<div><br></div><div>What's the right way to make it work ?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 19, 2013 at 1:57 PM, Emilio Pozuelo Monfort <span dir="ltr"><<a href="mailto:pochu27@gmail.com" target="_blank">pochu27@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ping? wayland-scanner hasn't been dropped and the .pc location is still bogus.<br>
<div class="HOEnZb"><div class="h5"><br>
On 20/08/13 00:58, Kristian Høgsberg wrote:<br>
> On Fri, Aug 16, 2013 at 03:55:52PM +0100, Daniel Stone wrote:<br>
>> Hi,<br>
>><br>
>> On 16 August 2013 15:50, David Herrmann <<a href="mailto:dh.herrmann@gmail.com">dh.herrmann@gmail.com</a>> wrote:<br>
>>> On Fri, Aug 16, 2013 at 2:26 PM, Daniel Stone <<a href="mailto:daniel@fooishbar.org">daniel@fooishbar.org</a>> wrote:<br>
>>>> $(datadir) rather than $(libdir), is for architecture-independent data.<br>
>>>> pkg-config files should only be installed there if they're shareable<br>
>>>> across architectures, e.g. headers/data only, which wayland-scanner is<br>
>>>> not.  Move it to $(libdir) with the other pkg-config files.<br>
>>><br>
>>> Yepp, we should definitely use pkgconfig_DATA.<br>
>>> Reviewed-by: David Herrmann <<a href="mailto:dh.herrmann@gmail.com">dh.herrmann@gmail.com</a>><br>
>><br>
>> Of course, this all becomes irrelevant if the patch to drop<br>
>> wayland-scanner.{m4,mk,pc} gets dropped.<br>
><br>
> And I'm definitely in favor of just dropping it.<br>
><br>
> Kristian<br>
><br>
>> Cheers,<br>
>> Daniel<br>
>> _______________________________________________<br>
>> wayland-devel mailing list<br>
>> <a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
>> <a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
> _______________________________________________<br>
> wayland-devel mailing list<br>
> <a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
><br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Arnaud Vrac
</div>