Hi team,
I am using the Yocto SDK from NXP on Ubuntu to cross-compile an application for an aarch64 target. However, my build fails because libgpiod is missing: When compiling my project, I get the following error:
/Documents/nxp/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld: cannot find -lgpiod: No such file or directory
I checked my Yocto SDK sysroot, but libgpiod is missing:
ls /Documents/nxp/sysroots/armv8a-poky-linux/usr/lib/libgpiod*
ls: cannot access '/Documents/nxp/sysroots/armv8a-poky-linux/usr/lib/libgpiod*': No such file or directory
I tried using opkg to install it but got this error:
/Documents/nxp/sysroots/x86_64-pokysdk-linux/usr/bin/opkg install libgpiod
* opkg_prepare_url_for_install: Couldn't find anything to satisfy 'libgpiod'.
Since opkg couldn't find libgpiod, it's not available in the prebuilt SDK. Do I need to build and install it manually using Yocto's BitBake ?
How can I properly add libgpiod to my Yocto SDK?
Is there a recommended way to include it when generating the SDK using bitbake ?
Host OS: Ubuntu
Yocto SDK Path: /Documents/nxp
Target Architecture: aarch64 (ARMv8-A)
Toolchain: Yocto SDK from NXP
Looking forward for your kind response
Regards,
somesh
Please run the following command.
$ bitbake libgpiod
You will find tmp/sysroots-components/armv8a/libgpiod