Failure to find ffmpeg/libavcodec header files during compilation #880

Closed
opened 2026-01-29 16:56:00 +00:00 by claunia · 5 comments
Owner

Originally created by @siliconwaffle on GitHub (Jan 1, 2026).

Description

Linux build script fails to find libavcodec header files on Fedora 43 with ffmpeg-devel from rpmfusion.

Component: lib_ccx
File: src/lib_ccx/hardsubx.c and src/lib_ccx/hardsubx.h

Problem

Compilation of ccextractor fails on systems where ffmpeg header files exist under /usr/include/ffmpeg. The header files are installed, they're just in a weird location and the environment variables aren't fixing it.

Compilation command used:

cd linux
export ENABLE_FFMPEG=1 FFMPEG_DLL_PATH='/usr/lib64' FFMPEG_INCLUDE_DIR='/usr/include/ffmpeg' FFMPEG_PKG_CONFIG_PATH='/usr/lib64/pkgconfig' RUST_BACKTRACE=full
./build -hardsubx -system-libs

Error message:

Running `/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/build/ccx_rust-e0b85611ce9f5505/build-script-build`
error: failed to run custom build command for `ccx_rust v0.1.0 (/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust)`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/build/ccx_rust-e0b85611ce9f5505/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=TARGET
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS
  cargo:rerun-if-changed=wrapper.h

  --- stderr
  ./../lib_ccx/hardsubx.h:9:10: fatal error: 'libavcodec/avcodec.h' file not found

  thread 'main' (2044) panicked at build.rs:143:10:
  Unable to generate bindings: ClangDiagnostic("./../lib_ccx/hardsubx.h:9:10: fatal error: 'libavcodec/avcodec.h' file not found\n")

Proposed Fix

I haven't figured out how to fix this.

Impact

This issue causes compilation to fail.

This has been an issue for years and there's still a comment in the header and c files that say "// TODO: Correct FFMpeg integration", but there was a similar issue a while back that got closed as "not planned". I have been attempting to fix this for a while but I have no idea what I'm doing, is there at least a good work-around if it's not going to be fixed?

Originally created by @siliconwaffle on GitHub (Jan 1, 2026). ### **Description** Linux build script fails to find libavcodec header files on Fedora 43 with ffmpeg-devel from rpmfusion. Component: lib_ccx File: src/lib_ccx/hardsubx.c and src/lib_ccx/hardsubx.h ### **Problem** Compilation of ccextractor fails on systems where ffmpeg header files exist under /usr/include/ffmpeg. The header files are installed, they're just in a weird location and the environment variables aren't fixing it. Compilation command used: ``` cd linux export ENABLE_FFMPEG=1 FFMPEG_DLL_PATH='/usr/lib64' FFMPEG_INCLUDE_DIR='/usr/include/ffmpeg' FFMPEG_PKG_CONFIG_PATH='/usr/lib64/pkgconfig' RUST_BACKTRACE=full ./build -hardsubx -system-libs ``` Error message: ``` Running `/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/build/ccx_rust-e0b85611ce9f5505/build-script-build` error: failed to run custom build command for `ccx_rust v0.1.0 (/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust)` note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation. Caused by: process didn't exit successfully: `/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/build/ccx_rust-e0b85611ce9f5505/build-script-build` (exit status: 101) --- stdout cargo:rerun-if-env-changed=TARGET cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS cargo:rerun-if-changed=wrapper.h --- stderr ./../lib_ccx/hardsubx.h:9:10: fatal error: 'libavcodec/avcodec.h' file not found thread 'main' (2044) panicked at build.rs:143:10: Unable to generate bindings: ClangDiagnostic("./../lib_ccx/hardsubx.h:9:10: fatal error: 'libavcodec/avcodec.h' file not found\n") ``` ### **Proposed Fix** I haven't figured out how to fix this. ### **Impact** This issue causes compilation to fail. This has been an issue for years and there's still a comment in the header and c files that say "// TODO: Correct FFMpeg integration", but there was a similar issue a while back that got closed as "not planned". I have been attempting to fix this for a while but I have no idea what I'm doing, is there at least a good work-around if it's not going to be fixed?
Author
Owner

