Thanks, I'll give this a try in the next few days and assuming everything
passes, I'll try to get scarthgap updated with it.
--Mark
On 1/28/25 9:20 AM, Toby Flynn via lists.yoctoproject.org wrote:
When python3-pybind11 is installed from pip it does not include or
configure the cmake modules to find pybind11. This changes the install
process to be the same as python3-pybind11 in Yocto core. This fixes an
error
with software that compiles using cmake and pybind11-native. This has
been tested and allowed GNU Radio OOTs modules to compile. The error
message wihout the change was:
CMake Error at CMakeLists.txt:5 (find_package):
By not providing "Findpybind11.cmake" in CMAKE_MODULE_PATH this
project has
asked CMake to find a package configuration file provided by
"pybind11",
but CMake did not find one.
Signed-off-by: Toby Flynn <campingandski...@gmail.com>
---
.../python/python3-pybind11_2.13.1.bb | 31 +++++++++++++++++--
1 file changed, 28 insertions(+), 3 deletions(-)
diff --git
a/meta-xilinx-core/recipes-devtools/python/python3-pybind11_2.13.1.bb
b/meta-xilinx-core/recipes-devtools/python/python3-pybind11_2.13.1.bb
index 3c03069b..0a259ba1 100644
--- a/meta-xilinx-core/recipes-devtools/python/python3-pybind11_2.13.1.bb
+++ b/meta-xilinx-core/recipes-devtools/python/python3-pybind11_2.13.1.bb
@@ -2,8 +2,33 @@ SUMMARY = "Seamless operability between C++11 and Python"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=774f65abd8a7fe3124be2cdf766cd06f"
-SRC_URI[sha256sum] = "65be498b1cac516161add1508e65375674916bebf2570d057dc9c3c7bcbbc7b0"
+DEPENDS = "\
+ python3-cmake-native \
+ python3-ninja-native \
+"
+SRCREV = "941f45bcb51457884fa1afd6e24a67377d70f75c"
-inherit pypi python_setuptools_build_meta
+SRC_URI = "\
+ git://github.com/pybind/pybind11.git;branch=stable;protocol=https \
+"
-BBCLASSEXTEND += "native"
+S = "${WORKDIR}/git"
+
+inherit cmake python_setuptools_build_meta
+
+XTRA_OECMAKE = "-DPYBIND11_TEST=OFF"
+
+do_configure:append() {
+ cmake_do_configure
+}
+
+do_compile:append() {
+ cmake_do_compile
+}
+
+do_install:append() {
+ cmake_do_install
+}
+
+
+BBCLASSEXTEND += "native nativesdk"
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5542):
https://lists.yoctoproject.org/g/meta-xilinx/message/5542
Mute This Topic: https://lists.yoctoproject.org/mt/110860290/21656
Group Owner: meta-xilinx+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-