Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling slint application #331

Open
SkyLeite opened this issue Sep 12, 2024 · 0 comments
Open

Error compiling slint application #331

SkyLeite opened this issue Sep 12, 2024 · 0 comments

Comments

@SkyLeite
Copy link

When compiling a slint application, I get the following error:

slint-rust-template> error: failed to run custom build command for `slint-rust-template v0.1.0 (/build/source)`
slint-rust-template> Caused by:
slint-rust-template>   process didn't exit successfully: `/build/source/target/release/build/slint-rust-template-b344460d0da8af77/build-script-build` (exit status: 101)
slint-rust-template>   --- stderr
slint-rust-template>   error: Style fluent in not known. Use one of the builtin styles [native] or make sure your custom style is found in the include directories
slint-rust-template>   error: Cannot find requested import "std-widgets.slint" in the include search path
slint-rust-template>     --> /build/source/ui/appwindow.slint:1:37
slint-rust-template>      |
slint-rust-template>   1  | import { Button, VerticalBox } from "std-widgets.slint";
slint-rust-template>      |                                     ^
slint-rust-template>   error: Unknown type VerticalBox
slint-rust-template>     --> /build/source/ui/appwindow.slint:6:5
slint-rust-template>      |
slint-rust-template>   6  |     VerticalBox {
slint-rust-template>      |     ^
slint-rust-template>   error: Unknown type Button
slint-rust-template>     --> /build/source/ui/appwindow.slint:11:9
slint-rust-template>      |
slint-rust-template>   11 |         Button {
slint-rust-template>      |         ^
slint-rust-template>   error: 'clicked' is not a callback in <error>
slint-rust-template>     --> /build/source/ui/appwindow.slint:13:13
slint-rust-template>      |
slint-rust-template>   13 |             clicked => {
slint-rust-template>      |             ^
slint-rust-template>   thread 'main' panicked at build.rs:6:68:
slint-rust-template>   called `Result::unwrap()` on an `Err` value: CompileError(["Style fluent in not known. Use one of the builtin styles [native] or make sure your custom style is found in the include directories", "/build/source/ui/appwindow.slint:1: Cannot find requested import \"std-widgets.slint\" in the include search path", "/build/source/ui/appwindow.slint:6: Unknown type VerticalBox", "/build/source/ui/appwindow.slint:11: Unknown type Button", "/build/source/ui/appwindow.slint:13: 'clicked' is not a callback in <error>"])
slint-rust-template>   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
slint-rust-template> warning: build failed, waiting for other jobs to finish...
slint-rust-template> [naersk] cargo returned with exit code 101, exiting
error: builder for '/nix/store/ldyyijzkpzraak49m53286pc7kihgqaw-slint-rust-template-0.1.0.drv' failed with exit code 101;
       last 10 log lines:
       >     --> /build/source/ui/appwindow.slint:13:13
       >      |
       >   13 |             clicked => {
       >      |             ^
       >
       >   thread 'main' panicked at build.rs:6:68:
       >   called `Result::unwrap()` on an `Err` value: CompileError(["Style fluent in not known. Use one of the builtin styles [native] or make sure your custom style is found in the include directories", "/build/source/ui/appwindow.slint:1: Cannot find requested import \"std-widgets.slint\" in the include search path", "/build/source/ui/appwindow.slint:6: Unknown type VerticalBox", "/build/source/ui/appwindow.slint:11: Unknown type Button", "/build/source/ui/appwindow.slint:13: 'clicked' is not a callback in <error>"])
       >   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
       > warning: build failed, waiting for other jobs to finish...
       > [naersk] cargo returned with exit code 101, exiting
       For full logs, run 'nix log /nix/store/ldyyijzkpzraak49m53286pc7kihgqaw-slint-rust-template-0.1.0.drv'.

Here's a reproduction repository. Just run nix build -L.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant