-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·29 lines (22 loc) · 880 Bytes
/
setup.sh
File metadata and controls
executable file
·29 lines (22 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# SPECIFY WHERE OPENCV IS
export OPENCV_LIBDIR=/usr/local/lib
export OPENCV_INCDIR=/usr/local/include
# uncomment this if you want to include headers using #include "larcv/PackageName/Header.h"
#export LARCV_PREFIX_INCDIR=1
suffix=so
if [[ `uname` == 'Darwin' ]]; then
suffix=dylib
# setting opencv paths to use location used by homebrew.
# change this here, if you used another location
export OPENCV_LIBDIR=/usr/local/opt/opencv3/lib
export OPENCV_INCDIR=/usr/local/opt/opencv3/include
fi
if [ ! -f $OPENCV_LIBDIR/libopencv_core.${suffix} ]; then
echo "OPENCV LIBRARY NOT FOUND. Set env variable OPENCV_LIBDIR to where libopencv_core.${suffix} lives"
return 1
fi
if [ ! -f $OPENCV_INCDIR/opencv/cv.h ]; then
echo "OPENCV INCLUDES NOT FOUND. Please set env variable OPENCV_INCDIR to where opencv/cv.h lives"
return 1
fi