Shot 介绍
Shot是一款命令行截图工具的软件。
特性:
跨平台:
-
Windows
-
GNU/Linux (X11 + XRandR)
多种区域选择方法:
-
the whole desktop
-
currently focused window
-
currently focused monitor (established by focused window)
-
specific monitor
-
specific window
-
specific rectangle (passed as string)
-
interactive selection with a special window
交互式选择行动:
GNU / Linux的编译:
1.安装libpng
2.运行以下指令
./bootstrap ./waf configure ./waf
3.如果你想全范围安装
sudo ./waf install
Windows的交叉编译
1.安装mxe且编译libpng:
git clone https://github.com/mxe/mxe.git cd mxe make libpng
2.配置shell并使用mxe:
mxe_PATH=~/src/mxe/ CROSS=i686-w64-mingw32.static- export PATH="$mxe_PATH/usr/bin/:$PATH" export CC=${CROSS}gcc export AR=${CROSS}ar export PKGCONfig=${CROSS}pkg-config
3.使用常规方法编译项目。