Cross Compilation Between WiringPi Library and F' #2671
-
Hi everyone, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 29 replies
-
Do you have access to the wiring-pi library? Is it an archive ( There are several solutions that you might try to resolve the issue:
If you provide more information we can try and help select one of those options. |
Beta Was this translation helpful? Give feedback.
-
/opt/toolchains/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /usr/lib/libwiringPi.so: error adding symbols: file in wrong format It looks like it is linking against a local installation of wiringpi. This will be the host architecture. You'll need to figure out how to cross compile wiringpi and link to that |
Beta Was this translation helpful? Give feedback.
Do you have access to the wiring-pi library? Is it an archive (
.a
) library, a shared-object (.so
)? Additionally, what cross-compiler are you using?There are several solutions that you might try to resolve the issue:
--sysroot
flag when building. This works best when your cross-compiler works except for missing libraries like wiring pi.