#!/bin/bash
#1.编译是在xxx_trunk里
cd ~/source/xxx_trunk
#2.首先删除上次的xxx_trunk_build
rm -rf ../xxx_trunk_build/
#3.使用cmake
ls ~/cmake-3.19.0-Linux-x86_64/bin
~/cmake-3.19.0-Linux-x86_64/bin/cmake -S . -B ../xxx_trunk_build -DCMAKE_CL_64=true
#4.进入build中进行make
cd ../xxx_trunk_build/
make -j4
make install
#5.最终生成的libxxx.so动态库在 ~/source/IndigoPDFToolkit_trunk/dist/linux/bin 里
linux下编译动态库shell脚本
于 2022-08-11 16:29:48 首次发布