[BUG] I cant install tplay on my system.
Describe the bug I'm trying to install tplay on my system, but opencv just doesn't want to cooperate.
To Reproduce Steps to reproduce the behavior:
- clone this repo with git on linux
-
cd tplay && cargo build - everything else runs well, but when it gets to opencv, this is the output. I've tried changing the source to github in Cargo.toml but same output:
[opencv 0.93.5] === Extracting build arguments from: -Wl,-rpath,/usr/local/lib /usr/local/lib/libopencv_gapi.so.4.11.0 /usr/local/lib/libopencv_highgui.so.4.11.0 /usr/local/lib/libopencv_ml.so.4.11.0 /usr/local/lib/libopencv_objdetect.so.4.11.0 /usr/local/lib/libopencv_photo.so.4.11.0 /usr/local/lib/libopencv_stitching.so.4.11.0 /usr/local/lib/libopencv_video.so.4.11.0 /usr/local/lib/libopencv_videoio.so.4.11.0 /usr/local/lib/libopencv_imgcodecs.so.4.11.0 /usr/local/lib/libopencv_dnn.so.4.11.0 /usr/local/lib/libopencv_calib3d.so.4.11.0 /usr/local/lib/libopencv_features2d.so.4.11.0 /usr/local/lib/libopencv_flann.so.4.11.0 /usr/local/lib/libopencv_imgproc.so.4.11.0 /usr/local/lib/libopencv_core.so.4.11.0
[opencv 0.93.5]
[opencv 0.93.5] === Successfully probed using: cmake
[opencv 0.93.5] === OpenCV library configuration: Library {
[opencv 0.93.5] include_paths: [
[opencv 0.93.5] "/usr/local/include/opencv4",
[opencv 0.93.5] ],
[opencv 0.93.5] version: Version {
[opencv 0.93.5] major: 4,
[opencv 0.93.5] minor: 11,
[opencv 0.93.5] patch: 0,
[opencv 0.93.5] },
[opencv 0.93.5] cargo_metadata: [
[opencv 0.93.5] "cargo:rustc-link-search=/usr/local/lib",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_gapi",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_highgui",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_ml",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_objdetect",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_photo",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_stitching",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_video",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_videoio",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_imgcodecs",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_dnn",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_calib3d",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_features2d",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_flann",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_imgproc",
[opencv 0.93.5] "cargo:rustc-link-lib=opencv_core",
[opencv 0.93.5] ],
[opencv 0.93.5] }
[opencv 0.93.5] cargo:rustc-cfg=ocvrs_opencv_branch_4
[opencv 0.93.5] === Detected OpenCV module header dir at: /usr/local/include/opencv4/opencv2
[opencv 0.93.5] === Found OpenCV version: 4.11.0 in headers located at: /usr/local/include/opencv4
[opencv 0.93.5] cargo:rerun-if-env-changed=OPENCV_PACKAGE_NAME
[opencv 0.93.5] cargo:rerun-if-env-changed=OPENCV_PKGCONFIG_NAME
[opencv 0.93.5] cargo:rerun-if-env-changed=OPENCV_CMAKE_NAME
[opencv 0.93.5] cargo:rerun-if-env-changed=OPENCV_CMAKE_BIN
[opencv 0.93.5] cargo:rerun-if-env-changed=OPENCV_VCPKG_NAME
[opencv 0.93.5] cargo:rerun-if-env-changed=OPENCV_LINK_LIBS
[opencv 0.93.5] cargo:rerun-if-env-changed=OPENCV_LINK_PATHS
[opencv 0.93.5] cargo:rerun-if-env-changed=OPENCV_INCLUDE_PATHS
[opencv 0.93.5] cargo:rerun-if-env-changed=OPENCV_DISABLE_PROBES
[opencv 0.93.5] cargo:rerun-if-env-changed=OPENCV_MSVC_CRT
[opencv 0.93.5] cargo:rerun-if-env-changed=CMAKE_PREFIX_PATH
[opencv 0.93.5] cargo:rerun-if-env-changed=OpenCV_DIR
[opencv 0.93.5] cargo:rerun-if-env-changed=PKG_CONFIG_PATH
[opencv 0.93.5] cargo:rerun-if-env-changed=VCPKG_ROOT
[opencv 0.93.5] cargo:rerun-if-env-changed=VCPKGRS_DYNAMIC
[opencv 0.93.5] cargo:rerun-if-env-changed=VCPKGRS_TRIPLET
[opencv 0.93.5] cargo:rerun-if-env-changed=OCVRS_DOCS_GENERATE_DIR
[opencv 0.93.5] cargo:rerun-if-env-changed=DOCS_RS
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/ccalib.hpp
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/dnn.hpp
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/core.hpp
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/sfm.hpp
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/gapi.hpp
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/bioinspired.hpp
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/manual-core.cpp
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/videoio.hpp
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/aruco.hpp
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/alphamat.hpp
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/photo.hpp
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/ocvrs_common.hpp
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/face.hpp
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/xfeatures2d.hpp
[opencv 0.93.5] cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/hdf.hpp
[opencv 0.93.5] cargo:rerun-if-changed=Cargo.toml
[opencv 0.93.5] === Generating code in: /home/abolfazl/tplay/target/debug/build/opencv-254afde8815608a9/out
[opencv 0.93.5] === Placing generated bindings into: /home/abolfazl/tplay/target/debug/build/opencv-254afde8815608a9/out/opencv
[opencv 0.93.5] === Using OpenCV headers from: /usr/local/include/opencv4
[libwebp-sys 0.11.0] cargo:rustc-link-lib=static=webpsys
[libwebp-sys 0.11.0] cargo:rustc-link-search=native=/home/abolfazl/tplay/target/debug/build/libwebp-sys-3c06575d7786f2a6/out
Running `CARGO=/home/abolfazl/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=libwebp_sys CARGO_MANIFEST_DIR=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libwebp-sys-0.11.0 CARGO_PKG_AUTHORS='XianYou <[email protected]>:Kornel Lesiński <[email protected]>' CARGO_PKG_DESCRIPTION='Bindings to libwebp (bindgen, static linking)' CARGO_PKG_HOMEPAGE='https://github.com/NoXF/libwebp-sys' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libwebp-sys CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/NoXF/libwebp-sys' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.11.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=11 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/home/abolfazl/tplay/target/debug/deps:/home/abolfazl/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib' OUT_DIR=/home/abolfazl/tplay/target/debug/build/libwebp-sys-3c06575d7786f2a6/out /home/abolfazl/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name libwebp_sys --edition=2021 /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libwebp-sys-0.11.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=237 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="parallel"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("avx2", "default", "neon", "parallel", "sse41", "std"))' -C metadata=72e864a5cd1e66a7 -C extra-filename=-72e864a5cd1e66a7 --out-dir /home/abolfazl/tplay/target/debug/deps -L dependency=/home/abolfazl/tplay/target/debug/deps --cap-lints warn -L native=/home/abolfazl/tplay/target/debug/build/libwebp-sys-3c06575d7786f2a6/out -l static=webpsys`
[opencv 0.93.5] === Clang: Homebrew clang version 19.1.3
[opencv 0.93.5] === Clang command line args: [
[opencv 0.93.5] "-isystem/usr/lib/gcc/x86_64-linux-gnu/14/../../../../include/c++",
[opencv 0.93.5] "-isystem/home/linuxbrew/.linuxbrew/Cellar/llvm/19.1.3/lib/clang/19/include",
[opencv 0.93.5] "-isystem/usr/local/include",
[opencv 0.93.5] "-isystem/usr/include/x86_64-linux-gnu",
[opencv 0.93.5] "-isystem/usr/include",
[opencv 0.93.5] "-I/usr/local/include/opencv4",
[opencv 0.93.5] "-F/usr/local/include/opencv4",
[opencv 0.93.5] "-I/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp",
[opencv 0.93.5] "-F/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp",
[opencv 0.93.5] "-DOCVRS_PARSING_HEADERS",
[opencv 0.93.5] "-includeocvrs_common.hpp",
[opencv 0.93.5] "-std=c++14",
[opencv 0.93.5] ]
[opencv 0.93.5] === Using environment job server with the the amount of available jobs: 10
[opencv 0.93.5] === Generating 3 modules
[opencv 0.93.5] === Running: "/home/abolfazl/tplay/target/debug/build/opencv-c6ef15a56afaf8df/build-script-build" "/usr/local/include/opencv4" "/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp" "/home/abolfazl/tplay/target/debug/build/opencv-254afde8815608a9/out" "core" ""
[opencv 0.93.5] === Running: "/home/abolfazl/tplay/target/debug/build/opencv-c6ef15a56afaf8df/build-script-build" "/usr/local/include/opencv4" "/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp" "/home/abolfazl/tplay/target/debug/build/opencv-254afde8815608a9/out" "imgproc" ""
[opencv 0.93.5] === Running: "/home/abolfazl/tplay/target/debug/build/opencv-c6ef15a56afaf8df/build-script-build" "/usr/local/include/opencv4" "/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp" "/home/abolfazl/tplay/target/debug/build/opencv-254afde8815608a9/out" "videoio" ""
[opencv 0.93.5] === WARNING: 1 diagnostic messages
[opencv 0.93.5] === /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/ocvrs_common.hpp:18:10: fatal error: 'memory' file not found
[opencv 0.93.5] thread 'main' panicked at /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-binding-generator-0.93.0/src/generator.rs:400:17:
[opencv 0.93.5] === Errors during header parsing
[opencv 0.93.5] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[opencv 0.93.5] thread 'gen-imgproc' panicked at /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/build/generator.rs:112:37:
[opencv 0.93.5] Failed to run the bindings generator for module: imgproc
[opencv 0.93.5] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[opencv 0.93.5] === WARNING: 1 diagnostic messages
[opencv 0.93.5] === /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/ocvrs_common.hpp:18:10: fatal error: 'memory' file not found
[opencv 0.93.5] thread 'main' panicked at /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-binding-generator-0.93.0/src/generator.rs:400:17:
[opencv 0.93.5] === Errors during header parsing
[opencv 0.93.5] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[opencv 0.93.5] === WARNING: 1 diagnostic messages
[opencv 0.93.5] === /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/ocvrs_common.hpp:18:10: fatal error: 'memory' file not found
[opencv 0.93.5] thread 'main' panicked at /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-binding-generator-0.93.0/src/generator.rs:400:17:
[opencv 0.93.5] === Errors during header parsing
[opencv 0.93.5] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[opencv 0.93.5] thread 'gen-core' panicked at /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/build/generator.rs:112:37:
[opencv 0.93.5] Failed to run the bindings generator for module: core
[opencv 0.93.5] thread 'main' panicked at /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/build/generator.rs:122:36:
[opencv 0.93.5] Generator process panicked: Any { .. }
[opencv 0.93.5] thread 'gen-videoio' panicked at /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/build/generator.rs:112:37:
[opencv 0.93.5] Failed to run the bindings generator for module: videoio
error: failed to run custom build command for `opencv v0.93.5`
Caused by:
process didn't exit successfully: `CARGO=/home/abolfazl/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CFG_PANIC=unwind CARGO_CFG_TARGET_ABI='' CARGO_CFG_TARGET_ARCH=x86_64 CARGO_CFG_TARGET_ENDIAN=little CARGO_CFG_TARGET_ENV=gnu CARGO_CFG_TARGET_FAMILY=unix CARGO_CFG_TARGET_FEATURE=fxsr,sse,sse2 CARGO_CFG_TARGET_HAS_ATOMIC=16,32,64,8,ptr CARGO_CFG_TARGET_OS=linux CARGO_CFG_TARGET_POINTER_WIDTH=64 CARGO_CFG_TARGET_VENDOR=unknown CARGO_CFG_UNIX='' CARGO_ENCODED_RUSTFLAGS='' CARGO_FEATURE_CLANG_RUNTIME=1 CARGO_FEATURE_IMGPROC=1 CARGO_FEATURE_VIDEOIO=1 CARGO_MANIFEST_DIR=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5 CARGO_PKG_AUTHORS='Pro <[email protected]>:Mathieu Poumeyrol <[email protected]>' CARGO_PKG_DESCRIPTION='Rust bindings for OpenCV' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=opencv CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/twistedfall/opencv-rust' CARGO_PKG_RUST_VERSION=1.66 CARGO_PKG_VERSION=0.93.5 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=93 CARGO_PKG_VERSION_PATCH=5 CARGO_PKG_VERSION_PRE='' DEBUG=true HOST=x86_64-unknown-linux-gnu LD_LIBRARY_PATH='/home/abolfazl/tplay/target/debug/deps:/home/abolfazl/tplay/target/debug:/home/abolfazl/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib:/home/abolfazl/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib' NUM_JOBS=12 OPT_LEVEL=0 OUT_DIR=/home/abolfazl/tplay/target/debug/build/opencv-254afde8815608a9/out PROFILE=debug RUSTC=/home/abolfazl/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc RUSTDOC=/home/abolfazl/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustdoc TARGET=x86_64-unknown-linux-gnu /home/abolfazl/tplay/target/debug/build/opencv-c6ef15a56afaf8df/build-script-build` (exit status: 101)
--- stdout
cargo:rustc-check-cfg=cfg(ocvrs_opencv_branch_4)
cargo:rustc-check-cfg=cfg(ocvrs_opencv_branch_34)
cargo:rustc-check-cfg=cfg(ocvrs_opencv_branch_32)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_alphamat)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_aruco)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_aruco_detector)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_barcode)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_bgsegm)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_bioinspired)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_calib3d)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_ccalib)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_core)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_cudaarithm)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_cudabgsegm)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_cudacodec)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_cudafeatures2d)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_cudafilters)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_cudaimgproc)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_cudaobjdetect)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_cudaoptflow)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_cudastereo)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_cudawarping)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_cvv)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_dnn)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_dnn_superres)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_dpm)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_face)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_features2d)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_flann)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_freetype)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_fuzzy)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_gapi)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_hdf)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_hfs)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_highgui)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_img_hash)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_imgcodecs)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_imgproc)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_intensity_transform)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_line_descriptor)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_mcc)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_ml)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_objdetect)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_optflow)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_ovis)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_phase_unwrapping)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_photo)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_plot)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_quality)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_rapid)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_rgbd)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_saliency)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_sfm)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_shape)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_stereo)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_stitching)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_structured_light)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_superres)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_surface_matching)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_text)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_tracking)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_video)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_videoio)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_videostab)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_viz)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_wechat_qrcode)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_xfeatures2d)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_ximgproc)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_xobjdetect)
cargo:rustc-check-cfg=cfg(ocvrs_has_module_xphoto)
cargo:rustc-cfg=ocvrs_opencv_branch_4
cargo:rerun-if-env-changed=OPENCV_PACKAGE_NAME
cargo:rerun-if-env-changed=OPENCV_PKGCONFIG_NAME
cargo:rerun-if-env-changed=OPENCV_CMAKE_NAME
cargo:rerun-if-env-changed=OPENCV_CMAKE_BIN
cargo:rerun-if-env-changed=OPENCV_VCPKG_NAME
cargo:rerun-if-env-changed=OPENCV_LINK_LIBS
cargo:rerun-if-env-changed=OPENCV_LINK_PATHS
cargo:rerun-if-env-changed=OPENCV_INCLUDE_PATHS
cargo:rerun-if-env-changed=OPENCV_DISABLE_PROBES
cargo:rerun-if-env-changed=OPENCV_MSVC_CRT
cargo:rerun-if-env-changed=CMAKE_PREFIX_PATH
cargo:rerun-if-env-changed=OpenCV_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=VCPKG_ROOT
cargo:rerun-if-env-changed=VCPKGRS_DYNAMIC
cargo:rerun-if-env-changed=VCPKGRS_TRIPLET
cargo:rerun-if-env-changed=OCVRS_DOCS_GENERATE_DIR
cargo:rerun-if-env-changed=DOCS_RS
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/ccalib.hpp
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/dnn.hpp
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/core.hpp
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/sfm.hpp
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/gapi.hpp
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/bioinspired.hpp
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/manual-core.cpp
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/videoio.hpp
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/aruco.hpp
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/alphamat.hpp
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/photo.hpp
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/ocvrs_common.hpp
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/face.hpp
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/xfeatures2d.hpp
cargo:rerun-if-changed=/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/hdf.hpp
cargo:rerun-if-changed=Cargo.toml
--- stderr
=== Crate version: 0.93.5
=== Environment configuration:
=== OPENCV_PACKAGE_NAME = None
=== OPENCV_PKGCONFIG_NAME = None
=== OPENCV_CMAKE_NAME = None
=== OPENCV_CMAKE_BIN = None
=== OPENCV_VCPKG_NAME = None
=== OPENCV_LINK_LIBS = None
=== OPENCV_LINK_PATHS = None
=== OPENCV_INCLUDE_PATHS = None
=== OPENCV_DISABLE_PROBES = None
=== OPENCV_MSVC_CRT = None
=== CMAKE_PREFIX_PATH = None
=== OpenCV_DIR = Some("/usr/include/opencv4/")
=== PKG_CONFIG_PATH = None
=== VCPKG_ROOT = None
=== VCPKGRS_DYNAMIC = None
=== VCPKGRS_TRIPLET = None
=== OCVRS_DOCS_GENERATE_DIR = None
=== DOCS_RS = None
=== PATH = Some("/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/abolfazl/.cargo/bin:/home/abolfazl/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin")
=== Enabled features:
=== CLANG_RUNTIME
=== IMGPROC
=== VIDEOIO
=== Detected probe priority boost based on environment vars: pkg_config: false, cmake: true, vcpkg: false
=== Probing the OpenCV library in the following order: environment, cmake, pkg_config, vcpkg_cmake, vcpkg
=== Can't probe using: environment, continuing with other methods because: Some environment variables are missing
=== Probing OpenCV library using cmake
=== cmake ninja probe command: cd "/home/abolfazl/tplay/target/debug/build/opencv-254afde8815608a9/out/cmake_probe_build" && "cmake" "-S" "/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_BUILD_TYPE=Debug" "-G" "Ninja"
=== Extracting build arguments from: -Wl,-rpath,/usr/local/lib /usr/local/lib/libopencv_gapi.so.4.11.0 /usr/local/lib/libopencv_highgui.so.4.11.0 /usr/local/lib/libopencv_ml.so.4.11.0 /usr/local/lib/libopencv_objdetect.so.4.11.0 /usr/local/lib/libopencv_photo.so.4.11.0 /usr/local/lib/libopencv_stitching.so.4.11.0 /usr/local/lib/libopencv_video.so.4.11.0 /usr/local/lib/libopencv_videoio.so.4.11.0 /usr/local/lib/libopencv_imgcodecs.so.4.11.0 /usr/local/lib/libopencv_dnn.so.4.11.0 /usr/local/lib/libopencv_calib3d.so.4.11.0 /usr/local/lib/libopencv_features2d.so.4.11.0 /usr/local/lib/libopencv_flann.so.4.11.0 /usr/local/lib/libopencv_imgproc.so.4.11.0 /usr/local/lib/libopencv_core.so.4.11.0
=== Successfully probed using: cmake
=== OpenCV library configuration: Library {
include_paths: [
"/usr/local/include/opencv4",
],
version: Version {
major: 4,
minor: 11,
patch: 0,
},
cargo_metadata: [
"cargo:rustc-link-search=/usr/local/lib",
"cargo:rustc-link-lib=opencv_gapi",
"cargo:rustc-link-lib=opencv_highgui",
"cargo:rustc-link-lib=opencv_ml",
"cargo:rustc-link-lib=opencv_objdetect",
"cargo:rustc-link-lib=opencv_photo",
"cargo:rustc-link-lib=opencv_stitching",
"cargo:rustc-link-lib=opencv_video",
"cargo:rustc-link-lib=opencv_videoio",
"cargo:rustc-link-lib=opencv_imgcodecs",
"cargo:rustc-link-lib=opencv_dnn",
"cargo:rustc-link-lib=opencv_calib3d",
"cargo:rustc-link-lib=opencv_features2d",
"cargo:rustc-link-lib=opencv_flann",
"cargo:rustc-link-lib=opencv_imgproc",
"cargo:rustc-link-lib=opencv_core",
],
}
=== Detected OpenCV module header dir at: /usr/local/include/opencv4/opencv2
=== Found OpenCV version: 4.11.0 in headers located at: /usr/local/include/opencv4
=== Generating code in: /home/abolfazl/tplay/target/debug/build/opencv-254afde8815608a9/out
=== Placing generated bindings into: /home/abolfazl/tplay/target/debug/build/opencv-254afde8815608a9/out/opencv
=== Using OpenCV headers from: /usr/local/include/opencv4
=== Clang: Homebrew clang version 19.1.3
=== Clang command line args: [
"-isystem/usr/lib/gcc/x86_64-linux-gnu/14/../../../../include/c++",
"-isystem/home/linuxbrew/.linuxbrew/Cellar/llvm/19.1.3/lib/clang/19/include",
"-isystem/usr/local/include",
"-isystem/usr/include/x86_64-linux-gnu",
"-isystem/usr/include",
"-I/usr/local/include/opencv4",
"-F/usr/local/include/opencv4",
"-I/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp",
"-F/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp",
"-DOCVRS_PARSING_HEADERS",
"-includeocvrs_common.hpp",
"-std=c++14",
]
=== Using environment job server with the the amount of available jobs: 10
=== Generating 3 modules
=== Running: "/home/abolfazl/tplay/target/debug/build/opencv-c6ef15a56afaf8df/build-script-build" "/usr/local/include/opencv4" "/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp" "/home/abolfazl/tplay/target/debug/build/opencv-254afde8815608a9/out" "core" ""
=== Running: "/home/abolfazl/tplay/target/debug/build/opencv-c6ef15a56afaf8df/build-script-build" "/usr/local/include/opencv4" "/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp" "/home/abolfazl/tplay/target/debug/build/opencv-254afde8815608a9/out" "imgproc" ""
=== Running: "/home/abolfazl/tplay/target/debug/build/opencv-c6ef15a56afaf8df/build-script-build" "/usr/local/include/opencv4" "/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp" "/home/abolfazl/tplay/target/debug/build/opencv-254afde8815608a9/out" "videoio" ""
=== WARNING: 1 diagnostic messages
=== /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/ocvrs_common.hpp:18:10: fatal error: 'memory' file not found
thread 'main' panicked at /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-binding-generator-0.93.0/src/generator.rs:400:17:
=== Errors during header parsing
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'gen-imgproc' panicked at /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/build/generator.rs:112:37:
Failed to run the bindings generator for module: imgproc
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
=== WARNING: 1 diagnostic messages
=== /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/ocvrs_common.hpp:18:10: fatal error: 'memory' file not found
thread 'main' panicked at /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-binding-generator-0.93.0/src/generator.rs:400:17:
=== Errors during header parsing
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
=== WARNING: 1 diagnostic messages
=== /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/ocvrs_common.hpp:18:10: fatal error: 'memory' file not found
thread 'main' panicked at /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-binding-generator-0.93.0/src/generator.rs:400:17:
=== Errors during header parsing
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'gen-core' panicked at /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/build/generator.rs:112:37:
Failed to run the bindings generator for module: core
thread 'main' panicked at /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/build/generator.rs:122:36:
Generator process panicked: Any { .. }
thread 'gen-videoio' panicked at /home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/build/generator.rs:112:37:
Failed to run the bindings generator for module: videoio
warning: build failed, waiting for other jobs to finish...
Expected behavior for it to just compile.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Linux Mint 22
-
tplay --version:0.6.0according to Cargo.toml -
yt-dlp --version:2024.04.09 -
mpv --version:mpv 0.37.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects libplacebo version: v6.338.2 FFmpeg version: 6.1.1-3ubuntu5 FFmpeg library versions: libavutil 58.29.100 libavcodec 60.31.102 libavformat 60.16.100 libswscale 7.5.100 libavfilter 9.12.100 libswresample 4.12.100 -
rustc --version:rustc 1.80.0 (051478957 2024-07-21) -
pkg-config --modversion opencv4:4.6.0 -
ffmpeg -version:ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers built with gcc 13 (Ubuntu 13.2.0-23ubuntu3) configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared libavutil 58. 29.100 / 58. 29.100 libavcodec 60. 31.102 / 60. 31.102 libavformat 60. 16.100 / 60. 16.100 libavdevice 60. 3.100 / 60. 3.100 libavfilter 9. 12.100 / 9. 12.100 libswscale 7. 5.100 / 7. 5.100 libswresample 4. 12.100 / 4. 12.100 libpostproc 57. 3.100 / 57. 3.100
Any help would be appreciated.
I think it might be similar to this issue: https://github.com/twistedfall/opencv-rust/issues/604
You might be able to solve this fatal error by making sure the headers can be found by setting relevant env variables.
/home/abolfazl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.93.5/src_cpp/ocvrs_common.hpp:18:10: fatal error: 'memory' file not found
On Fri, 3 Jan 2025, 18:00 acteam-ux, @.***> wrote:
Assigned #51 https://github.com/maxcurzi/tplay/issues/51 to @maxcurzi https://github.com/maxcurzi.
— Reply to this email directly, view it on GitHub https://github.com/maxcurzi/tplay/issues/51#event-15809768262, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHFQ5ATEFBLWBV5IA2MD5ET2I3F27AVCNFSM6AAAAABUSDJ7GWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJVHAYDSNZWHAZDMMQ . You are receiving this because you were assigned.Message ID: @.***>
Hey, sorry for the late reply, I was studying for a physics exam. I looked into the issue you mentioned, and I can't find anything. someone mentioned uninstalling gcc-12 cause apparently the headers are conflicting. but I don't have gcc-12 installed. I'm very new to c/c++, I've only recently started learning it. if its possible, can you tell me what env variables I should set to what paths? thanks.
Add the following environment variables:
export CPLUS_INCLUDE_PATH=/usr/include/c++/12:/usr/include/x86_64-linux-gnu/c++/12
hi @acteam-ux, I just tried the full installation steps from the readme on a fresh Linux mint install, maybe the following will help you to see if you missed a step, it's pretty much the history of every command I ran from the moment I created the virtual machine from a Linux mint 22.1 ISO.
sudo apt update
sudo apt upgrade
sudo apt install curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
sudo apt install libssl-dev libstdc++-12-dev clang libclang-dev ffmpeg libavfilter-dev libavdevice-dev libasound2-dev yt-dlp
sudo apt update && sudo apt install -y cmake g++ wget unzip
unzip opencv.zip
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.x.zip
unzip opencv.zip
mkdir -p build && cd build
cmake ../opencv-4.x
# building will take quite some time, grab a cup of coffee
cmake --build .
sudo make install
cargo install tplay
rustup update
cargo install tplay
# Installation successful!
tplay https://www.youtube.com/watch?v=8UVNT4wvIGY&list=RD8UVNT4wvIGY&start_radio=1
# this failed because youtube thinks I'm a bot
# Googled "demo videos" clicked on the first non-sponsored link on google (www.pexels.com), downloaded a video
tplay 7657449-hd_1920_1080_25fps.mp4
# the command failed because libopencv_videoio.so.4.12.0 could not be found
# Export LD_LIBRARY_PATH, check your folder, I built in my home directory
export LD_LIBRARY_PATH=/home/max/build/lib/:$LD_LIBRARY_PATH
tplay 7657449-hd_1920_1080_25fps.mp4
# this worked :)