Re: [agl-dev-community] SDK with wayland scanner

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bogdan,

On 6/27/20 8:03 PM, ilies bogdan via lists.automotivelinux.org wrote:
> Hi Marius,
> 
> Thank you for the explanation. 
> I saw that patch but I did not know how to use it.
> I think that I was not able to find it in sdk as I used an image
> different from agl-image-graphical-qt5-crosssdk.
> Today I noticed that this image includes wayland-scanner as part of
> meta-agl-profile-graphical-qt5/recipes-platform/images/agl-image-graphical-qt-crosssdk.inc
> I am building that image and check to see if available then.
> Isn't agl-compositor generating the headers for agl-shell and
> agl-desktop-shell so that they can be used from there?

It does, but only the server ones, which won't be really useful for
clients, even if we were to install them, which we do not. We should
always use the XMLs instead of the generated headers as to be sure that
both the client/server use the same thing. The compositor has a
agl-compositor pc file for you to use in order to retrieve the correct
path of the protocols. Would suggest to use that instead of copy-pasta
them in your client.

Unfortunately applications in AGL don't really do that (I have Jira
ticket for this) but you're not planning on using that anyway, so using
the SDK you should have the PKG_CONFIG_* paths exported correctly.

Would be nice if you could get back either way to see if building that
image does the trick.

I do remember in the past that I've used the host's wayland-scanner to
generate the client headers. It is less than ideal, but it works, as the
tool is pretty stable at this point. Use this as your last approach.
Mixing SDK with host tools might be a bit finicky.

> 
> Regards,
> Bogdan Ilies
> 
> <https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature>
> 
>     On Sat, 27 Jun 2020 at 16:36, Marius Vlad
>     <marius.vlad@xxxxxxxxxxxxx> wrote:
>     Hi,
> 
>     wayland-scanner is part of wayland which will need to be built twice in
>     order to use it from the SDK. The scanner is present in the SDK just
>     that it will (only) include the target one.
> 
>     There's a wayland-native package which I guess OE/poky/yocto uses it to
>     first bootstrap wayland, using the native one to build/generate the
>     headers need build those headers.
> 
>     Might want to try out https://patchwork.openembedded.org/patch/154282/
>     and see if that works?
> 
>     IDK, maybe we can have a bbappend recipe for wayland and include that if
>     the above seem to work?
> 
> 
>     On 6/26/20 12:24 AM, ilies bogdan via lists.automotivelinux.org wrote:
>     > Hi,
>     >
>     > I have successfully build an image containing agl-compositor and in
>     > order to experiment with this I would need wayland-scanner as part of
>     > SDK so that I can generate agl-shell and agl-shell-desktop-client
>     > headers from agl-shell.xml and agl-shell-desktop.xml respectively.
>     > Does anybody know how can I include it in SDK?
>     >
>     > Or can I include the headers somehow into SDK?
>     >
>     > Thank you,
>     > Bogdan Ilies
> 
>     >
>     >
>     <https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers⁡_wl=ym⁡_sub1=Internal⁡_sub2=Global_YGrowth⁡_sub3=EmailSignature
>     <https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature>>
>     >
> 
>     -- 
>     Marius Vlad
> 
> 
> 
> 

-- 
Marius Vlad


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8463): https://lists.automotivelinux.org/g/agl-dev-community/message/8463
Mute This Topic: https://lists.automotivelinux.org/mt/75112644/2167316
Group Owner: agl-dev-community+owner@xxxxxxxxxxxxxxxxxxxxxxxxx
Unsubscribe: https://lists.automotivelinux.org/g/agl-dev-community/leave/4543822/883735764/xyzzy  [list-automotive-discussions82@xxxxxxxxxxx]
-=-=-=-=-=-=-=-=-=-=-=-

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux