Skip to content

Commit 16dbb02

Browse files
committed
fix(compat.opencv): WITH_CAROTENE=OFF — drop arm64 NEON HAL, unblock macOS link
On arm64 imgproc emitted undefined carotene_o4t::* symbols at consumer link time (libtegra_hal.a not in the curated link set). Disabling the carotene HAL routes imgproc through its baseline C++ path, no extra lib. Linux green already; Ninja generator + this fix take macOS to a full host-free source build + link + run.
1 parent aa7e780 commit 16dbb02

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pkgs/c/compat.opencv.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,11 @@ 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",
305310
"-DWITH_ADE=OFF -DWITH_IPP=OFF -DWITH_ITT=OFF -DWITH_TBB=OFF -DWITH_OPENMP=OFF",
306311
"-DWITH_OPENCL=OFF -DWITH_CUDA=OFF -DWITH_EIGEN=OFF -DWITH_PROTOBUF=OFF",
307312
"-DWITH_FFMPEG=OFF -DWITH_GTK=OFF -DWITH_QT=OFF -DWITH_GSTREAMER=OFF",

0 commit comments

Comments
 (0)