@cfsmp3 commented on GitHub (Jan 1, 2026):

@siliconwaffle Can you try this? https://github.com/CCExtractor/ccextractor/pull/1955

@cfsmp3 commented on GitHub (Jan 1, 2026): @siliconwaffle Can you try this? https://github.com/CCExtractor/ccextractor/pull/1955
Author
Owner

@siliconwaffle commented on GitHub (Jan 2, 2026):

@cfsmp3 so it looks like it worked, and I've gotten slightly farther into the build process. However, a new problem has appeared and I have no idea what it means:

Compiling ccx_rust v0.1.0 (/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust)
     Running `/usr/bin/rustc --crate-name build_script_build --edition=2018 build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="hardsubx_ocr"' --cfg 'feature="leptonica-sys"' --cfg 'feature="rsmpeg"' --cfg 'feature="tesseract-sys"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("enable_ffmpeg", "hardsubx_ocr", "leptonica-sys", "rsmpeg", "sanity_check", "tesseract-sys", "with_libcurl", "wtv_debug"))' -C metadata=cce8eec4c5886004 -C extra-filename=-e0b85611ce9f5505 --out-dir /builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/build/ccx_rust-e0b85611ce9f5505 -C strip=debuginfo -L dependency=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps --extern bindgen=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libbindgen-079ee1562ef80e50.rlib --extern pkg_config=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libpkg_config-077987094adac708.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn`
     Running `/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/build/ccx_rust-e0b85611ce9f5505/build-script-build`
     Running `/usr/bin/rustc --crate-name ccx_rust --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type staticlib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="hardsubx_ocr"' --cfg 'feature="leptonica-sys"' --cfg 'feature="rsmpeg"' --cfg 'feature="tesseract-sys"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("enable_ffmpeg", "hardsubx_ocr", "leptonica-sys", "rsmpeg", "sanity_check", "tesseract-sys", "with_libcurl", "wtv_debug"))' -C metadata=52cada234fc33f24 -C extra-filename=-6d45b476bf719ea7 --out-dir /builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps -C strip=debuginfo -L dependency=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps --extern cfg_if=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libcfg_if-9d2dbc57d8792789.rlib --extern clap=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libclap-e5fc0d6cf5f0b011.rlib --extern crc32fast=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libcrc32fast-fbcf64dd4a2f897e.rlib --extern encoding_rs=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libencoding_rs-233b529cd9a1c6e3.rlib --extern env_logger=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libenv_logger-472fef667cb831cb.rlib --extern leptonica_sys=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libleptonica_sys-a9696d6acc70da1d.rlib --extern lib_ccxr=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/liblib_ccxr-4e3e582127ca6239.rlib --extern log=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/liblog-7bc3130406e50940.rlib --extern num_integer=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libnum_integer-69083584aceac81d.rlib --extern palette=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libpalette-b61653662ba8d509.rlib --extern rsmpeg=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/librsmpeg-74a19ecb8fceb138.rlib --extern serial_test=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libserial_test-c0f974657ac55072.rlib --extern strum_macros=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libstrum_macros-cb0559eb48c6dbe7.so --extern tesseract_sys=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libtesseract_sys-9000effca060dad3.rlib --extern time=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libtime-ca2d80761d324232.rlib --extern url=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/liburl-09e706b4d6247fd9.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn -L native=/usr/lib64 -L native=/usr/lib -L 'native="/usr/lib"' -L native=/usr/lib64 -L native=/usr/lib64 -L 'native="/usr/lib64"' -l avcodec`
error[E0599]: no method named `to_positive_degrees` found for struct `RgbHue<T>` in the current scope
  --> src/hardsubx/imgops.rs:15:22
   |
