📅  最后修改于: 2022-03-11 14:56:07.384000             🧑  作者: Mango
My work around (for now, until yocto is verified on Ubuntu 20.04) were to tell CMake where the Phyton executable is located:
In python3-pybind11_2.5.0.bb recipe alter the EXTRA_OECMAKE variable like:
EXTRA_OECMAKE = "-DPYBIND11_TEST=OFF \
-DPYTHON_EXECUTABLE=${RECIPE_SYSROOT_NATIVE}/usr/bin/python3-native/python3.7 \
"