You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: failed to run custom build command for `ffmpeg-sys-next v7.1.0`
Caused by:
process didn't exit successfully: `/Users/bochao/Work/projects/SearchIn/src-tauri/target/release/build/ffmpeg-sys-next-201ad7040f4dd9cc/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=LIBAVUTIL_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_x86_64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_x86_64_apple_darwin
cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_ALLOW_CROSS
cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_apple_darwin
cargo:rerun-if-env-changed=TARGET_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin
cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
--- stderr
thread 'main' panicked at /Users/bochao/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ffmpeg-sys-next-7.1.0/build.rs:795:14:
called `Result::unwrap()` on an `Err` value: pkg-config has not been configured to support cross-compilation.
Install a sysroot for the target platform and configure it via
PKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_PATH, or install a
cross-compiling wrapper for pkg-config and set it via
PKG_CONFIG environment variable.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
failed to build x86_64-apple-darwin binary: failed to build app
Error failed to build x86_64-apple-darwin binary: failed to build app
ELIFECYCLE Command failed with exit code 1.
The text was updated successfully, but these errors were encountered:
hi, when I compile the rust-ffmpeg x86 program on Apple M2 Pro macOS 15.1, I get an error
Cargo.toml
error message:
The text was updated successfully, but these errors were encountered: