更新时间:2023-09-18 09:08:10
假设您正在使用基于图像的SDK,即构建使用 bitbake< image> -c populate_sdk
,将以下内容添加到 image.bb
应该可以解决:
Assuming that you're using the image based SDK, i.e. building it with bitbake <image> -c populate_sdk
, adding the following toimage.bb
should fix it:
TOOLCHAIN_HOST_TASK += "nativesdk-cmake"
那应该给你SDK中的 OEToolchainConfig.cmake
文件。在获取SDK环境文件后, cmake
将成为 cmake -DCMAKE_TOOLCHAIN_FILE = $ OECORE_NATIVE_SYSROOT / usr / share / cmake / OEToolchainConfig.cmake的别名。 code>进一步帮助您的开发人员。
That should give you a OEToolchainConfig.cmake
file in the SDK. After sourcing the SDK environment file, cmake
will be an alias to cmake -DCMAKE_TOOLCHAIN_FILE=$OECORE_NATIVE_SYSROOT/usr/share/cmake/OEToolchainConfig.cmake
to further help your developers.