From 9ebd6db1771b3850f3fda355bbbac9ed439592cf Mon Sep 17 00:00:00 2001
From: Joe Garcia <joe.garcia@ssec.wisc.edu>
Date: Sat, 21 Dec 2019 11:29:08 -0600
Subject: [PATCH] exploring opencv as part of lidar trim

---
 ShellB3/shallbethree.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/ShellB3/shallbethree.sh b/ShellB3/shallbethree.sh
index dce84b19..ea91e659 100755
--- a/ShellB3/shallbethree.sh
+++ b/ShellB3/shallbethree.sh
@@ -5412,6 +5412,14 @@ mk_opencv() {
       -DOpenBLAS_HOME=${BASE} \
     || oops "OpenCV failed to build"
 
+  if isDarwin ; then
+     macho_repath --libraries="libopencv*.dylib" --extra-dylibs=lib
+     if [ -e lib/python${PYFSVER}/site-packages/cv2 ] ; then
+      ln -s  ../../../../../../../../lib/python${PYFSVER}/site-packages/cv2 \
+        Library/Frameworks/Python.framework/Versions/${PYFSVER}/lib/python${PYFSVER}/site-packages/
+     fi
+   fi
+
   return 0
 }
 
@@ -10812,6 +10820,8 @@ _mk_lidar() {
     && mk_patsy \
     && mk_statsmodels \
     && mk_geopy \
+    && mk_eigen \
+    && mk_opencv \
     && mk_memoryprofiler \
     && mk_nccmp \
     && mk_ssec_all \
-- 
GitLab