Skip to content

Commit cdb6eb1

Browse files
committed
fix(opencv): skip OpenCV Python detection (OPENCV_PYTHON_SKIP_DETECTION)
With the glibc LINK env fixed, cmake configure advances but errors in OpenCVDetectPython: it finds xlings' python3 shim, reads an EMPTY PYTHON_VERSION_STRING, and calls find_package with an invalid 'OFF' argument -> hard configure error. We build no python bindings, so skip detection entirely (the module return()s early).
1 parent 1ffbf86 commit cdb6eb1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkgs/c/compat.opencv.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@ local function _install_impl()
222222
"-DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_EXAMPLES=OFF",
223223
"-DBUILD_opencv_apps=OFF -DBUILD_opencv_python3=OFF -DBUILD_JAVA=OFF",
224224
"-DBUILD_opencv_python_bindings_generator=OFF -DBUILD_opencv_js=OFF",
225+
-- Skip Python detection entirely (we build no bindings). Without this,
226+
-- OpenCVDetectPython finds xlings' python3 shim, reads an EMPTY version
227+
-- string, and calls find_package with an invalid "OFF" argument -> a hard
228+
-- CMake configure error. OPENCV_PYTHON_SKIP_DETECTION makes the module
229+
-- return() before any find_python.
230+
"-DOPENCV_PYTHON_SKIP_DETECTION=ON",
225231
"-DBUILD_ZLIB=ON -DBUILD_PNG=ON -DBUILD_JPEG=ON",
226232
"-DWITH_PNG=ON -DWITH_JPEG=ON",
227233
"-DWITH_ADE=OFF -DWITH_IPP=OFF -DWITH_ITT=OFF -DWITH_TBB=OFF -DWITH_OPENMP=OFF",

0 commit comments

Comments
 (0)