从源代码编译 workrave

rub*_*o77 5 compiling

如何从源代码安装 workrave?

我从github克隆了源代码:

git clone https://github.com/rcaelers/workrave.git
cd workrave
Run Code Online (Sandbox Code Playgroud)

有一个安装文件,我应该使用它,./configure; make; make install但它似乎已经过时了。没有配置文件。我发现我必须使用autogen.shboforehand:

sudo apt-get install autopoint intltool libxtst-dev glib-2.0 python-cheetah glibmm-2.4 gtkmm-2.4
./autogen.sh
./configure
make
Run Code Online (Sandbox Code Playgroud)

这停止了​​这些警告:

In file included from UnixInputMonitorFactory.cc:38:0:
XScreenSaverMonitor.hh:27:38: fatal error: X11/extensions/scrnsaver.h: No such file or directory
 #include <X11/extensions/scrnsaver.h>
                                      ^
compilation terminated.
Run Code Online (Sandbox Code Playgroud)

也许我错过了一些包裹?如何找到所需的包以及如何编译它?

rub*_*o77 8

你可以找到丢失的文件

apt-file update
apt-file find scrnsaver.h
Run Code Online (Sandbox Code Playgroud)

这导致

libxss-dev: /usr/include/X11/extensions/scrnsaver.h
Run Code Online (Sandbox Code Playgroud)

您还需要该包的调试符号,您将在其中找到

apt-cache search libxtst|grep dbg
apt-cache search libxss|grep dbg
Run Code Online (Sandbox Code Playgroud)

所以这将是libxtst6-dbglibxss1-dbg

所以这很好用:

sudo apt-get install autopoint intltool libxtst-dev glib-2.0 python-cheetah \
             glibmm-2.4 gtkmm-2.4 libxss-dev libxtst6-dbg libxext6-dbg libxss1-dbg
./autogen.sh
./configure
make
sudo make install
Run Code Online (Sandbox Code Playgroud)