15 |     *H = hsv_rep.hue.to_positive_degrees();
   |                      ^^^^^^^^^^^^^^^^^^^
   |
help: there is a method `into_positive_degrees` with a similar name
   |
15 |     *H = hsv_rep.hue.into_positive_degrees();
   |                      ++

For more information about this error, try `rustc --explain E0599`.
error: could not compile `ccx_rust` (lib) due to 1 previous error

Caused by:
  process didn't exit successfully: `/usr/bin/rustc --crate-name ccx_rust --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type staticlib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="hardsubx_ocr"' --cfg 'feature="leptonica-sys"' --cfg 'feature="rsmpeg"' --cfg 'feature="tesseract-sys"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("enable_ffmpeg", "hardsubx_ocr", "leptonica-sys", "rsmpeg", "sanity_check", "tesseract-sys", "with_libcurl", "wtv_debug"))' -C metadata=52cada234fc33f24 -C extra-filename=-6d45b476bf719ea7 --out-dir /builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps -C strip=debuginfo -L dependency=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps --extern cfg_if=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libcfg_if-9d2dbc57d8792789.rlib --extern clap=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libclap-e5fc0d6cf5f0b011.rlib --extern crc32fast=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libcrc32fast-fbcf64dd4a2f897e.rlib --extern encoding_rs=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libencoding_rs-233b529cd9a1c6e3.rlib --extern env_logger=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libenv_logger-472fef667cb831cb.rlib --extern leptonica_sys=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libleptonica_sys-a9696d6acc70da1d.rlib --extern lib_ccxr=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/liblib_ccxr-4e3e582127ca6239.rlib --extern log=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/liblog-7bc3130406e50940.rlib --extern num_integer=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libnum_integer-69083584aceac81d.rlib --extern palette=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libpalette-b61653662ba8d509.rlib --extern rsmpeg=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/librsmpeg-74a19ecb8fceb138.rlib --extern serial_test=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libserial_test-c0f974657ac55072.rlib --extern strum_macros=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libstrum_macros-cb0559eb48c6dbe7.so --extern tesseract_sys=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libtesseract_sys-9000effca060dad3.rlib --extern time=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libtime-ca2d80761d324232.rlib --extern url=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/liburl-09e706b4d6247fd9.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn -L native=/usr/lib64 -L native=/usr/lib -L 'native="/usr/lib"' -L native=/usr/lib64 -L native=/usr/lib64 -L 'native="/usr/lib64"' -l avcodec` (exit status: 1)
Failed.

Output of rustc --explain E0599:

This error occurs when a method is used on a type which doesn't implement it:

Erroneous code example:

struct Mouth;

let x = Mouth;
x.chocolate(); // error: no method named `chocolate` found for type `Mouth`
               //        in the current scope

In this case, you need to implement the chocolate method to fix the error:

struct Mouth;

impl Mouth {
    fn chocolate(&self) { // We implement the `chocolate` method here.
        println!("Hmmm! I love chocolate!");
    }
}

let x = Mouth;
x.chocolate(); // ok!
@siliconwaffle commented on GitHub (Jan 2, 2026): @cfsmp3 so it looks like it worked, and I've gotten slightly farther into the build process. However, a new problem has appeared and I have no idea what it means: ``` Compiling ccx_rust v0.1.0 (/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust) Running `/usr/bin/rustc --crate-name build_script_build --edition=2018 build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="hardsubx_ocr"' --cfg 'feature="leptonica-sys"' --cfg 'feature="rsmpeg"' --cfg 'feature="tesseract-sys"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("enable_ffmpeg", "hardsubx_ocr", "leptonica-sys", "rsmpeg", "sanity_check", "tesseract-sys", "with_libcurl", "wtv_debug"))' -C metadata=cce8eec4c5886004 -C extra-filename=-e0b85611ce9f5505 --out-dir /builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/build/ccx_rust-e0b85611ce9f5505 -C strip=debuginfo -L dependency=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps --extern bindgen=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libbindgen-079ee1562ef80e50.rlib --extern pkg_config=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libpkg_config-077987094adac708.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn` Running `/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/build/ccx_rust-e0b85611ce9f5505/build-script-build` Running `/usr/bin/rustc --crate-name ccx_rust --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type staticlib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="hardsubx_ocr"' --cfg 'feature="leptonica-sys"' --cfg 'feature="rsmpeg"' --cfg 'feature="tesseract-sys"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("enable_ffmpeg", "hardsubx_ocr", "leptonica-sys", "rsmpeg", "sanity_check", "tesseract-sys", "with_libcurl", "wtv_debug"))' -C metadata=52cada234fc33f24 -C extra-filename=-6d45b476bf719ea7 --out-dir /builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps -C strip=debuginfo -L dependency=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps --extern cfg_if=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libcfg_if-9d2dbc57d8792789.rlib --extern clap=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libclap-e5fc0d6cf5f0b011.rlib --extern crc32fast=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libcrc32fast-fbcf64dd4a2f897e.rlib --extern encoding_rs=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libencoding_rs-233b529cd9a1c6e3.rlib --extern env_logger=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libenv_logger-472fef667cb831cb.rlib --extern leptonica_sys=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libleptonica_sys-a9696d6acc70da1d.rlib --extern lib_ccxr=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/liblib_ccxr-4e3e582127ca6239.rlib --extern log=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/liblog-7bc3130406e50940.rlib --extern num_integer=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libnum_integer-69083584aceac81d.rlib --extern palette=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libpalette-b61653662ba8d509.rlib --extern rsmpeg=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/librsmpeg-74a19ecb8fceb138.rlib --extern serial_test=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libserial_test-c0f974657ac55072.rlib --extern strum_macros=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libstrum_macros-cb0559eb48c6dbe7.so --extern tesseract_sys=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libtesseract_sys-9000effca060dad3.rlib --extern time=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libtime-ca2d80761d324232.rlib --extern url=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/liburl-09e706b4d6247fd9.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn -L native=/usr/lib64 -L native=/usr/lib -L 'native="/usr/lib"' -L native=/usr/lib64 -L native=/usr/lib64 -L 'native="/usr/lib64"' -l avcodec` error[E0599]: no method named `to_positive_degrees` found for struct `RgbHue<T>` in the current scope --> src/hardsubx/imgops.rs:15:22 | 15 | *H = hsv_rep.hue.to_positive_degrees(); | ^^^^^^^^^^^^^^^^^^^ | help: there is a method `into_positive_degrees` with a similar name | 15 | *H = hsv_rep.hue.into_positive_degrees(); | ++ For more information about this error, try `rustc --explain E0599`. error: could not compile `ccx_rust` (lib) due to 1 previous error Caused by: process didn't exit successfully: `/usr/bin/rustc --crate-name ccx_rust --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type staticlib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="hardsubx_ocr"' --cfg 'feature="leptonica-sys"' --cfg 'feature="rsmpeg"' --cfg 'feature="tesseract-sys"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("enable_ffmpeg", "hardsubx_ocr", "leptonica-sys", "rsmpeg", "sanity_check", "tesseract-sys", "with_libcurl", "wtv_debug"))' -C metadata=52cada234fc33f24 -C extra-filename=-6d45b476bf719ea7 --out-dir /builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps -C strip=debuginfo -L dependency=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps --extern cfg_if=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libcfg_if-9d2dbc57d8792789.rlib --extern clap=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libclap-e5fc0d6cf5f0b011.rlib --extern crc32fast=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libcrc32fast-fbcf64dd4a2f897e.rlib --extern encoding_rs=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libencoding_rs-233b529cd9a1c6e3.rlib --extern env_logger=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libenv_logger-472fef667cb831cb.rlib --extern leptonica_sys=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libleptonica_sys-a9696d6acc70da1d.rlib --extern lib_ccxr=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/liblib_ccxr-4e3e582127ca6239.rlib --extern log=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/liblog-7bc3130406e50940.rlib --extern num_integer=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libnum_integer-69083584aceac81d.rlib --extern palette=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libpalette-b61653662ba8d509.rlib --extern rsmpeg=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/librsmpeg-74a19ecb8fceb138.rlib --extern serial_test=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libserial_test-c0f974657ac55072.rlib --extern strum_macros=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libstrum_macros-cb0559eb48c6dbe7.so --extern tesseract_sys=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libtesseract_sys-9000effca060dad3.rlib --extern time=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/libtime-ca2d80761d324232.rlib --extern url=/builddir/build/BUILD/ccextractor-0.96.4-build/ccextractor/src/rust/../../linux/rust/release/deps/liburl-09e706b4d6247fd9.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn -L native=/usr/lib64 -L native=/usr/lib -L 'native="/usr/lib"' -L native=/usr/lib64 -L native=/usr/lib64 -L 'native="/usr/lib64"' -l avcodec` (exit status: 1) Failed. ``` Output of `rustc --explain E0599`: ``` This error occurs when a method is used on a type which doesn't implement it: Erroneous code example: struct Mouth; let x = Mouth; x.chocolate(); // error: no method named `chocolate` found for type `Mouth` // in the current scope In this case, you need to implement the chocolate method to fix the error: struct Mouth; impl Mouth { fn chocolate(&self) { // We implement the `chocolate` method here. println!("Hmmm! I love chocolate!"); } } let x = Mouth; x.chocolate(); // ok! ```
Author
Owner

