Add COMPATIBLE_HOST to ospray, embree, openvkl to
fix build error when using musl, caused glfw dependecy

Signed-off-by: Davide Gardenal <[email protected]>
---
 ...dd-COMPATIBLE_HOST-to-fix-build-erro.patch | 28 +++++++++++++++++++
 .../recipes-oneapi/embree/embree_3.13.3.bb    |  1 +
 .../recipes-oneapi/openvkl/openvkl_1.2.0.bb   |  1 +
 .../recipes-oneapi/ospray/ospray_2.9.0.bb     |  1 +
 4 files changed, 31 insertions(+)
 create mode 100644 
0001-open-model-zoo-add-COMPATIBLE_HOST-to-fix-build-erro.patch

diff --git a/0001-open-model-zoo-add-COMPATIBLE_HOST-to-fix-build-erro.patch 
b/0001-open-model-zoo-add-COMPATIBLE_HOST-to-fix-build-erro.patch
new file mode 100644
index 00000000..76c9fecb
--- /dev/null
+++ b/0001-open-model-zoo-add-COMPATIBLE_HOST-to-fix-build-erro.patch
@@ -0,0 +1,28 @@
+From 5fd76c6511749a60874b59e08f662725f8a392b2 Mon Sep 17 00:00:00 2001
+From: Davide Gardenal <[email protected]>
+Date: Mon, 4 Apr 2022 15:07:10 +0200
+Subject: [PATCH] open-model-zoo: add COMPATIBLE_HOST to fix build error
+
+Add COMPTIBLE_HOST to fix a build error when using musl,
+due to openvino-inference-engine dependency
+
+Signed-off-by: Davide Gardenal <[email protected]>
+---
+ .../recipes-support/opencv/open-model-zoo_2021.4.2.bb            | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git 
a/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2021.4.2.bb
 
b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2021.4.2.bb
+index 0b18e03e..5c410db4 100644
+--- 
a/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2021.4.2.bb
++++ 
b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2021.4.2.bb
+@@ -33,6 +33,7 @@ RDEPENDS:${PN} += " \
+ "
+ 
+ COMPATIBLE_HOST = '(x86_64).*-linux'
++COMPATIBLE_HOST:libc-musl = "null"
+ 
+ EXTRA_OECMAKE += " \
+                  -DIE_MAIN_SOURCE_DIR=${B} \
+-- 
+2.32.0
+
diff --git 
a/dynamic-layers/openembedded-layer/recipes-oneapi/embree/embree_3.13.3.bb 
b/dynamic-layers/openembedded-layer/recipes-oneapi/embree/embree_3.13.3.bb
index 434f4ee5..5dc4cc8d 100644
--- a/dynamic-layers/openembedded-layer/recipes-oneapi/embree/embree_3.13.3.bb
+++ b/dynamic-layers/openembedded-layer/recipes-oneapi/embree/embree_3.13.3.bb
@@ -18,6 +18,7 @@ SRC_URI = 
"git://github.com/embree/embree.git;protocol=https;branch=master \
 SRCREV = "0835461a5dd1659696524303dc9cb2f2300ae156"
 
 COMPATIBLE_HOST = '(x86_64).*-linux'
+COMPATIBLE_HOST:libc-musl = "null"
 
 DEPENDS = "tbb jpeg libpng glfw ispc-native"
 
diff --git 
a/dynamic-layers/openembedded-layer/recipes-oneapi/openvkl/openvkl_1.2.0.bb 
b/dynamic-layers/openembedded-layer/recipes-oneapi/openvkl/openvkl_1.2.0.bb
index 043c37ab..4691b07f 100644
--- a/dynamic-layers/openembedded-layer/recipes-oneapi/openvkl/openvkl_1.2.0.bb
+++ b/dynamic-layers/openembedded-layer/recipes-oneapi/openvkl/openvkl_1.2.0.bb
@@ -23,6 +23,7 @@ SRC_URI = 
"git://github.com/openvkl/openvkl.git;protocol=https;branch=master \
 SRCREV = "5da393e9edc8becebbf41c9bb6cb9b87aa0b1e93"
 
 COMPATIBLE_HOST = '(x86_64).*-linux'
+COMPATIBLE_HOST:libc-musl = "null"
 
 DEPENDS = "ispc-native rkcommon embree"
 
diff --git 
a/dynamic-layers/openembedded-layer/recipes-oneapi/ospray/ospray_2.9.0.bb 
b/dynamic-layers/openembedded-layer/recipes-oneapi/ospray/ospray_2.9.0.bb
index 8c1586e8..cd70ecd8 100644
--- a/dynamic-layers/openembedded-layer/recipes-oneapi/ospray/ospray_2.9.0.bb
+++ b/dynamic-layers/openembedded-layer/recipes-oneapi/ospray/ospray_2.9.0.bb
@@ -17,6 +17,7 @@ SRC_URI = 
"git://github.com/ospray/ospray.git;protocol=https;branch=master \
 SRCREV = "bc891f413f5657a31faa273992fda61d3666eef7"
 
 COMPATIBLE_HOST = '(x86_64).*-linux'
+COMPATIBLE_HOST:libc-musl = "null"
 
 DEPENDS = "rkcommon ispc-native openvkl embree"
 
-- 
2.32.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7481): 
https://lists.yoctoproject.org/g/meta-intel/message/7481
Mute This Topic: https://lists.yoctoproject.org/mt/90241163/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to