DioxusLabs / dioxus

Fullstack app framework for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
21.63k stars 833 forks source link

failed to run custom build command for `aws-lc-sys v0.21.2` #2982

Open VillSnow opened 2 months ago

VillSnow commented 2 months ago

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:

Expected behavior

Screenshots

Environment:

Questionnaire

related: #2666

RustGrow commented 1 month ago

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

VillSnow commented 6 days ago

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

DogeDark commented 5 days ago

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.

VillSnow commented 5 days ago

hmm, I understood. this issue should be closed at the same time the docs is updated.