How to Add libgpiod to Yocto SDK for aarch64?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to Add libgpiod to Yocto SDK for aarch64?

356 次查看
somesh27
Contributor I

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 ?

 

  1. How can I properly add libgpiod to my Yocto SDK?

  2. Is there a recommended way to include it when generating the SDK using bitbake ?

My Setup:

  • 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

 

0 项奖励
回复
1 回复

307 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please run the following command.

$ bitbake libgpiod

You will find tmp/sysroots-components/armv8a/libgpiod

0 项奖励
回复