mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
* rename mmdeploy_python -> mmdeploy_runtime * remove incompatible build config * Revert "remove incompatible build config" This reverts commit cdc780cde52c0417e6a5408001fb5ddef1a9498d. * fix builder * update package_tools docs * fix linux set_env script * fix gcc 7.3 aligned_alloc * fix link * comment temporarily as text_det_recog can't be built with prebuild package built under manylinux
30 lines
708 B
Bash
Executable File
30 lines
708 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -n "$1" ]; then
|
|
WORKSPACE=$1
|
|
else
|
|
WORKSPACE=$(realpath $(dirname "${BASH_SOURCE[0]}"))
|
|
fi
|
|
|
|
THIRDPARTY_DIR=$WORKSPACE/thirdparty
|
|
|
|
pushd $THIRDPARTY_DIR
|
|
|
|
if [ -d onnxruntime ]; then
|
|
export ONNXRUNTIME_DIR=$THIRDPARTY_DIR/onnxruntime
|
|
export LD_LIBRARY_PATH=$ONNXRUNTIME_DIR/lib:$LD_LIBRARY_PATH
|
|
fi
|
|
|
|
if [ -d tensorrt ]; then
|
|
export TENSORRT_DIR=$THIRDPARTY_DIR/tensorrt
|
|
export LD_LIBRARY_PATH=$TENSORRT_DIR/lib:$LD_LIBRARY_PATH
|
|
fi
|
|
|
|
if [ -d openvino ]; then
|
|
export InferenceEngine_DIR=$THIRDPARTY_DIR/runtime/cmake
|
|
sopaths=$(find $(pwd)/openvino -name "*.so" -exec dirname {} \; | uniq | tr '\n' ':')
|
|
export LD_LIBRARY_PATH=$sopaths$LD_LIBRARY_PATH
|
|
fi
|
|
|
|
popd
|