@cfsmp3 commented on GitHub (Jan 2, 2026):

PR #1957 should fix this. The palette crate renamed to_positive_degrees() to into_positive_degrees() in version 0.7.0.

@cfsmp3 commented on GitHub (Jan 2, 2026): PR #1957 should fix this. The `palette` crate renamed `to_positive_degrees()` to `into_positive_degrees()` in version 0.7.0.
Author
Owner

@cfsmp3 commented on GitHub (Jan 2, 2026):

@siliconwaffle Does this get you past that point? https://github.com/CCExtractor/ccextractor/pull/1957

@cfsmp3 commented on GitHub (Jan 2, 2026): @siliconwaffle Does this get you past that point? https://github.com/CCExtractor/ccextractor/pull/1957
Author
Owner

@siliconwaffle commented on GitHub (Jan 8, 2026):

@cfsmp3 sorry for the delay, I unfortunately don't get much free time for this kind of thing.

That was my mistake, I forgot I had patched the toml to use pallete 0.7.5 because I didn't want to package 0.6 and it's endless dependencies, I didn't know it would break the code. Thank you for fixing that. I did make it farther with 0.96.5, however:

Running `/usr/bin/rustc --crate-name ccx_rust --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type staticlib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="hardsubx_ocr"' --cfg 'feature="leptonica-sys"' --cfg 'feature="rsmpeg"' --cfg 'feature="tesseract-sys"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("enable_ffmpeg", "hardsubx_ocr", "leptonica-sys", "rsmpeg", "sanity_check", "tesseract-sys", "with_libcurl", "wtv_debug"))' -C metadata=d62df5466c51f5ef -C extra-filename=-9a08beefdbaad603 --out-dir /builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps -C strip=debuginfo -L dependency=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps --extern cfg_if=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libcfg_if-9d2dbc57d8792789.rlib --extern clap=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libclap-43acfc17c40b025b.rlib --extern encoding_rs=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libencoding_rs-233b529cd9a1c6e3.rlib --extern env_logger=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libenv_logger-472fef667cb831cb.rlib --extern leptonica_sys=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libleptonica_sys-674bd9aaebbec6f0.rlib --extern lib_ccxr=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/liblib_ccxr-3060e30f3ca42be3.rlib --extern log=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/liblog-7bc3130406e50940.rlib --extern num_integer=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libnum_integer-69083584aceac81d.rlib --extern palette=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libpalette-93a999d42fc25721.rlib --extern rsmpeg=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/librsmpeg-5ad4a4727ddc12c3.rlib --extern serial_test=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libserial_test-37605a798d9a4274.rlib --extern strum_macros=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libstrum_macros-145052de0b4cbc3b.so --extern tesseract_sys=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libtesseract_sys-530e31045240cdd0.rlib --extern time=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libtime-b865d7567b15133f.rlib --extern url=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/liburl-1b62709a4c96a39a.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn -L native=/usr/lib64 -L native=/usr/lib -L 'native="/usr/lib"' -L native=/usr/lib64 -L native=/usr/lib64 -L 'native="/usr/lib64"' -l avcodec`
    Finished `release` profile [optimized] target(s) in 3m 19s
