Ambient icon indicating copy to clipboard operation
Ambient copied to clipboard

failed to run custom build command for `russimp-sys v1.0.3`

Open imizao opened this issue 2 years ago • 9 comments

Installing from Git

error: failed to run custom build command for russimp-sys v1.0.3

Caused by: process didn't exit successfully: /var/folders/t9/qdx760hj2dd5thjq5zhgc8q40000gn/T/cargo-install99ljak/release/build/russimp-sys-971aa872f0661ea0/build-script-build (exit status: 101) --- stdout cargo:rerun-if-env-changed=RUSSIMP_PREBUILT Downloading https://github.com/jkvargas/russimp-sys/releases/download/v1.0.3/russimp-1.0.3-x86_64-apple-darwin.tar.gz

--- stderr thread 'main' panicked at 'Download Failed: Custom { kind: Other, error: "https://github.com/jkvargas/russimp-sys/releases/download/v1.0.3/russimp-1.0.3-x86_64-apple-darwin.tar.gz: Network Error: timed out reading response" }', /Users/xxx/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/russimp-sys-1.0.3/build.rs:283:73 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 ambient v0.1.1 (https://github.com/AmbientRun/Ambient.git?tag=v0.1.1#5e30ad8d), intermediate artifacts can be found at /var/folders/t9/qdx760hj2dd5thjq5zhgc8q40000gn/T/cargo-install99ljak

Environment: Rust: v 1.67.1 OS: MacOs (x86_64)

imizao avatar Feb 24 '23 17:02 imizao

@jkvargas Hm have you seen this before?

@imizao I think you can try to change the feature flag for assimp from prebuilt to static-link; https://github.com/AmbientRun/Ambient/blob/main/Cargo.toml#L135

FredrikNoren avatar Feb 25 '23 18:02 FredrikNoren

@jkvargas Hm have you seen this before?

@imizao I think you can try to change the feature flag for assimp from prebuilt to static-link; https://github.com/AmbientRun/Ambient/blob/main/Cargo.toml#L135

@FredrikNoren Thank you for your reply!

I tried, I even upgraded russimp to 2.0.2, but failed!

Maybe it's the old russimp-sys? I see the latest version is v2.0.0

Maybe I don't have Ninja?

imizao avatar Feb 26 '23 01:02 imizao

@imizao Hm yeah it's weird that it seems like the download is failing in your first post. Could be an intermittent networking issue too then, might be worth just trying again?

Also we do supply prebuilt binaries here if you want to avoid compiling on your own: https://github.com/AmbientRun/Ambient/releases

FredrikNoren avatar Feb 26 '23 07:02 FredrikNoren

@FredrikNoren Hm I also encountered difficulties here. I tried to use the prebuilt binary file, so I get this error message in the terminal:

zsh: bad CPU type in executable:

imizao avatar Feb 26 '23 12:02 imizao

@imizao Which OS is this on? And would you mind posting an issue on the russimp repo about this: https://github.com/jkvargas/russimp and link it to this one?

FredrikNoren avatar Feb 27 '23 09:02 FredrikNoren

@FredrikNoren Hm yeah it's this oneambient-aarch64-apple-darwin.zip

And would you mind posting an issue on the russimp repo about this: https://github.com/jkvargas/russimp and link it to this one?

Ok,I have submitted

imizao avatar Feb 28 '23 01:02 imizao

@imizao So to make it possible to at least build in the meanwhile, I added a feature flag so that you can turn off assimp. See the docs here: https://ambientrun.github.io/Ambient/user/installing.html#building-problems-and-solutions

Basically, if you run cargo install --git https://github.com/AmbientRun/Ambient.git --no-default-features it should work for you now (but you won't have assimp, so only fbx and gltf will be possible to import).

FredrikNoren avatar Feb 28 '23 09:02 FredrikNoren

LGTM.

Ambient has been installed and I also appreciate the active response from the Ambient team.

I hope to experience the full Ambient next time. Thanks again ; )

imizao avatar Mar 01 '23 06:03 imizao

@imizao So to make it possible to at least build in the meanwhile, I added a feature flag so that you can turn off assimp. See the docs here: https://ambientrun.github.io/Ambient/user/installing.html#building-problems-and-solutions

Basically, if you run it should work for you now (but you won't have assimp, so only fbx and gltf will be possible to import).cargo install --git https://github.com/AmbientRun/Ambient.git --no-default-features

This worked, but only in main branch(v0.1.1 didn't work)

C-BJ avatar Mar 03 '23 13:03 C-BJ

hmmmm, weird. The download seems to be working fine on my end. Is this build running on a pipeline? Can you confirm if you can curl/wget from the link?

jkvargas avatar Mar 08 '23 17:03 jkvargas