Replies: 2 comments
-
This method can solve your problem |
Beta Was this translation helpful? Give feedback.
-
Skia compilation can sometimes be problematic (and that's the reason it is not the default) It tries to download the binary for your platform, but if that binary is not found for the specific platform you are building for (which is the case for you) it will try to make a compilation. We have a guide with the most common compilation errors there: Please paste the actual compile error so we can help you to compile Skia. (your log was cut before the actual error) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Description
Upon selecting the skia vulcan renderer feature in cargo.toml like this:
[dependencies]
slint = { version = "1.11.0", features = [
"backend-winit", # enable winit for windowing
"renderer-skia", # core Skia support (OpenGL/Metal/D3D/Software)
"renderer-skia-vulkan", # force Vulkan path
] }
It won't compile and will throw this error:
error: failed to run custom build command for
skia-bindings v0.84.0
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.
Caused by:
process didn't exit successfully: ***\target\debug\build\skia-bindings-205aaef1896448e5\build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=DOCS_RS
cargo:rerun-if-env-changed=SKIA_DEBUG
cargo:rerun-if-env-changed=SKIA_SOURCE_DIR
cargo:rerun-if-env-changed=FORCE_SKIA_BUILD
cargo:rerun-if-env-changed=FORCE_SKIA_BINARIES_DOWNLOAD
TRYING TO DOWNLOAD AND INSTALL SKIA BINARIES: 0.84.0/8df1749a67a2800c2904-x86_64-pc-windows-msvc-d3d-gl-textlayout-vulkan
cargo:rerun-if-env-changed=SKIA_BINARIES_URL
FROM: https://github.com/rust-skia/skia-binaries/releases/download/0.84.0/skia-binaries-8df1749a67a2800c2904-x86_64-pc-windows-msvc-d3d-gl-textlayout-vulkan.tar.gz
DOWNLOAD AND INSTALL FAILED: curl error code: "22"
curl stderr: "curl: (22) The requested URL returned error: 404\r\n"
STARTING A FULL BUILD
HOST: x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=CLANGCC
cargo:rerun-if-env-changed=CC
cargo:rerun-if-env-changed=CLANGCXX
cargo:rerun-if-env-changed=CXX
cargo:rerun-if-env-changed=OPT_LEVEL
cargo:rerun-if-env-changed=SKIA_USE_SYSTEM_LIBRARIES
cargo:rerun-if-env-changed=SDKTARGETSYSROOT
cargo:rerun-if-env-changed=SDKROOT
cargo:rerun-if-env-changed=VCINSTALLDIR
cargo:rerun-if-env-changed=LLVM_HOME
cargo:rerun-if-env-changed=USERPROFILE
--- stderr
Reproducible Code (if applicable)
Environment Details
Product Impact
I want to build a windows 11 native mod manager for a game.
I'd prefer to use vulcan for the UI as the opengl renderer makes the fonts ugly as said in the docs.
Beta Was this translation helpful? Give feedback.
All reactions