Building ccextractor
Compiled with errors
In file included from ../src/ccextractor.h:21,
                 from ../src/ccextractor.c:8:
../src/lib_ccx/hardsubx.h:9:10: fatal error: libavcodec/avcodec.h: No such file or directory
    9 | #include <libavcodec/avcodec.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../src/lib_ccx/hardsubx.c:3:
../src/lib_ccx/hardsubx.h:9:10: fatal error: libavcodec/avcodec.h: No such file or directory
    9 | #include <libavcodec/avcodec.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../src/lib_ccx/params.c:27:
../src/lib_ccx/hardsubx.h:9:10: fatal error: libavcodec/avcodec.h: No such file or directory
    9 | #include <libavcodec/avcodec.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../src/ccextractor.h:21,
                 from ../src/lib_ccx/ccx_encoders_common.c:10:
../src/lib_ccx/hardsubx.h:9:10: fatal error: libavcodec/avcodec.h: No such file or directory
    9 | #include <libavcodec/avcodec.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../src/ccextractor.h:21,
                 from ../src/lib_ccx/output.c:2:
../src/lib_ccx/hardsubx.h:9:10: fatal error: libavcodec/avcodec.h: No such file or directory
    9 | #include <libavcodec/avcodec.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
../src/lib_ccx/hardsubx_decoder.c:6:10: fatal error: libavcodec/avcodec.h: No such file or directory
    6 | #include <libavcodec/avcodec.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../src/ccextractor.h:21,
                 from ../src/lib_ccx/ccx_encoders_srt.c:7:
