Cross compilation for armv7 #2671
-
I am aware about the question regarding cross compilation for pi 2/3/4 using cross. I have a Debian host with and an arm sysroot and a cross toolchain. What libraries I need to cross compile a rust slint project using winit-femtovg? And how can I tell rust to use the sysroot when looking for these libraries? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
At minimum in your target sysroot you'll need fontconfig, either xcb or wayland, and libxkbcommon. We do something like this in our docker images at https://github.com/slint-ui/slint/blob/master/docker/Dockerfile.armv7-unknown-linux-gnueabihf - those install a bit more though to also cover Skia (fontconfig-dev packages and libstdc++ for target, and clang/python3 for the host). |
Beta Was this translation helpful? Give feedback.
-
But how do I tell cargo (?) where my sysroot resides?
Simon Hausmann ***@***.***> schrieb am Di., 2. Mai 2023,
09:06:
… At minimum in your target sysroot you'll need fontconfig, either xcb or
wayland, and libxkbcommon. We do something like this in our docker images
at
https://github.com/slint-ui/slint/blob/master/docker/Dockerfile.armv7-unknown-linux-gnueabihf
- those install a bit more though to also cover Skia (fontconfig-dev
packages and libstdc++ for target, and clang/python3 for the host).
—
Reply to this email directly, view it on GitHub
<#2671 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGVNAK76UZ5D23MNAP5PTOLXECXANANCNFSM6AAAAAAXQ7GE2E>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Ah great thats perfect
Simon Hausmann ***@***.***> schrieb am Di., 2. Mai 2023,
09:36:
… I believe you won't need to as the pure Rust build won't look for any
libraries to link against. Wayland/xcb/fontconfig are opened dynamically at
runtime using dlopen.
—
Reply to this email directly, view it on GitHub
<#2671 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGVNAK7G4J43GBUNRIX6TBLXEC2Q5ANCNFSM6AAAAAAXQ7GE2E>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
At minimum in your target sysroot you'll need fontconfig, either xcb or wayland, and libxkbcommon. We do something like this in our docker images at https://github.com/slint-ui/slint/blob/master/docker/Dockerfile.armv7-unknown-linux-gnueabihf - those install a bit more though to also cover Skia (fontconfig-dev packages and libstdc++ for target, and clang/python3 for the host).