From 2e90a00cbc431c515f203e9cda4351bd0a4c2a79 Mon Sep 17 00:00:00 2001 From: Dmitry Rozhkov Date: Mon, 10 Apr 2017 14:21:31 +0300 Subject: [PATCH] tf: disable python support for python3-based ROS tf supports only python2 thus disable it if we build python3-based ROS. Signed-off-by: Dmitry Rozhkov --- recipes-ros/geometry/tf_1.11.8.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-ros/geometry/tf_1.11.8.bb b/recipes-ros/geometry/tf_1.11.8.bb index 180a68a..a965cea 100644 --- a/recipes-ros/geometry/tf_1.11.8.bb +++ b/recipes-ros/geometry/tf_1.11.8.bb @@ -10,3 +10,7 @@ require geometry.inc SRC_URI += "file://0001-Fix-stdlib.h-No-such-file-or-directory-errors-in-GCC.patch;striplevel=2" RDEPENDS_${PN} = "${PYTHON_PN}-numpy" + +# This option disables python support in case of python3 flavour of ROS because +# only python2 is supported by tf. +EXTRA_OECMAKE =+ "${@'-DANDROID=ON' if d.getVar('PYTHON_PN', True) == 'python3' else ''}"