libgpiod cross-compiling issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

libgpiod cross-compiling issue

ソリューションへジャンプ
4,697件の閲覧回数
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,650件の閲覧回数
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,498件の閲覧回数
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,651件の閲覧回数
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,675件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信
4,657件の閲覧回数
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 件の賞賛
返信