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.
解決済! 解決策の投稿を見る。
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.
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.
it seems this is host issue, pls refer to the link as below:
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.