Skip to content

Skia renderer with Linux backend #6611

Answered by tronical
igiona asked this question in Q&A
Oct 21, 2024 · 1 comments · 11 replies
Discussion options

You must be logged in to vote

Ah, I think I realize what you might be missing.

The Skia build requires clang, and that clang needs to be entirely aware of your yocto target config and gcc library paths. Sometimes it works to use the host clang, but it's better to use meta-clang. Try this:

  1. Add meta-clang to your layers.
  2. Add clang to your generated SDK like this: https://github.com/kraj/meta-clang?tab=readme-ov-file#adding-clang-in-generated-sdk-toolchain

From the environment of the resulting SDK, you'll have CLANGCC and CLANGCXX set, the Skia build will pick them up automatically, and it ... should compile.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@tronical
Comment options

@igiona
Comment options

@tronical
Comment options

Answer selected by igiona
@igiona
Comment options

@tronical
Comment options

@igiona
Comment options

@tronical
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