认识
官网:https://www.gpick.org/
文档:https://github.com/thezbyg/gpick/blob/master/README.md
仓库:https://github.com/thezbyg/gpick
Gpick,在 Linux 下的取色程序。
构建
通过仓库直接安装:
apt-get install -y gpick
使用源码编译安装:
编译器要求:
Some of C++14 features are required. Compilation is currently only tested on gcc version 5.3.1.
安装依赖程序:
SCons 2.4 or newer: http://www.scons.org
Ragel 6.8 or newer: state machine compiler (http://www.colm.net/open-source/ragel).
GTK+ 2.24 (http://www.gtk.org).
Lua 5.3 or 5.2 (http://www.lua.org).
Expat (http://expat.sourceforge.net).
Boost 1.58 or newer (http://www.boost.org). Used libraries:
System.
Test (only when building/running tests).
可选依赖库:
gettext (http://www.gnu.org/s/gettext). Required if ENABLE_NLS is enabled. Required by default.
构建及安装命令:
`scons` to compile all files and place executable file in build/source/.
`scons install` to install executable and resources to DESTDIR. By default DESTDIR is /usr/local.
编译错误汇总:
/usr/bin/ld: build/source/dbus/DbusInterface.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Nonrepresentable section on output 解决方法,使用 CFLAGS=-fPIC scons 编译,即添加 CFLAGS=-fPIC 环境变量