-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.envrc
More file actions
15 lines (12 loc) · 825 Bytes
/
.envrc
File metadata and controls
15 lines (12 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Environment variables for OpenCV Rust bindings
export DYLD_LIBRARY_PATH="/opt/homebrew/Cellar/llvm/21.1.1/lib:$DYLD_LIBRARY_PATH"
export LIBCLANG_PATH="/opt/homebrew/Cellar/llvm/21.1.1/lib"
export LLVM_CONFIG_PATH="/opt/homebrew/Cellar/llvm/21.1.1/bin/llvm-config"
# OpenCV environment variables
export OPENCV_LINK_LIBS="opencv_calib3d,opencv_core,opencv_dnn,opencv_features2d,opencv_flann,opencv_highgui,opencv_imgcodecs,opencv_imgproc,opencv_ml,opencv_objdetect,opencv_photo,opencv_stitching,opencv_video,opencv_videoio"
export OPENCV_LINK_PATHS="/opt/homebrew/lib"
export OPENCV_INCLUDE_PATHS="/opt/homebrew/include/opencv4"
# Rust build optimization
export RUSTFLAGS="-C target-cpu=native"
# macOS deployment target - match current system
export MACOSX_DEPLOYMENT_TARGET="$(sw_vers -productVersion | cut -d. -f1,2)"