Skip to content

Commit 06c6d7c

Browse files
committed
trying to get rpath straight for boost dependencies…
1 parent 620c03a commit 06c6d7c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

build.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
# Setting up build env
44
sudo yum update -y
55
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
77

88
# 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+
#)
1516

1617
# Build numpy
1718
pip install --install-option="--prefix=$PWD/build/numpy" numpy
@@ -60,8 +61,9 @@ sudo yum install -y blas-devel boost-devel lapack-devel
6061
)
6162
cp build/dlib/python_examples/dlib.so lambda-package/dlib/__init__.so
6263
cp /usr/lib64/libboost_python-mt.so.1.53.0 lambda-package/dlib/
64+
chrpath -r '$ORIGIN' lambda-package/dlib/__init__.so
6365
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
6567

6668
# This shape_predictor for dlib is useful for face recognition
6769
wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2

0 commit comments

Comments
 (0)