../src/lib_ccx/hardsubx.h:9:10: fatal error: libavcodec/avcodec.h: No such file or directory
    9 | #include <libavcodec/avcodec.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Fixed it with the following:

--- ccextractor/linux/build.orig	2026-01-05 15:05:24.000000000 +0000
+++ ccextractor/linux/build	2026-01-08 07:02:36.784123010 +0000
@@ -76,7 +76,7 @@
 then
     BLD_FLAGS="$BLD_FLAGS -DGPAC_64_BITS"
 fi
-BLD_INCLUDE="-I../src -I /usr/include/leptonica/ -I /usr/include/tesseract/ -I../src/lib_ccx/ -I /usr/include/gpac/ -I../src/thirdparty/libpng -I../src/thirdparty/zlib -I../src/lib_ccx/zvbi -I../src/thirdparty/lib_hash -I../src/thirdparty -I../src/thirdparty/freetype/include"
+BLD_INCLUDE="-I../src -I /usr/include/leptonica/ -I /usr/include/tesseract/ -I../src/lib_ccx/ -I /usr/include/gpac/ -I../src/thirdparty/libpng -I../src/thirdparty/zlib -I../src/lib_ccx/zvbi -I../src/thirdparty/lib_hash -I../src/thirdparty -I../src/thirdparty/freetype/include -I/usr/include/ffmpeg"
 SRC_LIBPNG="$(find ../src/thirdparty/libpng/ -name '*.c')"
 SRC_ZLIB="$(find ../src/thirdparty/zlib/ -name '*.c')"
 SRC_CCX="$(find ../src/lib_ccx/ -name '*.c')"
