Yocto and VCPKG

Viewed 26

I have a yocto sdk to build for and I am trying to make it work with vcpkg, I wrote my triplet file

✦ ❯ cat triples/arm64-linux.cmake

    set(VCPKG_TARGET_ARCHITECTURE arm64)
    set(VCPKG_CRT_LINKAGE dynamic)
    set(VCPKG_LIBRARY_LINKAGE static)
    
    set(VCPKG_CMAKE_SYSTEM_NAME Linux)
    
    set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE /opt/tdx-xwayland/5.6.0/sysroots/x86_64-tdxsdk-linux/usr/share/cmake/OEToolchainConfig.cmake)

but when i invoke vcpkg the first pkg is correctly built but the second doesn't find the dependency: e.g.

./vcpkg install spdlog:arm64-linux 

....

    CMake Error at /home/dev/verdinpkg/vcpkg/scripts/buildsystems/vcpkg.cmake:829 (_find_package):
      Could not find a package configuration file provided by "fmt" with any of
      the following names:
    
        fmtConfig.cmake
        fmt-config.cmake
    
      Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
      to a directory containing one of the above files.  If "fmt" provides a
      separate development package or SDK, be sure it has been installed.
    Call Stack (most recent call first):
      CMakeLists.txt:195 (find_package)

those fmt_config are inside vcpkg/buildtrees/fmt/arm64-linux-rel

Has anyone succeded?

0 Answers
Related