Last active
February 22, 2019 17:09
-
-
Save evadeflow/d4d81484d760a85b88cd215c83a2be0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | |
FILES_${PN} += "${libdir}/python3.5/site-packages/cv2.so" | |
INSANE_SKIP_${PN} += "dev-so" | |
python() { | |
value = "eigen python3 " + d.getVar('PACKAGECONFIG', True) | |
flags = d.getVarFlags('PACKAGECONFIG') | |
d.delVar('PACKAGECONFIG') | |
d.setVar('PACKAGECONFIG', value) | |
d.setVarFlags('PACKAGECONFIG', flags) | |
} | |
do_install_append() { | |
# Create missing symlink needed to import cv2 Python module | |
cd ${D}/${libdir}/python3.5/site-packages | |
ln -s cv2.cpython-35m-aarch64-linux-gnu.so cv2.so | |
} |
Oh, I should mention that the append shown above is an attempt to 'undo' this line from meta-fsl-bsp-release/imx/meta-bsp/recipes-graphics/opencv/opencv_3.4.bbappend
:
PACKAGECONFIG_remove_imx = "eigen python3"
Apparently, it is really difficult to undo this removal syntax!
FWIW, this didn't actually work in my particular use case.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got a lot of QA warnings while trying to build this: