This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM62P: example program(drawing and media play) issue in Wayland(weston)

Part Number: PROCESSOR-SDK-AM62P


Tool/software:

How do I find the power-on demo source code or is there a sample weston program to understand the display communication protocol?

I was running the AVM program and I couldn't draw

wayland can't find wl_shell

  • Hi,

    wl_shell is deprecated and you have to use xdg_surface. Refer to the following example: https://gitlab.freedesktop.org/wayland/weston/-/blob/11.0/clients/simple-egl.c?ref_type=heads.

    Regards,
    Krunal

  • Oh, thank you for your clarification。

    by the way,the original use of this method encountered the xdg library can not find the problem

    I would like to ask again, out of the box version (tisdk-default-image-am62pxx-evm.wic.xz) file system is required to compile weston library by myself?

    Or what classes I missed?

  • Hi,

    I am not sure I understand your question but our filesystem is generated based on Yocto. The SDK9.2 is based on Kirkstone and that will fetch weston 10 along with all it's related dependency.

    Regards,
    Krunal

  • hi,

    base :default-image;

    Are there any useful question points you can draw from this information?

    The code is roughly as follows:(A blank window appears)

    ①wayland-scanner compiles the xdg-shell-client-protocol.h library (xdg-shell-client-protocol.h was not found)and still doesn't recognize some of the variable names it defines....

    ②Connecting to weston's git library, meson  builds weston always interferes with the.cross file in AM62 ...

    I amI'm a new guy, so hope you can give me some advice!

    thanks!

  • Hi,

    I am building an example for another project and here are the steps that I used:

    Step 1: First build a target image through Yocto
    Step 2: Build sysroots using the command: MACHINE=am62pxx-evm bitbake build-sysroots
    Step 3: Clone weston and checkout branch 10.0
    Step 4: Copy the following meson cross file and modify sysroot_base path.
    meson.cross

    Step 5: Build with following command:

    Fullscreen
    1
    meson build/ --cross-file=meson.cross --prefix=/usr --buildtype=plain --bindir=bin --sbindir=sbin --datadir=share --libdir=lib --libexecdir=libexec --includedir=include --mandir=share/man --infodir=share/info --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/com --wrap-mode=nodownload -Dpipewire=false -Dsimple-clients=all -Ddemo-clients=true -Dcolor-management-colord=false -Drenderer-gl=true -Ddeprecated-backend-fbdev=false -Dbackend-headless=false -Dimage-jpeg=true -Dbackend-drm=true -Ddeprecated-weston-launch=false -Dlauncher-libseat=false -Dcolor-management-lcms=false -Dbackend-rdp=false -Dremoting=false -Dscreenshare=true -Dshell-desktop=true -Dshell-fullscreen=true -Dshell-ivi=true -Dsystemd=true -Dlauncher-logind=true -Dbackend-drm-screencast-vaapi=false -Dbackend-wayland=true -Dimage-webp=false -Dbackend-x11=false -Dxwayland=false

    Step 6: Run ninja -C build/
    Step 7: Copy binaries from build/clients directory

    Regards,
    Krunal