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.

SK-AM62P-LP: glmark2-es2-wayland compilation procedure

Part Number: SK-AM62P-LP

Tool/software:

SDK Version - ti-processor-sdk-linux-am62pxx-evm-10.00.07.04

I can able to run the glmark2-es2-wayland application binary provided as a part of SDK.

I am planning to compile the standard glmark2 source for wayland-glesv2 -> https://github.com/glmark2/glmark2/tree/2023.01

I succeed in compiling the source but while running the application I am getting errors related to EGL.

I also searched for the source of glmark2-es2-wayland in TI Git Repositories, but it is not available.

How to proceed further?

  • Please mention what steps you did in detail and please provide logs of the error you saw.

  • Dear Divyansh Mittal,

    glmark2 source : https://github.com/glmark2/glmark2/tree/2023.01

    Build Steps in target SK-AM62P-LP :

    meson setup build -Dflavor=wayland-glesv2

    ninja -C build -j4

    ninja -C build install

    It is getting compiled successfully, while running it is throwing the following errors,

    root@am62pxx-evm:~/glmark2-ti/build/src# ./glmark2-es2-wayland
    Error: Failed to find suitable EGL config
    Error: Error: Couldn't get GL visual config!
    Error: main: Could not initialize canvas

    Regards,

    Harithan S

  • Hi,

    Glmark is compiled as part of Yocto and here is the recipe developed by the community(not TI): https://github.com/openembedded/meta-openembedded/blob/scarthgap/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb

    In terms of instructions, here are my steps from few months ago:

    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

  • Hi Krunal Bhargav34,

    I made the compilation as per Yocto and it solved my issue.

    Thanks & Regards,

    Harithan S