Skip to content

Cross Compilation Between WiringPi Library and F' #2671

Answered by LeStarch
OwenNieuwenhuizen asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  1. Run a toolchain with wiring-pi installed. This works best when a vendor (or raspberry pi) has given you a per-configured toolchain.
  2. Create a sysroot from the RPI 4 filesystem and/or the wiring pi library. Then set the --sysroot flag when building. This works best when your cross-compiler works except for missing libraries like wiring pi.
  3. Build your own tool chain. This works best when you need to change libc/libc++ versions and add libraries. Usually you do this if the cross…

Replies: 2 comments 29 replies

Comment options

You must be logged in to vote
28 replies
@OwenNieuwenhuizen
Comment options

@LeStarch
Comment options

@thomas-bc
Comment options

@OwenNieuwenhuizen
Comment options

@OwenNieuwenhuizen
Comment options

Answer selected by LeStarch
Comment options

You must be logged in to vote
1 reply
@LeStarch
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants