-
Notifications
You must be signed in to change notification settings - Fork 160
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
Comments
I figure I'll drop the 'CARGO_LINKFLAGS="-L/opt/homebrew/lib" cargo build' log here just in case it is needed. |
same issue, same platform, on macOS 14.4.1, same error and same log output references missing vapoursynth library |
I found a workaround. The system "cc" on OSX doesn't include the path where homebrew installs libraries. So, it's up to the user to add that path when needed. You can do so as below. I don't recall where I got the CARGO_LINKFLAGS suggestion in my question. But either LIBRARY_PATH or RUSTFLAGS can do the trick.
or
Install the new av1an binary
Note: The above only works after commit "6db3966 Support ffmpeg 7.0", which isn't included in any tagged release yet. So, you'll need to be using the bleeding edge. |
FYI 0.4.3 was released ~24hrs ago and includes this change. So using nightly releases should no longer be necessary for this. This could also be handled by Av1an, in the build.rs. |
The linked PR should resolve this problem. It's been merged into Until then, a temporary workaround would be using the git version by adding this to [patch.crates-io]
vapoursynth = { git = "https://github.com/YaLTeR/vapoursynth-rs" }
vapoursynth-sys = { git = "https://github.com/YaLTeR/vapoursynth-rs" } |
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)
I've installed vapoursynth using 'brew install vapoursynth' and I can see the vapoursynth library files:
I have tried following ChatGPTs advice and adding to Cargo.toml:
and also tried:
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.
The text was updated successfully, but these errors were encountered: