Skip to content

Instantly share code, notes, and snippets.

@evadeflow
Last active February 22, 2019 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evadeflow/d4d81484d760a85b88cd215c83a2be0b to your computer and use it in GitHub Desktop.
Save evadeflow/d4d81484d760a85b88cd215c83a2be0b to your computer and use it in GitHub Desktop.
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
}
@evadeflow
Copy link
Author

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