-
|
Hi folks, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
|
Hi :). Is that an error you get during compilation or when running the cross-compiled binary on the raspberry pi? |
Beta Was this translation helpful? Give feedback.
-
|
Hi, it's a (cross) compilation error. Forgot to mention that I have installed ttf-dejavu and fontconfig. Here the check: |
Beta Was this translation helpful? Give feedback.
-
|
I see now the problem I wrote about is manifesting when I use cross utility. cargo build gives linker issues. As cross uses containers, it seems I have to configure the fonts there.. |
Beta Was this translation helpful? Give feedback.
-
|
Right, you need that in your container. You can also use our containers for building, that has everything you need: https://github.com/slint-ui/slint/blob/master/Cross.toml . That said, it's a little odd: The data from fontconfig should only be needed if compiling a slint file for use on micro-controllers, specifically when trying to embed glyphs. |
Beta Was this translation helpful? Give feedback.
-
|
Many thanks tronical, it works now! https://github.com/ivan-jli/slint_demo . |
Beta Was this translation helpful? Give feedback.
Right, you need that in your container. You can also use our containers for building, that has everything you need: https://github.com/slint-ui/slint/blob/master/Cross.toml . That said, it's a little odd: The data from fontconfig should only be needed if compiling a slint file for use on micro-controllers, specifically when trying to embed glyphs.