failed to run custom build command for `aws-lc-sys v0.21.2`
Problem
error: failed to run custom build command for `aws-lc-sys v0.21.2`
Caused by:
process didn't exit successfully: `C:\Users\me\AppData\Local\Temp\cargo-installZPq3k0\release\build\aws-lc-sys-a9c626b05d91a93d\build-script-main` (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREFIX
cargo:rerun-if-env-changed=AWS_LC_SYS_INTERNAL_BINDGEN
cargo:rerun-if-env-changed=AWS_LC_SYS_EXTERNAL_BINDGEN
cargo:rerun-if-env-changed=AWS_LC_SYS_NO_ASM
cargo:rerun-if-env-changed=AWS_LC_SYS_CFLAGS
cargo:rerun-if-env-changed=AWS_LC_SYS_PREBUILT_NASM
cargo:rerun-if-env-changed=AWS_LC_SYS_C_STD
cargo:rustc-cfg=x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_BUILDER
cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC
default_for Target: 'x86_64-pc-windows-msvc'
cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC
cargo:rerun-if-env-changed=CMAKE
--- stderr
Missing dependency: cmake
thread 'main' panicked at C:\Users\me\.cargo\registry\src\index.crates.io-6f17d22bba15001f\aws-lc-sys-0.21.2\builder/main.rs:315:40:
called `Result::unwrap()` on an `Err` value: "Required build dependency is missing. Halting build."
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `dioxus-cli v0.6.0-alpha.2`, intermediate artifacts can be found at `C:\Users\me\AppData\Local\Temp\cargo-installZPq3k0`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Steps To Reproduce
Steps to reproduce the behavior:
- Windows 11 without cmake and nasm
cargo install dioxus-cli --version "0.6.0-alpha.2"
Expected behavior
Screenshots
Environment:
- Dioxus version: 0.6.0-alpha.2
- Rust version: 1.81.0
- OS info: Windows 11
- App platform:
Questionnaire
- [ ] I'm interested in fixing this myself but don't know where to start
- [ ] I would like to fix and I have a solution
- [ ] I don't have time to fix this right now, but maybe later
related: #2666
Netwide Assembler (NASM) must be installed for win11 https://www.nasm.us/pub/nasm/releasebuilds/2.16.03/win64/ Inside its shell install cli https://github.com/DioxusGrow/dioxus_translator?tab=readme-ov-file#quick-start
Does the team decide to add environmental dependency? If so, they would have to update this page... https://dioxuslabs.com/learn/0.5/getting_started
The NASM requirement is from one of our deps and there's not much we can do about it. I agree, it should be added to the docs. You can use cargo-binstall or download the pre-compiled binaries on the releases page of GitHub to get around installing NASM.
hmm, I understood. this issue should be closed at the same time the docs is updated.
I have installed NASM, but when I execute cargo install dioxus-cli, I still get the above error, and the system is also Windows 11, has this problem been solved?
maybe you are missing cmake command in you path. you can execute
scoop install cmake
to install cmake on windows or some similar commod deps on your operation system