gifski
gifski copied to clipboard
gifski-1.11.0 error: linker `/usr/bin/x86_64-linux-gnu-gcc` not found
Building in void linux, previous releases build without errors, but with 1.11.0 yields this error:
error: linker
/usr/bin/x86_64-linux-gnu-gcc` not found
|
= note: No such file or directory (os error 2)
error: could not compile crossbeam-utils
due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile libc
due to previous error
`
yeah I'm getting the same error here on fedora
Delete .cargo dir. It has my config for cross-compilation.
I just ended up installing an older version but let me try this later today and I'll get back to you.
Thanky you very much, removing the .cargo dir fix the issue. Will you update the .tar.gz and .zip sources files?
Delete .cargo dir. It has my config for cross-compilation.
okay the removal of that fixed this error but now when I try to build with video support so I can use gifski --fps 10 --width 320 -o anim.gif video.mp4
like so:
cargo build --release --features=video
It fails with this:
[goldy@fedora gifski]$ cargo build --release --features=video
Compiling ffmpeg-sys-next v6.0.1 (https://github.com/kornelski/rust-ffmpeg-sys-1?rev=94d5496d88900bdc0cad66733138134d0ea3cf31#94d5496d)
error: failed to run custom build command for `ffmpeg-sys-next v6.0.1 (https://github.com/kornelski/rust-ffmpeg-sys-1?rev=94d5496d88900bdc0cad66733138134d0ea3cf31#94d5496d)`
Caused by:
process didn't exit successfully: `/home/goldy/gifski/target/release/build/ffmpeg-sys-next-f285c930cfe19f04/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=LIBAVUTIL_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" "pkg-config" "--libs" "--cflags" "libavutil"` did not exit successfully: exit status: 1
error: could not find system library 'libavutil' required by the 'ffmpeg-sys-next' crate
--- stderr
Package libavutil was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavutil.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libavutil', required by 'virtual:world', not found
', /home/goldy/.cargo/git/checkouts/rust-ffmpeg-sys-1-ff5f7ad144b45bd4/94d5496/build.rs:734:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace