File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 3
3
# Setting up build env
4
4
sudo yum update -y
5
5
sudo yum install -y git cmake gcc-c++ gcc python-devel chrpath
6
- mkdir -p lambda-package/cv2 lambda-package/dlib build/numpy build/dlib build/patchelf
6
+ mkdir -p lambda-package/cv2 lambda-package/dlib build/numpy build/dlib
7
7
8
8
# download and make patchelf - this will let us quickly update dlib.so's LD_LIBRARY path
9
- (
10
- cd build/patchelf
11
- wget https://nixos.org/releases/patchelf/patchelf-0.9/patchelf-0.9.tar.bz2 # https://github.com/NixOS/patchelf/archive/0.9.zip
12
- tar xvfj patchelf-0.9.tar.bz2
13
- cd patchelf-0.9 && ./configure && make && sudo make install
14
- )
9
+ # mkdir -p build/patchelf
10
+ # (
11
+ # cd build/patchelf
12
+ # wget https://nixos.org/releases/patchelf/patchelf-0.9/patchelf-0.9.tar.bz2 #https://github.com/NixOS/patchelf/archive/0.9.zip
13
+ # tar xvfj patchelf-0.9.tar.bz2
14
+ # cd patchelf-0.9 && ./configure && make && sudo make install
15
+ # )
15
16
16
17
# Build numpy
17
18
pip install --install-option=" --prefix=$PWD /build/numpy" numpy
@@ -60,8 +61,9 @@ sudo yum install -y blas-devel boost-devel lapack-devel
60
61
)
61
62
cp build/dlib/python_examples/dlib.so lambda-package/dlib/__init__.so
62
63
cp /usr/lib64/libboost_python-mt.so.1.53.0 lambda-package/dlib/
64
+ chrpath -r ' $ORIGIN' lambda-package/dlib/__init__.so
63
65
touch lambda-package/dlib/__init__.py
64
- patchelf --set-rpath ' $ORIGIN' lambda-package/dlib/__init__.so
66
+ # patchelf --set-rpath '$ORIGIN' lambda-package/dlib/__init__.so
65
67
66
68
# This shape_predictor for dlib is useful for face recognition
67
69
wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
You can’t perform that action at this time.
0 commit comments