Hello, I'm trying to migrate from CMake to Meson and I have an issue with building via SDK. >From the beginning, I have a working project. It builds via bitbake and SDK >then I migrated to Meson. Currently, my recipe builds via bitbake, but in generated SDK it doesn't see cmake wihout setting CMAKE environment variable and than it doesn't see spdlog.
bzo@WS-5CY5LS3:/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/github/xbrtszstk/xhello$ meson setup build meson-wrapper: Running meson with setup options: " --cross-file=/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/yocto/xhello/radxa-zero-3w/sdk/sysroots/x86_64-xwaresdk-linux/usr/share/meson/aarch64-xware-linux-meson.cross --native-file=/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/yocto/xhello/radxa-zero-3w/sdk/sysroots/x86_64-xwaresdk-linux/usr/share/meson/meson.native " The Meson build system Version: 1.6.0 Source dir: /media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/github/xbrtszstk/xhello Build dir: /media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/github/xbrtszstk/xhello/build Build type: cross build Project name: xhello Project version: undefined C++ compiler for the host machine: aarch64-xware-linux-g++ -mcpu=cortex-a55+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/yocto/xhello/radxa-zero-3w/sdk/sysroots/cortexa55-xware-linux (gcc 14.2.0 "aarch64-xware-linux-g++ (GCC) 14.2.0") C++ linker for the host machine: aarch64-xware-linux-g++ -mcpu=cortex-a55+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/yocto/xhello/radxa-zero-3w/sdk/sysroots/cortexa55-xware-linux ld.bfd 2.43.1.20241111 Compiler for language cpp for the build machine not found. Build machine cpu family: x86_64 Build machine cpu: x86_64 Host machine cpu family: x86_64 Host machine cpu: x86_64 Target machine cpu family: x86_64 Target machine cpu: x86_64 Found pkg-config: YES (/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/yocto/xhello/radxa-zero-3w/sdk/sysroots/x86_64-xwaresdk-linux/usr/bin/pkg-config) 0.29.2 Found CMake: NO Run-time dependency spdlog found: NO (tried pkgconfig) client/meson.build:3:15: ERROR: Dependency "spdlog" not found, tried pkgconfig A full log can be found at /media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/github/xbrtszstk/xhello/build/meson-logs/meson-log.txt bzo@WS-5CY5LS3:/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/github/xbrtszstk/xhello$ cmake --version cmake version 3.31.0 CMake suite maintained and supported by Kitware (kitware.com/cmake). bzo@WS-5CY5LS3:/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/github/xbrtszstk/xhello$ export CMAKE=$(which cmake) bzo@WS-5CY5LS3:/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/github/xbrtszstk/xhello$ $CMAKE --version cmake version 3.31.0 CMake suite maintained and supported by Kitware (kitware.com/cmake). bzo@WS-5CY5LS3:/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/github/xbrtszstk/xhello$ meson setup build meson-wrapper: Running meson with setup options: " --cross-file=/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/yocto/xhello/radxa-zero-3w/sdk/sysroots/x86_64-xwaresdk-linux/usr/share/meson/aarch64-xware-linux-meson.cross --native-file=/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/yocto/xhello/radxa-zero-3w/sdk/sysroots/x86_64-xwaresdk-linux/usr/share/meson/meson.native " The Meson build system Version: 1.6.0 Source dir: /media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/github/xbrtszstk/xhello Build dir: /media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/github/xbrtszstk/xhello/build Build type: cross build Project name: xhello Project version: undefined C++ compiler for the host machine: aarch64-xware-linux-g++ -mcpu=cortex-a55+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/yocto/xhello/radxa-zero-3w/sdk/sysroots/cortexa55-xware-linux (gcc 14.2.0 "aarch64-xware-linux-g++ (GCC) 14.2.0") C++ linker for the host machine: aarch64-xware-linux-g++ -mcpu=cortex-a55+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/yocto/xhello/radxa-zero-3w/sdk/sysroots/cortexa55-xware-linux ld.bfd 2.43.1.20241111 Compiler for language cpp for the build machine not found. Build machine cpu family: x86_64 Build machine cpu: x86_64 Host machine cpu family: x86_64 Host machine cpu: x86_64 Target machine cpu family: x86_64 Target machine cpu: x86_64 Found pkg-config: YES (/media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/yocto/xhello/radxa-zero-3w/sdk/sysroots/x86_64-xwaresdk-linux/usr/bin/pkg-config) 0.29.2 Found CMake: /media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/yocto/xhello/radxa-zero-3w/sdk/sysroots/x86_64-xwaresdk-linux/usr/bin/cmake (3.31.0) Run-time dependency spdlog found: NO (tried pkgconfig and cmake) client/meson.build:3:15: ERROR: Dependency "spdlog" not found, tried pkgconfig and cmake A full log can be found at /media/bzo/a3f9a70c-8792-4790-ba69-b917b7cfaeed/github/xbrtszstk/xhello/build/meson-logs/meson-log.txt DO you now where the issue can be?
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64475): https://lists.yoctoproject.org/g/yocto/message/64475 Mute This Topic: https://lists.yoctoproject.org/mt/110240318/21656 Mute #cmake:https://lists.yoctoproject.org/g/yocto/mutehashtag/cmake Mute #sdk:https://lists.yoctoproject.org/g/yocto/mutehashtag/sdk Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-