twistedfall / opencv-rust

Rust bindings for OpenCV 3 & 4
MIT License
1.96k stars 157 forks source link

Building 0.89.0 fails on macOS when using vcpkg #560

Closed CeNiEi closed 5 months ago

CeNiEi commented 5 months ago
  --- stdout
  cargo:rerun-if-env-changed=OPENCV4_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_aarch64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_aarch64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_aarch64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_aarch64_apple_darwin
  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_aarch64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_aarch64_apple_darwin
  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_aarch64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_aarch64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=OPENCV_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_aarch64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_aarch64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENCV_STATIC
  cargo:rerun-if-env-changed=OPENCV_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_aarch64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_aarch64_apple_darwin
  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_aarch64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_aarch64_apple_darwin
  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_aarch64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_aarch64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  === Crate version: Some("0.89.0")
  === 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 = None
  ===   PKG_CONFIG_PATH = None
  ===   VCPKG_ROOT = None
  ===   VCPKGRS_DYNAMIC = None
  ===   VCPKGRS_TRIPLET = None
  ===   OCVRS_DOCS_GENERATE_DIR = None
  ===   DOCS_RS = None
  ===   PATH = Some("/Users/tushar/miniconda3/bin:/Users/tushar/.cabal/bin:/Users/tushar/.ghcup/bin:/Users/tushar/.local/share/nvm/v18.17.1/bin:/Users/tushar/roc/roc_nightly-macos_apple_silicon-2023-12-04-a187d141bd8:/Users/tushar/zig/zig-macos-aarch64-0.11.0:/Users/tushar/roc/roc_nightly-macos_apple_silicon-2023-11-21-2afd9ca0a9:/Users/tushar/.cargo/bin:/opt/homebrew/bin:/opt/homebrew/opt/fzf/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin")
  === Enabled features:
  ===   CLANG_RUNTIME
  ===   IMGCODECS
  ===   IMGPROC
  === 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 "/Users/tushar/Meditations/vccv/target/debug/build/opencv-57ddee66da0aceee/out/cmake_probe_build" && "cmake" "-S" "/Users/tushar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.89.0/cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_BUILD_TYPE=Debug" "-G" "Ninja"
  === Probing with cmake ninja generator failed, will try Makefile generator, error: cmake returned an error
      stdout: "-- The C compiler identification is AppleClang 14.0.3.14030022\n-- The CXX compiler identification is AppleClang 14.0.3.14030022\n-- Detecting C compiler ABI info\n-- Detecting C compiler ABI info - done\n-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped\n-- Detecting CXX compile features\n-- Detecting CXX compile features - done\n-- Configuring incomplete, errors occurred!\n"
      stderr: "CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):\n  Compatibility with CMake < 3.5 will be removed from a future version of\n  CMake.\n\n  Update the VERSION argument <min> value or use a ...<max> suffix to tell\n  CMake that the project does not need compatibility with older versions.\n\n\nCMake Error at /usr/local/lib/cmake/opencv4/OpenCVModules.cmake:155 (message):\n  The imported target \"libprotobuf\" references the file\n\n     \"/usr/local/lib/opencv4/3rdparty/liblibprotobuf.a\"\n\n  but this file does not exist.  Possible reasons include:\n\n  * The file was deleted, renamed, or moved to another location.\n\n  * An install or uninstall procedure did not complete successfully.\n\n  * The installation package was faulty and contained\n\n     \"/usr/local/lib/cmake/opencv4/OpenCVModules.cmake\"\n\n  but not all the files it references.\n\nCall Stack (most recent call first):\n  /usr/local/lib/cmake/opencv4/OpenCVConfig.cmake:126 (include)\n  CMakeLists.txt:5 (find_package)\n\n\n"
  === cmake makefiles probe command: cd "/Users/tushar/Meditations/vccv/target/debug/build/opencv-57ddee66da0aceee/out/cmake_probe_build" && "cmake" "-S" "/Users/tushar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.89.0/cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_BUILD_TYPE=Debug" "-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 AppleClang 14.0.3.14030022\n-- The CXX compiler identification is AppleClang 14.0.3.14030022\n-- Detecting C compiler ABI info\n-- Detecting C compiler ABI info - done\n-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped\n-- Detecting CXX compile features\n-- Detecting CXX compile features - done\n-- Configuring incomplete, errors occurred!\n"
      stderr: "CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):\n  Compatibility with CMake < 3.5 will be removed from a future version of\n  CMake.\n\n  Update the VERSION argument <min> value or use a ...<max> suffix to tell\n  CMake that the project does not need compatibility with older versions.\n\n\nCMake Error at /usr/local/lib/cmake/opencv4/OpenCVModules.cmake:155 (message):\n  The imported target \"libprotobuf\" references the file\n\n     \"/usr/local/lib/opencv4/3rdparty/liblibprotobuf.a\"\n\n  but this file does not exist.  Possible reasons include:\n\n  * The file was deleted, renamed, or moved to another location.\n\n  * An install or uninstall procedure did not complete successfully.\n\n  * The installation package was faulty and contained\n\n     \"/usr/local/lib/cmake/opencv4/OpenCVModules.cmake\"\n\n  but not all the files it references.\n\nCall Stack (most recent call first):\n  /usr/local/lib/cmake/opencv4/OpenCVConfig.cmake:126 (include)\n  CMakeLists.txt:5 (find_package)\n\n\n"
  === cmake find-package compile probe command: cd "/Users/tushar/Meditations/vccv/target/debug/build/opencv-57ddee66da0aceee/out/cmake_probe_build" && "cmake" "-S" "/Users/tushar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.89.0/cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_BUILD_TYPE=Debug" "--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 at /usr/local/lib/cmake/opencv4/OpenCVModules.cmake:155 (message):\n  The imported target \"libprotobuf\" references the file\n\n     \"/usr/local/lib/opencv4/3rdparty/liblibprotobuf.a\"\n\n  but this file does not exist.  Possible reasons include:\n\n  * The file was deleted, renamed, or moved to another location.\n\n  * An install or uninstall procedure did not complete successfully.\n\n  * The installation package was faulty and contained\n\n     \"/usr/local/lib/cmake/opencv4/OpenCVModules.cmake\"\n\n  but not all the files it references.\n\nCall Stack (most recent call first):\n  /usr/local/lib/cmake/opencv4/OpenCVConfig.cmake:126 (include)\n  /opt/homebrew/Cellar/cmake/3.29.0/share/cmake/Modules/CMakeFindPackageMode.cmake:182 (find_package)\n\n\nCMake Error: Run 'cmake --help' for all supported options.\n"
  === Probing OpenCV library using vcpkg_cmake
  === Discovered vcpkg root: /Users/tushar/Meditations/vccv/target/vcpkg
  === Probing OpenCV library using cmake with toolchain: /Users/tushar/Meditations/vccv/target/vcpkg/scripts/buildsystems/vcpkg.cmake
  === cmake ninja probe command: cd "/Users/tushar/Meditations/vccv/target/debug/build/opencv-57ddee66da0aceee/out/cmake_probe_build" && "cmake" "-S" "/Users/tushar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.89.0/cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_TOOLCHAIN_FILE=/Users/tushar/Meditations/vccv/target/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=Debug" "-G" "Ninja"
  === Probing with cmake ninja generator failed, will try Makefile generator, error: cmake returned an error
      stdout: "-- The C compiler identification is AppleClang 14.0.3.14030022\n-- The CXX compiler identification is AppleClang 14.0.3.14030022\n-- Detecting C compiler ABI info\n-- Detecting C compiler ABI info - done\n-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped\n-- Detecting CXX compile features\n-- Detecting CXX compile features - done\n-- Configuring incomplete, errors occurred!\n"
      stderr: "CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):\n  Compatibility with CMake < 3.5 will be removed from a future version of\n  CMake.\n\n  Update the VERSION argument <min> value or use a ...<max> suffix to tell\n  CMake that the project does not need compatibility with older versions.\n\n\nCMake Warning at /Users/tushar/Meditations/vccv/target/vcpkg/scripts/buildsystems/vcpkg.cmake:116 (message):\n  Unable to determine target architecture, continuing without vcpkg.\nCall Stack (most recent call first):\n  /opt/homebrew/Cellar/cmake/3.29.0/share/cmake/Modules/CMakeDetermineSystem.cmake:146 (include)\n  CMakeLists.txt:3 (project)\n\n\nCMake Error at /usr/local/lib/cmake/opencv4/OpenCVModules.cmake:155 (message):\n  The imported target \"libprotobuf\" references the file\n\n     \"/usr/local/lib/opencv4/3rdparty/liblibprotobuf.a\"\n\n  but this file does not exist.  Possible reasons include:\n\n  * The file was deleted, renamed, or moved to another location.\n\n  * An install or uninstall procedure did not complete successfully.\n\n  * The installation package was faulty and contained\n\n     \"/usr/local/lib/cmake/opencv4/OpenCVModules.cmake\"\n\n  but not all the files it references.\n\nCall Stack (most recent call first):\n  /usr/local/lib/cmake/opencv4/OpenCVConfig.cmake:126 (include)\n  CMakeLists.txt:5 (find_package)\n\n\n"
  === cmake makefiles probe command: cd "/Users/tushar/Meditations/vccv/target/debug/build/opencv-57ddee66da0aceee/out/cmake_probe_build" && "cmake" "-S" "/Users/tushar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.89.0/cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_TOOLCHAIN_FILE=/Users/tushar/Meditations/vccv/target/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=Debug" "-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 AppleClang 14.0.3.14030022\n-- The CXX compiler identification is AppleClang 14.0.3.14030022\n-- Detecting C compiler ABI info\n-- Detecting C compiler ABI info - done\n-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped\n-- Detecting CXX compile features\n-- Detecting CXX compile features - done\n-- Configuring incomplete, errors occurred!\n"
      stderr: "CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):\n  Compatibility with CMake < 3.5 will be removed from a future version of\n  CMake.\n\n  Update the VERSION argument <min> value or use a ...<max> suffix to tell\n  CMake that the project does not need compatibility with older versions.\n\n\nCMake Warning at /Users/tushar/Meditations/vccv/target/vcpkg/scripts/buildsystems/vcpkg.cmake:116 (message):\n  Unable to determine target architecture, continuing without vcpkg.\nCall Stack (most recent call first):\n  /opt/homebrew/Cellar/cmake/3.29.0/share/cmake/Modules/CMakeDetermineSystem.cmake:146 (include)\n  CMakeLists.txt:3 (project)\n\n\nCMake Error at /usr/local/lib/cmake/opencv4/OpenCVModules.cmake:155 (message):\n  The imported target \"libprotobuf\" references the file\n\n     \"/usr/local/lib/opencv4/3rdparty/liblibprotobuf.a\"\n\n  but this file does not exist.  Possible reasons include:\n\n  * The file was deleted, renamed, or moved to another location.\n\n  * An install or uninstall procedure did not complete successfully.\n\n  * The installation package was faulty and contained\n\n     \"/usr/local/lib/cmake/opencv4/OpenCVModules.cmake\"\n\n  but not all the files it references.\n\nCall Stack (most recent call first):\n  /usr/local/lib/cmake/opencv4/OpenCVConfig.cmake:126 (include)\n  CMakeLists.txt:5 (find_package)\n\n\n"
  === cmake find-package compile probe command: cd "/Users/tushar/Meditations/vccv/target/debug/build/opencv-57ddee66da0aceee/out/cmake_probe_build" && "cmake" "-S" "/Users/tushar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.89.0/cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_TOOLCHAIN_FILE=/Users/tushar/Meditations/vccv/target/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=Debug" "--find-package" "-DCOMPILER_ID=GNU" "-DLANGUAGE=CXX" "-DMODE=COMPILE" "-DNAME=OpenCV"
  === Can't probe using: vcpkg_cmake, continuing with other methods because: cmake returned an error
      stdout: "OpenCV not found.\n"
      stderr: "CMake Warning at /Users/tushar/Meditations/vccv/target/vcpkg/scripts/buildsystems/vcpkg.cmake:116 (message):\n  Unable to determine target architecture, continuing without vcpkg.\nCall Stack (most recent call first):\n  /opt/homebrew/Cellar/cmake/3.29.0/share/cmake/Modules/CMakeDetermineSystem.cmake:146 (include)\n  /opt/homebrew/Cellar/cmake/3.29.0/share/cmake/Modules/CMakeFindPackageMode.cmake:60 (include)\n\n\nCMake Error at /usr/local/lib/cmake/opencv4/OpenCVModules.cmake:155 (message):\n  The imported target \"libprotobuf\" references the file\n\n     \"/usr/local/lib/opencv4/3rdparty/liblibprotobuf.a\"\n\n  but this file does not exist.  Possible reasons include:\n\n  * The file was deleted, renamed, or moved to another location.\n\n  * An install or uninstall procedure did not complete successfully.\n\n  * The installation package was faulty and contained\n\n     \"/usr/local/lib/cmake/opencv4/OpenCVModules.cmake\"\n\n  but not all the files it references.\n\nCall Stack (most recent call first):\n  /usr/local/lib/cmake/opencv4/OpenCVConfig.cmake:126 (include)\n  /opt/homebrew/Cellar/cmake/3.29.0/share/cmake/Modules/CMakeFindPackageMode.cmake:182 (find_package)\n\n\nCMake Error: Run 'cmake --help' for all supported options.\n"
  === Probing OpenCV library using vcpkg
  === Can't probe using: vcpkg, continuing with other methods because: Could not find library in Vcpkg tree package opencv4 is not installed for vcpkg triplet arm64-osx, Could not find library in Vcpkg tree package opencv3 is not installed for vcpkg triplet arm64-osx
  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"

here is the vcpkg metadata

[package.metadata.vcpkg]
git = "https://github.com/microsoft/vcpkg"
rev = "4c1db68"
dependencies = ["opencv4[core,jpeg,tiff]"]
twistedfall commented 5 months ago

I haven't tried using vcpg in macOS personally, but as far as I can see the vcpkg probe fails:

 === Can't probe using: vcpkg, continuing with other methods because: Could not find library in Vcpkg tree package opencv4 is not installed for vcpkg triplet arm64-osx, Could not find library in Vcpkg tree package opencv3 is not installed for vcpkg triplet arm64-osx

So you can double-check if the triplet matches and if it does make sure that necessary config for vcpkg is done (like environment variables and such). As a test you can try using https://crates.io/crates/vcpkg in a separate test project to see if it can find OpenCV package.

twistedfall commented 5 months ago

I have added macOS + vcpkg build to the CI and it works. Please check the installation here: https://github.com/twistedfall/opencv-rust/blob/master/ci/install-macos-vcpkg.sh and the env setup here: https://github.com/twistedfall/opencv-rust/blob/master/ci/script.sh#L25-L28 after that the build should just work.