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

Unable to build on OSX #815

Open
shaneday opened this issue Mar 1, 2024 · 2 comments
Open

Unable to build on OSX #815

shaneday opened this issue Mar 1, 2024 · 2 comments

Comments

@shaneday
Copy link

shaneday commented Mar 1, 2024

I'm trying to build av1an to run on an M2 Mac. I have the git repo cloned and when I run 'cargo build' it reports the following: (I've trimmed some unrelated warnings and the most of the massive cc command line. I can attach the log if needed)

Compiling av1an-core v0.4.1
[...](error: linking with `cc` failed: exit status: 1)
= note: ld: library 'vapoursynth' not found
... "cc" "-arch" "arm64" ... "/Users/shaneday/git/av1an/target/debug/deps/libvapoursynth-2fbdbd40c09d3a15.rlib" ... "/Users/shaneday/git/av1an/target/debug/deps/libvapoursynth_sys-314baf9d1a70c691.rlib" 
... "-lvapoursynth" "-lvapoursynth-script" ...

I've installed vapoursynth using 'brew install vapoursynth' and I can see the vapoursynth library files:

❯ ls /opt/homebrew/lib/libvapoursynth*
/opt/homebrew/lib/libvapoursynth-script.0.dylib
/opt/homebrew/lib/libvapoursynth-script.a
/opt/homebrew/lib/libvapoursynth-script.dylib
/opt/homebrew/lib/libvapoursynth.a
/opt/homebrew/lib/libvapoursynth.dylib

I have tried following ChatGPTs advice and adding to Cargo.toml:

[build]
rustflags = ["-L/opt/homebrew/lib"]

and also tried:

CARGO_LINKFLAGS="-L/opt/homebrew/lib" cargo build

without any luck.

Some guidance would be appreciated. I'm familiar with the command line and C programming, but I've never touched rust or cargo.

@shaneday
Copy link
Author

shaneday commented Mar 1, 2024

I figure I'll drop the 'CARGO_LINKFLAGS="-L/opt/homebrew/lib" cargo build' log here just in case it is needed.

cargo-build.log

@joshurawr
Copy link

same issue, same platform, on macOS 14.4.1, same error and same log output references missing vapoursynth library

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

2 participants