i follow the below steps
step1 : in local.conf file i added following packages---------->
IMAGE_INSTALL:append = " libgpiod"
IMAGE_INSTALL:append = " libgpiod-tools"
IMAGE_INSTALL:append = " libgpiod-dev"
step 2: i build the toolchain
step3 : 1st I try to add the application to control gpio for that i taken a reference of main.c : https://variwiki.com/index.php?title=MX8M_GPIO from variscite
when i tried to add this application in my recipe at that time i am getting undefined reference errrors.
So i decide to go with creating makefile for my code. for that also I'm getting same errors.
even i check can cross compiler includes the libgpiod lib or not , it is present
Now i don't know what I'm missing ? is i'm missing anything please let me know if anyone have idea ,is their any other approach or any other application i need to use.
Thanks & Regards
vrutik
Have you checked your cmakelist?
The API change a lot, you should change your code refer example