Skip to content

Commit 6d28130

Browse files
committed
fix(compat.opencv): WITH_LAPACK=OFF — drop macOS Accelerate BLAS/LAPACK dep
Apple Silicon auto-found the Accelerate framework and emitted cblas_*/ lapack (sgesv_/dgetrf_/…) calls the consumer doesn't link. Off => core uses its built-in fallback; no external BLAS/LAPACK to carry (host-free, consistent with the IPP/TBB/Eigen-off minimal profile).
1 parent 815e9f6 commit 6d28130

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkgs/c/compat.opencv.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ local function _install_impl()
310310
-- platform-specific static lib to carry.
311311
"-DWITH_CAROTENE=OFF -DWITH_KLEIDICV=OFF",
312312
"-DWITH_ADE=OFF -DWITH_IPP=OFF -DWITH_ITT=OFF -DWITH_TBB=OFF -DWITH_OPENMP=OFF",
313+
-- WITH_LAPACK=OFF: on macOS OpenCV auto-finds the Accelerate framework and
314+
-- emits cblas_*/sgesv_/… calls into it; core's built-in fallback is used
315+
-- instead, so the consumer needn't link Accelerate (host-free, minimal set).
316+
"-DWITH_LAPACK=OFF",
313317
"-DWITH_OPENCL=OFF -DWITH_CUDA=OFF -DWITH_EIGEN=OFF -DWITH_PROTOBUF=OFF",
314318
"-DWITH_FFMPEG=OFF -DWITH_GTK=OFF -DWITH_QT=OFF -DWITH_GSTREAMER=OFF",
315319
"-DWITH_V4L=OFF -DWITH_1394=OFF -DWITH_TIFF=OFF -DWITH_WEBP=OFF",

0 commit comments

Comments
 (0)