libgpiod cross-compiling issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

libgpiod cross-compiling issue

Jump to solution
4,833 Views
AB22
Contributor III

I am trying to use libgpiod within a Qt project which cross-compiles for an i.MX8M processor. When I add the lines below to local.conf in the Yocto project, I get the necessary files created in the SDK.

IMAGE_INSTALL_append = " libgpiod libgpiod-dev libgpiod-tools"

TOOLCHAIN_HOST_TASK_append = " nativesdk-libgpiod"

TOOLCHAIN_HOST_TASK_append = " nativesdk-libgpiod-dev"

TOOLCHAIN_HOST_TASK_append = " nativesdk-libgpiod-tools"

I get an error though when building the Qt project:

"gnu/stubs-32.h: No such file or directory"

Any idea why this library is looking for a 32 bit file?

Any suggestions will be appreciated.

 

 

0 Kudos
Reply
1 Solution
4,786 Views
AB22
Contributor III

My mistake was assuming I needed to use the header files for x86 when cross-compiling instead of the aarch64 headers.

I can compile and use libgpiod now.

View solution in original post

0 Kudos
Reply
4 Replies
2,634 Views
srinivas_123
Contributor III
Hi@AB22
i build the toolchain using
bitbake -c core-image-minimal populate_sdk
i run the .sh file to extract the sdk into /opt.
now i want to use libgpiod package .and i want to cross compile the my program . how to approach
i have not add any libgpiod in local.conf file initially.
0 Kudos
Reply
4,787 Views
AB22
Contributor III

My mistake was assuming I needed to use the header files for x86 when cross-compiling instead of the aarch64 headers.

I can compile and use libgpiod now.

0 Kudos
Reply
4,811 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
4,793 Views
AB22
Contributor III

libc6-dev-i386 is already up to date on the Ubuntu host. I would think the missing file is related to the x86_64 libraries built by Yocto for cross-compiling. I am attempting to add lib32-glibc to the Yocto build use MULTILIBS support.

0 Kudos
Reply