Skip to content

Commit 815e9f6

Browse files
committed
fix(compat.opencv): WITH_KLEIDICV=OFF too — drop the other arm64 NEON HAL
Carotene fix surfaced the next default-ON Apple-Silicon HAL: KleidiCV (kleidicv::hal::*) undefined at consumer link. Disable both arm64 HALs so core/imgproc use the baseline C++ path — no extra static HAL lib to link.
1 parent 16dbb02 commit 815e9f6

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

pkgs/c/compat.opencv.lua

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,13 @@ local function _install_impl()
302302
"-DOPENCV_PYTHON_SKIP_DETECTION=ON",
303303
"-DBUILD_ZLIB=ON -DBUILD_PNG=ON -DBUILD_JPEG=ON",
304304
"-DWITH_PNG=ON -DWITH_JPEG=ON",
305-
-- WITH_CAROTENE=OFF: on arm64 OpenCV's imgproc emits calls into the carotene
306-
-- NEON HAL (libtegra_hal.a) that our curated link set doesn't carry, so the
307-
-- consumer link fails with undefined carotene_o4t::* symbols. Off => imgproc
308-
-- uses its baseline C++ path; no extra platform-specific static lib to link.
309-
"-DWITH_CAROTENE=OFF",
305+
-- Disable the arm64 NEON HALs (both default-ON on Apple Silicon): carotene
306+
-- (libtegra_hal.a, carotene_o4t::*) and KleidiCV (kleidicv::hal::*). OpenCV's
307+
-- core/imgproc emit direct calls into whichever HAL is enabled, but those
308+
-- static HAL archives aren't in our curated link set, so the consumer link
309+
-- fails with undefined HAL symbols. Off => baseline C++ path, no extra
310+
-- platform-specific static lib to carry.
311+
"-DWITH_CAROTENE=OFF -DWITH_KLEIDICV=OFF",
310312
"-DWITH_ADE=OFF -DWITH_IPP=OFF -DWITH_ITT=OFF -DWITH_TBB=OFF -DWITH_OPENMP=OFF",
311313
"-DWITH_OPENCL=OFF -DWITH_CUDA=OFF -DWITH_EIGEN=OFF -DWITH_PROTOBUF=OFF",
312314
"-DWITH_FFMPEG=OFF -DWITH_GTK=OFF -DWITH_QT=OFF -DWITH_GSTREAMER=OFF",

0 commit comments

Comments
 (0)