Skip to content

Commit ff1b4cf

Browse files
committed
fix compilation issue
1 parent a3f5b39 commit ff1b4cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TensorRT/setup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export PATH=/cvmfs/sft.cern.ch/lcg/contrib/CMake/3.7.0/Linux-x86_64/bin/:${PATH}
1515
# some really bad ways to get info out of scram
1616
PYTHON_LIBDIR=$(scram tool info python | grep "LIBDIR=" | sed 's/LIBDIR=//')
1717
PYTHON_INCLUDE=$(scram tool info python | grep "INCLUDE=" | sed 's/INCLUDE=//')
18+
export OPENSSL_ROOT_DIR=$(scram tool info openssl | grep "OPENSSL_BASE=" | sed 's/OPENSSL_BASE=//')
1819

1920
# download and build tensor-rt-inference server
2021
git clone ${ACCESS_GITHUB}NVIDIA/tensorrt-inference-server.git -b r19.10
@@ -34,7 +35,7 @@ cd opencv/
3435
patch -p1 < $CMSSW_BASE/src/SonicCMS/TensorRT/patch.diff
3536
mkdir build
3637
cd build
37-
cmake -D CMAKE_BUILD_TYPE=Release ../ -DPYTHON_LIBRARY=$PYTHON_LIBDIR -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE
38+
cmake -D CMAKE_BUILD_TYPE=Release ../ -DPYTHON_LIBRARY=$PYTHON_LIBDIR -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE -DOPENSSL_ROOT_DIR=$OPENSSL_ROOT_DIR
3839
make -j $CORES
3940

4041
cd ../../

0 commit comments

Comments
 (0)