Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scripts/build-opencv-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,10 @@ CMAKE_ARGS=(
-DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}"
)

if [[ "$(uname)" == "Darwin" ]]; then
echo "Detected macOS host; disabling Carotene to avoid linking issue."
# Disable Carotene (ARM NEON optimizations) to avoid undefined symbol errors
# when statically linking. Carotene requires runtime library that isn't bundled.
if [[ "$(uname)" == "Darwin" ]] || [[ "$(uname -m)" == "aarch64" ]] || [[ "$(uname -m)" == "arm64" ]]; then
echo "Detected ARM host; disabling Carotene to avoid linking issue."
CMAKE_ARGS+=(
-DWITH_CAROTENE=OFF
)
Expand Down
Loading