How to Add libgpiod to Yocto SDK for aarch64?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to Add libgpiod to Yocto SDK for aarch64?

468件の閲覧回数
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 返信

419件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please run the following command.

$ bitbake libgpiod

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

0 件の賞賛
返信