mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
* add prebuild dockerfile * add prebuild test workflw * update * update * rm other workflow for test * Update docker image * add win1o prebuild * add test prebuild * add windows scripts in prebuilt package * add linux scripts in prebuilt package * generate_build_config.py * fix cudnn search * fix env * fix script * fix rpath * fix cwd * fix windows * fix lint * windows prebuild ci * linux prebuild ci * fix * update trigger * Revert "rm other workflow for test" This reverts commit 0a0387275014efab71046d33a0e52904672b4012. * update sdk build readme * update prebuild * fix dll deps for python >= 3.8 on windows * fix ci * test prebuild * update test script to avoid modify upload folder * add onnxruntime.dll to mmdeploy_python * update prebuild workflow * update prebuild * Update loader.cpp.in * remove exists prebuild files * fix opencv env * update cmake options for mmdeploy python build * remove test code * fix lint --------- Co-authored-by: RunningLeon <mnsheng@yeah.net> Co-authored-by: RunningLeon <maningsheng@sensetime.com>
30 lines
534 B
Bash
Executable File
30 lines
534 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
opencvVer="4.5.5"
|
|
|
|
WORKSPACE=$(realpath $(dirname "$0"))
|
|
THIRDPARTY_DIR="${WORKSPACE}/thirdparty"
|
|
|
|
if [ ! -d $THIRDPARTY_DIR ]; then
|
|
echo $THIRDPARTY_DIR
|
|
mkdir -p $THIRDPARTY_DIR
|
|
fi
|
|
|
|
pushd ${THIRDPARTY_DIR}
|
|
|
|
url="https://github.com/opencv/opencv/archive/refs/tags/$opencvVer.tar.gz"
|
|
wget $url
|
|
tar xf $opencvVer.tar.gz
|
|
mv opencv-$opencvVer opencv
|
|
|
|
pushd opencv
|
|
|
|
mkdir build
|
|
pushd build
|
|
cmake .. -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=../install
|
|
make -j$(nproc)
|
|
make install
|
|
|
|
pushd -3
|