如何安装 Vala 应用菜单?

如何安装 Vala 应用菜单?

我正在尝试编译,并且缺少几个包。

总结:

-- Checking for module 'gtk+-3.0>=3.10'
--   
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
  CMakeLists.txt:71 (pkg_check_modules)


-- Configuring incomplete, errors occurred!

编辑:解决了。


附言:我过去曾通过拼命的谷歌搜索和随机安装软件包成功构建了这款软件,但我不记得如何操作了,所以我现在记录下来。

先前的错误信息非常有用,尽管有些信息相当隐晦并且需要反复试验。

答案1

满足 cmake 依赖项所需的软件包集:

sudo apt install cmake rpm valac libwnck-3-dev libxfce4panel-2.0-dev libxfconf-0-dev libpeas-dev libgtk2.0-dev libxfce4util-dev libdbusmenu-glib-dev bamfdaemon unity-gtk-module-common unity-gtk2-module unity-gtk3-module appmenu-qt

唯一未满足的软件包是libmatepanelapplet-4.0vala-panelbudgie-1.0,因为它们不是 XFCE DE 所必需的。Jayatana 支持也被禁用,因为它发出了此错误:

[  2%] Building Java objects for jayatana-java.jar
[  4%] Generating CMakeFiles/jayatana-java.dir/java_class_filelist
[  7%] Creating Java archive jayatana.jar
[  7%] Built target jayatana-java
Scanning dependencies of target java-headers
[  9%] Building C header files from classes...
[  9%] Built target java-headers
Scanning dependencies of target jayatana
[ 12%] Building C object jayatana/lib/CMakeFiles/jayatana.dir/com_jarego_jayatana_basic_GlobalMenu.c.o
In file included from /PATH/TO/FILE/vala-panel-appmenu/jayatana/lib/com_jarego_jayatana_basic_GlobalMenu.c:29:0:
/PATH/TO/FILE/vala-panel-appmenu/build/jayatana/lib/../java/com_jarego_jayatana_basic_GlobalMenu.h:2:17: fatal error: jni.h: There is no such file or directory
compilation terminated.
jayatana/lib/CMakeFiles/jayatana.dir/build.make:62: recipe for target 'jayatana/lib/CMakeFiles/jayatana.dir/com_jarego_jayatana_basic_GlobalMenu.c.o' failed
make[2]: *** [jayatana/lib/CMakeFiles/jayatana.dir/com_jarego_jayatana_basic_GlobalMenu.c.o] Error 1
CMakeFiles/Makefile2:382: recipe for target 'jayatana/lib/CMakeFiles/jayatana.dir/all' failed
make[1]: *** [jayatana/lib/CMakeFiles/jayatana.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

使用的标志是:

vala-panel-appmenu/build$ cmake -DENABLE_XFCE=ON -DENABLE_JAYATANA=OFF -DMAKE_BOLD_APPNAME=ON -DCMAKE_INSTALL_PREFIX=/usr ..

相关内容