Question on the libgpiod recipe

D Thomas



I added the libgpiod v1.4.1 recipe from the meta-openembedded zeus branch to my custom image.  The command line gpio tools are working successfully.  Now I would like to add the python3 bindings. 


To enable the bindings, I changed the PACKAGECONFIG line in the bb file to:


     # enable tools and cxx bindings

     PACKAGECONFIG ?= "python3 cxx tools"


When I did this, I observed the following error:


ERROR: libgpiod-1.4.1-r0 do_package_qa: QA Issue: non -staticdev package contains static .a library: libgpiod-python path '/work/cortexa5hf-neon-poky-linux-gnueabi/libgpiod/1.4.1-r0/packages-split/libgpiod-python/usr/lib/python3.5/site-packages/gpiod.a' [staticdev]


I fixed this error by adding the following to the bb file:


     do_install_append () {

         rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/*.a



Unfortunately that does not install the python bindings to libgpiod in the image.  What can I do to install the bindings?  I can use the command line gpio tools, but I would like to use the python bindings if possible.




Daren Thomas


Sensonix Incorporated

15755 32nd Avenue N

Plymouth, Minnesota 55447