Skip to content

Commit 1b8fc4d

Browse files
committed
fix(ci): macos opencv snapshot — install numpy + build SHARED ffmpeg prefix (static link-probe fails on macOS frameworks → HAVE_FFMPEG missing)
1 parent 20c4993 commit 1b8fc4d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/snapshot-macos-opencv.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
- run: brew install cmake ninja nasm
15+
- run: pip3 install --break-system-packages numpy || pip3 install numpy
1516
- name: fetch sources (ffmpeg 8.1.2 + opencv 5.0.0)
1617
run: |
1718
set -eux
@@ -27,7 +28,7 @@ jobs:
2728
set -eux
2829
mkdir ffbuild && cd ffbuild
2930
../ffmpeg-8.1.2/configure --cc=clang --prefix="$PWD/../ffprefix" \
30-
--disable-shared --enable-static --disable-programs --disable-doc \
31+
--enable-shared --disable-static --disable-programs --disable-doc \
3132
--disable-autodetect --enable-pic
3233
make -j"$(sysctl -n hw.ncpu)" && make install
3334
echo "FFMPEG_PREFIX=$PWD/../ffprefix" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)