我无法在 Debian 8 上从 GitHub 编译 Slingswarm 软件包

我无法在 Debian 8 上从 GitHub 编译 Slingswarm 软件包

我在网上找不到答案。 '-'

$ cmake ..

-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- checking for modules 'gtk+-3.0;gee-0.8;gio-unix-2.0;libgnome-menu
3.0'
--   found gtk+-3.0, version 3.14.5
--   found gee-0.8, version 0.16.1
--   found gio-unix-2.0, version 2.42.1
--   found libgnome-menu-3.0, version 3.13.3
-- checking for module 'gthread-2.0 >= 2.14.0'
--   found gthread-2.0 , version 2.42.1
-- Found Vala: /usr/bin/valac  
-- checking for a minimum Vala version of 0.14.0
--   found Vala, version 0.26.1
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/slingswarm/build

$ make

[ 11%] Generating slingshot.c, frontend/widgets/AppItem.c, frontend/widgets/CompositedWindow.c, frontend/widgets/Indicators.c, frontend/widgets/Searchbar.c, frontend/Utilities.c, frontend/Color.c, backend/GMenuEntries.c
/usr/local/slingswarm/slingshot.vala:167.17-167.45: error: 2 missing arguments for `void Gtk.Grid.attach (Gtk.Widget child, int left, int top, int width, int height)'
                this.grid.attach (item, c, r);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 1 error(s), 0 warning(s)
CMakeFiles/slingswarm-launcher.dir/build.make:60: recipe for target 'slingshot.c' failed
make[2]: *** [slingshot.c] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/slingswarm-launcher.dir/all' failed
make[1]: *** [CMakeFiles/slingswarm-launcher.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

https://github.com/echo-devim/slingswarm

答案1

Slingswarm 预计valac0.26.1 以上的新版本;更高版本定义了缺失参数的默认值Gtk.Grid.attach。要在 Debian 8 上构建软件包,请将错误行更改slingshot.vala

this.grid.attach (item, c, r, 1, 1);

然后再次运行make

(所以这确实是 Slingswarm 中的一个错误。)

答案2

您可以尝试新项目:https://github.com/libredeb/lightpad针对 raspbian armhf、fedora 和 ubuntu 发行版进行了优化。问候!

相关内容