diff --git a/recipes-ros/vision-opencv/cv-bridge_1.11.15.bb b/recipes-ros/vision-opencv/cv-bridge_1.11.15.bb index a268b9b..ad70ceb 100644 --- a/recipes-ros/vision-opencv/cv-bridge_1.11.15.bb +++ b/recipes-ros/vision-opencv/cv-bridge_1.11.15.bb @@ -5,4 +5,8 @@ LIC_FILES_CHKSUM = "file://package.xml;beginline=11;endline=11;md5=d566ef916e9de DEPENDS = "boost opencv rosconsole sensor-msgs ${PYTHON_PN}-numpy-native" +# This option disables python2 support because we can't support both python2 +# and python3 since OE upstream has disabled python2 bindings in Boost. +EXTRA_OECMAKE =+ "${@'-DANDROID=ON' if d.getVar('PYTHON_PN', True) != 'python3' else ''}" + require vision-opencv.inc