libgpiod cross-compiling issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

libgpiod cross-compiling issue

跳至解决方案
4,836 次查看
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 项奖励
回复
1 解答
4,789 次查看
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 项奖励
回复
4 回复数
2,637 次查看
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 项奖励
回复
4,790 次查看
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 项奖励
回复
4,814 次查看
joanxie
NXP TechSupport
NXP TechSupport
0 项奖励
回复
4,796 次查看
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 项奖励
回复