failed to run custom build command for `russimp-sys v1.0.3`
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)
@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
@jkvargas Hm have you seen this before?
@imizao I think you can try to change the feature flag for assimp from
prebuilttostatic-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 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 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 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 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 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).
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 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)
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?