1 Star 0 Fork 1.7K

ivanallen/EasyPR

forked from liuruoze/EasyPR 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.sh 767 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env bash
cd `dirname $0`
__dirname=`pwd`
PLATFORM=`uname | awk '{print tolower($1)}'`
BUILD_TMP_PATH=${__dirname}/_build
BINARY_NAME=demo_${PLATFORM}_amd64
BINARY_DIR=${__dirname}/bin
BINARY_FULL_PATH=${BINARY_DIR}/${BINARY_NAME}
BUILD_BINARY_FULL_PATH=${BUILD_TMP_PATH}/${BINARY_NAME}
# cleanup
if [ -f ${BUILD_BINARY_FULL_PATH} ];then
rm ${BUILD_BINARY_FULL_PATH}
fi
# create tmp dir for cmake
mkdir -p ${BUILD_TMP_PATH}
# Generate Makefile
cd ${BUILD_TMP_PATH}
cmake --clean-first -DCMAKE_BUILD_TYPE=Release ${__dirname}
cd ${__dirname}
# Compile
if [ $? -eq 0 ];then
make --jobs 4 --directory ${BUILD_TMP_PATH}
fi
if [ -f ${BUILD_BINARY_FULL_PATH} ];then
cp ${BUILD_BINARY_FULL_PATH} ${BINARY_DIR}
fi
cp ${BUILD_BINARY_FULL_PATH} demo
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ivan_allen/EasyPR.git
git@gitee.com:ivan_allen/EasyPR.git
ivan_allen
EasyPR
EasyPR
master

搜索帮助