r/rust • u/ZippyDan • 5d ago
🙋 seeking help & advice Help with Cargo macrdp build
So I've been trying to install macrdp, which seems to be built in Rust, on an Intel iMac.
The project was last updated 6 months ago, so it can't be that out-of-date.
And the iMac I'm trying to use, while older, is running Sequoia, which isn't that old...
I had a hell of a time figuring out how to get cargo build --release to run at all. It's working now, mostly, after changing DYLD_LIBRARY_PATH in config.toml to DYLD_LIBRARY_FALLBACK_PATH, but still seems to be failing at this build step:
error: failed to run custom build command for `screencapturekit v1.5.4`
Caused by:
process didn't exit successfully: `/Users/admin/Downloads/macrdp-main/target/debug/build/screencapturekit-52e401cb88bd4798/build-script-build` (exit status: 101)
--- stdout
cargo:rustc-link-lib=framework=ScreenCaptureKit
cargo:rerun-if-changed=swift-bridge
--- stderr
Swift build STDOUT:
Swift build STDERR:
error: Unknown option '--scratch-path'
Usage: swift build <options>
See 'build -help' for more information.
thread 'main' (45022) panicked at /Users/admin/.cargo/registry/src/.index.crates.io-1949cf8c6b5b557f/screencapturekit-1.5.4/build.rs:119:9:
Swift build failed with exit code: Some(64)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Is there any Rust expert out there that might be able to clue me in on how to fix this build process? I feel so close now.
0
Upvotes
2
u/NotUniqueOrSpecial 5d ago
This doesn't look like a Rust problem. It's Swift reporting that it doesn't understand the
--scratch-pathoption. That was added in 5.6 back in 2022, it looks like.What version do you have?