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

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

Open
3 tasks
VillSnow opened this issue Sep 20, 2024 · 6 comments
Open
3 tasks

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

VillSnow opened this issue Sep 20, 2024 · 6 comments

Comments

@VillSnow
Copy link

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

@RustGrow
Copy link

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
Copy link
Author

VillSnow commented Nov 19, 2024

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
Copy link
Member

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
Copy link
Author

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

@listenLearning
Copy link

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?
image

@liugangnhm
Copy link

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

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

5 participants