11 views
ago in Platform Packages by
Hello, I have been following https://doc.embedded-wizard.de/getting-started-imx8-opengl-wayland?v=14.00 and trying to build the HelloWorld example for the target platform.

The main commands that I picked when I had multiple options:

DISTRO="fsl-imx-xwayland" MACHINE="imx8mnevk" source imx-setup-release.sh -b build

bitbake imx-image-core -c populate_sdk

After installing the SDK, generating the code of the HelloWorld and copying into GeneratedCode, I do

cd IMX8-OpenGL-Wayland/Application/Project

. /opt/fsl-imx-xwayland/6.12-styhead/environment-setup-armv8a-poky-linux

make

And I get the following:

-------------------------------------------------
Creating EmbeddedWizard-Linux-OpenGL-Wayland
-------------------------------------------------
Compiler Options: aarch64-poky-linux-gcc -march=armv8-a+crc+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/fsl-imx-xwayland/6.12-styhead/sysroots/armv8a-poky-linux -c -pipe -MT projectecho -MMD -MP -MF projectecho.d -O2 -Wall -DEW_USE_OPERATING_SYSTEM=1 -I../Source -I../GeneratedCode -I../../PlatformPackage/RTE -I../../PlatformPackage/RGBA8888 -I../../TargetSpecific -I=/usr/include -o projectecho
-------------------------------------------------
Creating object and library directories
-------------------------------------------------
make: *** No rule to make target '../Source/xdg-shell.c', needed by 'precompile'. Stop.

Is this something maybe common and you know what I could be doing wrong?

Many thanks.

1 Answer

0 votes
ago by
Hi giuspen,

building HelloWorld  should work doing these steps.
I assume, that you also installed and sourced the SDK as described on getting started, 'Preparing your Linux Build System'.
Maybe you missed the second '.' at the beginning of the call:
. . /opt/fsl-imx-xwayland/6.12-styhead/environment-setup-armv8a-poky-linux

One difference compared to our verification is another setting for 'MACHINE'. we are using: 'MACHINE=imx8mm-lpddr4-evk'. But I think ist should also work on imx8mnevk.
xdg-shell.c/.h is generated automatically during make process using 'xdg-shell.xml' with the tool 'wayland-scanner'
Please check, if '/usr/share/wayland-protocols/stable/xdg-shell' and also the tool 'wayland-scanner' are existing within your installed imx8 SDK. Maybe it is not part of the 'imx8mnevk' variant.

Best Regards,
Martin
ago by

Thanks Martin, I am trying to build imx-image-multimedia now instead of imx-image-core as apparently image core is lacking wayland-scanner. Yocto documentation was a bit misleading saying that imx-image-core supported Wayland, that tricked me. I will get back once I sort this out as others with the same issue may find this useful.

ago by
Yes, you're right. I'm also using 'bitbake imx-image-multimedia'.

Embedded Wizard Website | Privacy Policy | Imprint

...