@@ -132,7 +132,7 @@
     TESSERACT_CFLAGS="$(pkg-config --cflags --silence-errors tesseract)"
     GPAC_CFLAGS="$(pkg-config --cflags --silence-errors gpac)"
 
-    BLD_INCLUDE="-I../src -I../src/lib_ccx -I../src/lib_ccx/zvbi -I../src/thirdparty/lib_hash \
+    BLD_INCLUDE="-I../src -I../src/lib_ccx -I../src/lib_ccx/zvbi -I../src/thirdparty/lib_hash -I/usr/include/ffmpeg \
     $PKG_CFLAGS $LEPTONICA_CFLAGS $TESSERACT_CFLAGS $GPAC_CFLAGS"
 
     BLD_SOURCES="../src/ccextractor.c $SRC_CCX $SRC_HASH"

I don't want to make a PR for this because it's using a hardcoded path that's not applicable to everyone, maybe there's another way you can think of to remedy this? Possibly with pkg-config or a couple if; then statements testing whether that directory exists or not?

@siliconwaffle commented on GitHub (Jan 8, 2026): @cfsmp3 sorry for the delay, I unfortunately don't get much free time for this kind of thing. That was my mistake, I forgot I had patched the toml to use pallete 0.7.5 because I didn't want to package 0.6 and it's endless dependencies, I didn't know it would break the code. Thank you for fixing that. I did make it farther with 0.96.5, however: ``` Running `/usr/bin/rustc --crate-name ccx_rust --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type staticlib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="hardsubx_ocr"' --cfg 'feature="leptonica-sys"' --cfg 'feature="rsmpeg"' --cfg 'feature="tesseract-sys"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("enable_ffmpeg", "hardsubx_ocr", "leptonica-sys", "rsmpeg", "sanity_check", "tesseract-sys", "with_libcurl", "wtv_debug"))' -C metadata=d62df5466c51f5ef -C extra-filename=-9a08beefdbaad603 --out-dir /builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps -C strip=debuginfo -L dependency=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps --extern cfg_if=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libcfg_if-9d2dbc57d8792789.rlib --extern clap=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libclap-43acfc17c40b025b.rlib --extern encoding_rs=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libencoding_rs-233b529cd9a1c6e3.rlib --extern env_logger=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libenv_logger-472fef667cb831cb.rlib --extern leptonica_sys=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libleptonica_sys-674bd9aaebbec6f0.rlib --extern lib_ccxr=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/liblib_ccxr-3060e30f3ca42be3.rlib --extern log=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/liblog-7bc3130406e50940.rlib --extern num_integer=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libnum_integer-69083584aceac81d.rlib --extern palette=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libpalette-93a999d42fc25721.rlib --extern rsmpeg=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/librsmpeg-5ad4a4727ddc12c3.rlib --extern serial_test=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libserial_test-37605a798d9a4274.rlib --extern strum_macros=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libstrum_macros-145052de0b4cbc3b.so --extern tesseract_sys=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libtesseract_sys-530e31045240cdd0.rlib --extern time=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/libtime-b865d7567b15133f.rlib --extern url=/builddir/build/BUILD/ccextractor-0.96.5-build/ccextractor/src/rust/../../linux/rust/release/deps/liburl-1b62709a4c96a39a.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn -L native=/usr/lib64 -L native=/usr/lib -L 'native="/usr/lib"' -L native=/usr/lib64 -L native=/usr/lib64 -L 'native="/usr/lib64"' -l avcodec` Finished `release` profile [optimized] target(s) in 3m 19s Building ccextractor Compiled with errors In file included from ../src/ccextractor.h:21, from ../src/ccextractor.c:8: ../src/lib_ccx/hardsubx.h:9:10: fatal error: libavcodec/avcodec.h: No such file or directory 9 | #include <libavcodec/avcodec.h> | ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. In file included from ../src/lib_ccx/hardsubx.c:3: ../src/lib_ccx/hardsubx.h:9:10: fatal error: libavcodec/avcodec.h: No such file or directory 9 | #include <libavcodec/avcodec.h> | ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. In file included from ../src/lib_ccx/params.c:27: ../src/lib_ccx/hardsubx.h:9:10: fatal error: libavcodec/avcodec.h: No such file or directory 9 | #include <libavcodec/avcodec.h> | ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. In file included from ../src/ccextractor.h:21, from ../src/lib_ccx/ccx_encoders_common.c:10: ../src/lib_ccx/hardsubx.h:9:10: fatal error: libavcodec/avcodec.h: No such file or directory 9 | #include <libavcodec/avcodec.h> | ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. In file included from ../src/ccextractor.h:21, from ../src/lib_ccx/output.c:2: ../src/lib_ccx/hardsubx.h:9:10: fatal error: libavcodec/avcodec.h: No such file or directory 9 | #include <libavcodec/avcodec.h> | ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. ../src/lib_ccx/hardsubx_decoder.c:6:10: fatal error: libavcodec/avcodec.h: No such file or directory 6 | #include <libavcodec/avcodec.h> | ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. In file included from ../src/ccextractor.h:21, from ../src/lib_ccx/ccx_encoders_srt.c:7: ../src/lib_ccx/hardsubx.h:9:10: fatal error: libavcodec/avcodec.h: No such file or directory 9 | #include <libavcodec/avcodec.h> | ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. ``` Fixed it with the following: ``` --- ccextractor/linux/build.orig 2026-01-05 15:05:24.000000000 +0000 +++ ccextractor/linux/build 2026-01-08 07:02:36.784123010 +0000 @@ -76,7 +76,7 @@ then BLD_FLAGS="$BLD_FLAGS -DGPAC_64_BITS" fi -BLD_INCLUDE="-I../src -I /usr/include/leptonica/ -I /usr/include/tesseract/ -I../src/lib_ccx/ -I /usr/include/gpac/ -I../src/thirdparty/libpng -I../src/thirdparty/zlib -I../src/lib_ccx/zvbi -I../src/thirdparty/lib_hash -I../src/thirdparty -I../src/thirdparty/freetype/include" +BLD_INCLUDE="-I../src -I /usr/include/leptonica/ -I /usr/include/tesseract/ -I../src/lib_ccx/ -I /usr/include/gpac/ -I../src/thirdparty/libpng -I../src/thirdparty/zlib -I../src/lib_ccx/zvbi -I../src/thirdparty/lib_hash -I../src/thirdparty -I../src/thirdparty/freetype/include -I/usr/include/ffmpeg" SRC_LIBPNG="$(find ../src/thirdparty/libpng/ -name '*.c')" SRC_ZLIB="$(find ../src/thirdparty/zlib/ -name '*.c')" SRC_CCX="$(find ../src/lib_ccx/ -name '*.c')" @@ -132,7 +132,7 @@ TESSERACT_CFLAGS="$(pkg-config --cflags --silence-errors tesseract)" GPAC_CFLAGS="$(pkg-config --cflags --silence-errors gpac)" - BLD_INCLUDE="-I../src -I../src/lib_ccx -I../src/lib_ccx/zvbi -I../src/thirdparty/lib_hash \ + BLD_INCLUDE="-I../src -I../src/lib_ccx -I../src/lib_ccx/zvbi -I../src/thirdparty/lib_hash -I/usr/include/ffmpeg \ $PKG_CFLAGS $LEPTONICA_CFLAGS $TESSERACT_CFLAGS $GPAC_CFLAGS" BLD_SOURCES="../src/ccextractor.c $SRC_CCX $SRC_HASH" ``` I don't want to make a PR for this because it's using a hardcoded path that's not applicable to everyone, maybe there's another way you can think of to remedy this? Possibly with pkg-config or a couple if; then statements testing whether that directory exists or not?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#880