-
I try to cross compile for w" "-Wl,-O1" "-nodefaultlibs"
= note: /usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lncursesw
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: cannot find -ltinfo
collect2: error: ld returned 1 exit status I've installed the Steps to reproduce:
[build]
pre-build = ["apt-get install libncurses5-dev -y"]
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi, and thanks for the question! The ncurses backend is currently not the easiest one to cross-compile. In the short-term I would recommend trying a different backend like |
Beta Was this translation helpful? Give feedback.
-
On Ubuntu 23.04, w/o
and it builds nicely with |
Beta Was this translation helpful? Give feedback.
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 thencurses-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.