Skip to content

Cross compile for armv7-unknown-linux-gnueabihf #684

Answered by gyscos
eliabieri asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, and thanks for the question!

The ncurses backend is currently not the easiest one to cross-compile.
You'll need the development libraries installed for the target architecture (which is why -lncursesw and -ltinfo don't work in your case, you need these libraries available to the cross compiler), but even after that, as you noticed the ncurses-sys crate currently compiles and runs a tiny binary at build-time to check some type sizes, which is not easy when you compile for a different architecture than you run.

In the short-term I would recommend trying a different backend like crossterm, which should cross-compile more easily.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@eliabieri
Comment options

@gyscos
Comment options

@eliabieri
Comment options

@gyscos
Comment options

@eliabieri
Comment options

Answer selected by eliabieri
Comment options

You must be logged in to vote
0 replies
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