code_device/twain/build.sh

25 lines
425 B
Bash
Raw Normal View History

2023-07-10 07:28:45 +00:00
echo off
clear
origin_dir=$(pwd)
echo origin path is $origin_dir
if [ -f ../../build/twain/Makefile ]; then
echo ""
else
mkdir ../../build
mkdir ../../build/twain
fi
cd ../../build/twain
echo building path is $(pwd)
rm -rf ./*
cmake $origin_dir
make -j4
cd $origin_dir
echo -------copy DS to system directory ...-------
2023-07-10 07:28:45 +00:00
sudo cp ../../release/kylin/x86_64/libhgtwain.so /usr/local/lib/twain/libhgtwain.so.ds