Hi,
In my coding, i will include "gpiod.h" in my .c file, but when i try cross compile it, terminal will pop out the error "unable locate the "gpiod.h"". So my question is how to install the library gpiod into SDK in order able to build my .c file.
Thanks
Hello @Jimmychea
I hope you are doing well.
->Please make sure the gpio.c file has the below line including the library file.
#include "gpio.h"
->One can also try to add a relative path into the .c file
for example:- #include "../file/file2/gpio.h"
->If the gpio.h is a global header file then please change the format as given below.
#include <gpio.h>
->Please make sure to add the code to the makefile.
->Please make sure to use the header files for x86 when cross-compiling instead of the aarch64 headers.
Please refer to the below link for more detail.
https://community.nxp.com/
Thanks & Regards.
Sanket Parekh