=== Detected probe priority based on environment vars: pkg_config: false, cmake: false, vcpkg: false
=== Probing the OpenCV library in the following order: environment, pkg_config, cmake, vcpkg_cmake, vcpkg
=== Can't probe using: environment, continuing with other methods because: Some environment variables are missing
=== Probing OpenCV library using pkg_config
=== Can't probe using: pkg_config, continuing with other methods because:
pkg-config exited with status code 1
> PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags opencv4
The system library `opencv4` required by crate `opencv` was not found.
The file `opencv4.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
The PKG_CONFIG_PATH environment variable is not set.
HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `opencv4.pc`.
,
pkg-config exited with status code 1
> PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags opencv
The system library `opencv` required by crate `opencv` was not found.
The file `opencv.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
The PKG_CONFIG_PATH environment variable is not set.
HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `opencv.pc`.
=== Probing OpenCV library using cmake
=== cmake ninja probe command: cd "/home/dronelab/workspace/e4e/fishsense/fishsense-lite/.venv/src/pyFishSense/target/release/build/opencv-9e628af0e7e68dfe/out/cmake_probe_build" && "cmake" "-S" "/home/dronelab/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.91.3/cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_BUILD_TYPE=Release" "-G" "Ninja"
=== Probing with cmake ninja generator failed, will try Makefile generator, error: cmake returned an error
stdout: "-- Configuring incomplete, errors occurred!\n"
stderr: "CMake Error: CMake was unable to find a build program corresponding to \"Ninja\". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.\nCMake Error: CMAKE_C_COMPILER not set, after EnableLanguage\nCMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage\n"
=== cmake makefiles probe command: cd "/home/dronelab/workspace/e4e/fishsense/fishsense-lite/.venv/src/pyFishSense/target/release/build/opencv-9e628af0e7e68dfe/out/cmake_probe_build" && "cmake" "-S" "/home/dronelab/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.91.3/cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_BUILD_TYPE=Release" "-G" "Unix Makefiles"
=== Probing with cmake Makefile generator failed, will try deprecated find_package, error: cmake returned an error
stdout: "-- The C compiler identification is GNU 13.2.0\n-- The CXX compiler identification is GNU 13.2.0\n-- Detecting C compiler ABI info\n-- Detecting C compiler ABI info - done\n-- Check for working C compiler: /usr/bin/cc - skipped\n-- Detecting C compile features\n-- Detecting C compile features - done\n-- Detecting CXX compiler ABI info\n-- Detecting CXX compiler ABI info - done\n-- Check for working CXX compiler: /usr/bin/c++ - skipped\n-- Detecting CXX compile features\n-- Detecting CXX compile features - done\n-- Configuring incomplete, errors occurred!\n"
stderr: "CMake Error at CMakeLists.txt:5 (find_package):\n By not providing \"FindOpenCV.cmake\" in CMAKE_MODULE_PATH this project has\n asked CMake to find a package configuration file provided by \"OpenCV\", but\n CMake did not find one.\n\n Could not find a package configuration file provided by \"OpenCV\" with any\n of the following names:\n\n OpenCVConfig.cmake\n opencv-config.cmake\n\n Add the installation prefix of \"OpenCV\" to CMAKE_PREFIX_PATH or set\n \"OpenCV_DIR\" to a directory containing one of the above files. If \"OpenCV\"\n provides a separate development package or SDK, be sure it has been\n installed.\n\n\n"
=== cmake find-package compile probe command: cd "/home/dronelab/workspace/e4e/fishsense/fishsense-lite/.venv/src/pyFishSense/target/release/build/opencv-9e628af0e7e68dfe/out/cmake_probe_build" && "cmake" "-S" "/home/dronelab/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.91.3/cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_BUILD_TYPE=Release" "--find-package" "-DCOMPILER_ID=GNU" "-DLANGUAGE=CXX" "-DMODE=COMPILE" "-DNAME=OpenCV"
=== Can't probe using: cmake, continuing with other methods because: cmake returned an error
stdout: "OpenCV not found.\n"
stderr: "CMake Error: Run 'cmake --help' for all supported options.\n"
=== Probing OpenCV library using vcpkg_cmake
=== Can't probe using: vcpkg_cmake, continuing with other methods because: Could not find Vcpkg tree: No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'
=== Probing OpenCV library using vcpkg
=== Can't probe using: vcpkg, continuing with other methods because: Could not find Vcpkg tree: No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install', Could not find Vcpkg tree: No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'
Error: "Failed to find installed OpenCV package using probes: environment, pkg_config, cmake, vcpkg_cmake, vcpkg, refer to https://github.com/twistedfall/opencv-rust#getting-opencv for help"
warning: build failed, waiting for other jobs to finish...
š„ maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.11-64bit" PYO3_PYTHON="/tmp/tmpultlvbws/.venv/bin/python" PYTHON_SYS_EXECUTABLE="/tmp/tmpultlvbws/.venv/bin/python" "cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "/home/dronelab/workspace/e4e/fishsense/fishsense-lite/.venv/src/pyFishSense/Cargo.toml" "--release" "--lib"`
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/tmp/tmpultlvbws/.venv/bin/python', '--compatibility', 'off'] returned non-zero exit status 1
at ~/.pyenv/versions/3.11.9/lib/python3.11/site-packages/poetry/installation/chef.py:164 in _prepare
160ā
161ā error = ChefBuildError("\n\n".join(message_parts))
162ā
163ā if error is not None:
ā 164ā raise error from None
165ā
166ā return path
167ā
168ā def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path: