From 3461452b6d93c8d71e58d1b0f18ff33d1c88aea8 Mon Sep 17 00:00:00 2001 From: HGuillemet Date: Sat, 6 Jul 2024 13:36:08 +0200 Subject: [PATCH] * Enable `opencv_python3` module for `macosx-arm64` as well (pull #1517) --- .github/actions/deploy-macosx/action.yml | 2 +- .github/workflows/opencv.yml | 2 +- CHANGELOG.md | 1 + opencv/cppbuild.sh | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/actions/deploy-macosx/action.yml b/.github/actions/deploy-macosx/action.yml index 57252db5294..b13e9948323 100644 --- a/.github/actions/deploy-macosx/action.yml +++ b/.github/actions/deploy-macosx/action.yml @@ -53,7 +53,6 @@ runs: fi done done - otool -L $(brew ls gcc@13|grep -e ".dylib$"); curl -LO https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz sudo tar -xzf apache-maven-3.6.3-bin.tar.gz -C /usr/local/opt @@ -104,6 +103,7 @@ runs: export LD_LIBRARY_PATH="$LIBRARY_PATH" export DYLD_LIBRARY_PATH="$LIBRARY_PATH" export DYLD_FALLBACK_LIBRARY_PATH="$LIBRARY_PATH" + otool -L $(brew ls gcc@13|grep -e ".dylib$"); fi # Change default JVM on macos-14 runner diff --git a/.github/workflows/opencv.yml b/.github/workflows/opencv.yml index 742c9d1a56f..07fbacc2c6c 100644 --- a/.github/workflows/opencv.yml +++ b/.github/workflows/opencv.yml @@ -66,7 +66,7 @@ jobs: steps: - uses: bytedeco/javacpp-presets/.github/actions/deploy-ubuntu@actions macosx-arm64: - runs-on: macos-12 + runs-on: macos-14 steps: - uses: bytedeco/javacpp-presets/.github/actions/deploy-macosx@actions macosx-x86_64: diff --git a/CHANGELOG.md b/CHANGELOG.md index e9d4eeba6a3..b32ac37aec4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ + * Enable `opencv_python3` module for `macosx-arm64` as well ([pull #1517](https://github.com/bytedeco/javacpp-presets/pull/1517)) * Introduce `macosx-arm64` builds for CPython ([pull #1511](https://github.com/bytedeco/javacpp-presets/pull/1511)), NumPy ([pull #1515](https://github.com/bytedeco/javacpp-presets/pull/1515)), SciPy ([pull #1516](https://github.com/bytedeco/javacpp-presets/pull/1516)) * Update and fix the sample code of the presets for LLVM ([pull #1501](https://github.com/bytedeco/javacpp-presets/pull/1501)) * Fix Vulkan GPU acceleration for FFmpeg ([pull #1497](https://github.com/bytedeco/javacpp-presets/pull/1497)) diff --git a/opencv/cppbuild.sh b/opencv/cppbuild.sh index 40db25e4f20..0da22de6466 100755 --- a/opencv/cppbuild.sh +++ b/opencv/cppbuild.sh @@ -383,7 +383,7 @@ case $PLATFORM in macosx-arm64) # also use pthreads on Mac for increased usability and more consistent behavior with Linux sedinplace '/IF HAVE_GCD/d' CMakeLists.txt - CC="clang -arch arm64" CXX="clang++ -arch arm64" $CMAKE -DAARCH64=ON -DENABLE_NEON=OFF -DENABLE_SSE=OFF -DCMAKE_INSTALL_PREFIX="$INSTALL_PATH" -DCMAKE_INSTALL_LIBDIR="lib" $BUILD_X -DBUILD_opencv_python3=OFF -DENABLE_PRECOMPILED_HEADERS=OFF $WITH_X $GPU_FLAGS $BUILD_CONTRIB_X -DCMAKE_CXX_FLAGS="-w" . + CC="clang -arch arm64" CXX="clang++ -arch arm64" $CMAKE -DAARCH64=ON -DENABLE_NEON=OFF -DENABLE_SSE=OFF -DCMAKE_INSTALL_PREFIX="$INSTALL_PATH" -DCMAKE_INSTALL_LIBDIR="lib" $BUILD_X -DENABLE_PRECOMPILED_HEADERS=OFF $WITH_X $GPU_FLAGS $BUILD_CONTRIB_X -DCMAKE_CXX_FLAGS="-w" . # download files CMake failed to download if [[ -f download_with_curl.sh ]]; then bash download_with_curl.sh