-
Notifications
You must be signed in to change notification settings - Fork 195
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
Can't build on macos 13.4: ld: symbol(s) not found for architecture x86_64 #158
Comments
I have encountered the same problem, have you solved it? |
I have found two solutions.
Or add such
This will work on macos. |
@dashuai009 I could not get this to work on MacOS Sonoma M1 Pro.
|
First, here is cargo.toml [target.'cfg(windows)'.dependencies]
ffmpeg-next = { version = "7.0.1" }
[target.'cfg(not(windows))'.dependencies]
ffmpeg-next = { version = "7.0.1", default-features = false, features = [
"format", "software-resampling",
"build",
"build-license-gpl", "build-license-nonfree", "build-license-version3"
], optional = true } I used the feature Then, recommend to add This will be worked if you just use the default features of If you want to use the avcodec, for example, x265.
Then, add feature extern crate pkg_config;
fn main() {
let mut config = pkg_config::Config::new();
config.statik(true).probe("x265").unwrap();
} |
Thanks I'll try these. |
I'm on MacOS 13.4 (22F66)
I'm trying to use ffmpeg-next to build a video from a series of image files.
I can get
ffmpeg-next = { version = "6.0.0", features = ["build"] }
to build, but then I don't have any h264 capabilities. (Most examples, and the libraries that sit on top of this, e.g. video-rs, use h264)If I add
ffmpeg-next = { version = "6.0.0", features = ["build", "codec", "build-license-gpl", "build-lib-x264"] }
I get the following when I build:This looks like I have something pretty fundamental missing, but I am not sure where to look.
(I have ffmpeg 6 installed via homebrew)
Anyone have any ideas or pointers?
The text was updated successfully, but these errors were encountered: