Javyre / swayfire

Sway/I3 inspired tiling window manager for Wayfire
GNU General Public License v3.0
171 stars 8 forks source link

Unmatching version while installing wayfire + alot of error messages #50

Open Tryware opened 2 years ago

Tryware commented 2 years ago

I tried installing it with ninja but i got an ninja: error: loading 'build.ninja': No such file or directory

So i generated a ninja build with meson, but it requests a wrong version (that apparently doesn't exists)

so after i changed the version inside ninja.build i got this as return

`The Meson build system
Version: 0.63.0
Source dir: /home/lavender/swayfire
Build dir: /home/lavender/swayfire/build
Build type: native build
Project name: swayfire
Project version: 0.1
C compiler for the host machine: ccache cc (gcc 12.1.1 "cc (GCC) 12.1.1 20220730")
C linker for the host machine: cc ld.bfd 2.38
C++ compiler for the host machine: ccache c++ (gcc 12.1.1 "c++ (GCC) 12.1.1 20220730")
C++ linker for the host machine: c++ ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Dependency wayfire found: NO found 0.7.3 but need: '>=0.8.0'
Found CMake: /usr/bin/cmake (3.23.3)
Run-time dependency wayfire found: NO (tried cmake)

meson.build:16:0: ERROR: Invalid version of dependency, need 'wayfire' ['>=0.8.0'] found '0.7.3'.

A full log can be found at /home/lavender/swayfire/build/meson-logs/meson-log.txt

~/swayfire master`

The Meson build system
Version: 0.63.0
Source dir: /home/lavender/swayfire
Build dir: /home/lavender/swayfire/build
Build type: native build
Project name: swayfire
Project version: 0.1
C compiler for the host machine: ccache cc (gcc 12.1.1 "cc (GCC) 12.1.1 20220730")
C linker for the host machine: cc ld.bfd 2.38
C++ compiler for the host machine: ccache c++ (gcc 12.1.1 "c++ (GCC) 12.1.1 20220730")
C++ linker for the host machine: c++ ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency wayfire found: YES 0.7.3
Run-time dependency wlroots found: YES 0.15.1
Run-time dependency wf-config found: YES 0.7.1
Run-time dependency cairo found: YES 1.17.6
Run-time dependency pixman-1 found: YES 0.40.0
DEPRECATION: target swayfire-deco links against shared module swayfire, which is incorrect.
             This will be an error in the future, so please use shared_library() for swayfire instead.
             If shared_module() was used for swayfire because it has references to undefined symbols,
             use shared_libary() with `override_options: ['b_lundef=false']` instead.
Message:
----------------
swayfire 0.1
----------------

Build targets in project: 2

Found ninja-1.11.0 at /usr/bin/ninja

~/swayfire master*
❯ sudo ninja -C build install

[sudo] password for lavender:
ninja: Entering directory `build'
[4/12] Compiling C++ object src/core/libswayfire.so.p/resize.cpp.o
FAILED: src/core/libswayfire.so.p/resize.cpp.o
ccache c++ -Isrc/core/libswayfire.so.p -Isrc/core -I../src/core -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libdrm -I/usr/include/libevdev-1.0 -I/usr/include/libxml2 -fdiagnostics-color=always -fpch-preprocess -include prefix.hpp -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -std=c++17 -O0 -g -DWLR_USE_UNSTABLE -DWAYFIRE_PLUGIN -fPIC -pthread -MD -MQ src/core/libswayfire.so.p/resize.cpp.o -MF src/core/libswayfire.so.p/resize.cpp.o.d -o src/core/libswayfire.so.p/resize.cpp.o -c ../src/core/resize.cpp
In file included from ../src/core/resize.cpp:2:
../src/core/core.hpp: In lambda function:
../src/core/core.hpp:1183:34: error: ‘view_change_workspace_signal’ in namespace ‘wf’ does not name a type
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/core/core.hpp:1183:63: error: expected ‘>’ before ‘*’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                               ^
../src/core/core.hpp:1183:63: error: expected ‘(’ before ‘*’ token
../src/core/core.hpp:1183:64: error: expected primary-expression before ‘>’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                                ^
../src/core/core.hpp:1183:72: error: expected ‘)’ before ‘;’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                                        ^
../src/core/resize.cpp: In member function ‘virtual wf::dimensions_t SplitNode::try_resize_child(Node, wf::dimensions_t, uint32_t)’:
../src/core/resize.cpp:242:1: warning: control reaches end of non-void function [-Wreturn-type]
  242 | }
      | ^
[5/12] Compiling C++ object src/core/libswayfire.so.p/grab.cpp.o
FAILED: src/core/libswayfire.so.p/grab.cpp.o
ccache c++ -Isrc/core/libswayfire.so.p -Isrc/core -I../src/core -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libdrm -I/usr/include/libevdev-1.0 -I/usr/include/libxml2 -fdiagnostics-color=always -fpch-preprocess -include prefix.hpp -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -std=c++17 -O0 -g -DWLR_USE_UNSTABLE -DWAYFIRE_PLUGIN -fPIC -pthread -MD -MQ src/core/libswayfire.so.p/grab.cpp.o -MF src/core/libswayfire.so.p/grab.cpp.o.d -o src/core/libswayfire.so.p/grab.cpp.o -c ../src/core/grab.cpp
In file included from ../src/core/grab.hpp:4,
                 from ../src/core/grab.cpp:1:
../src/core/core.hpp: In lambda function:
../src/core/core.hpp:1183:34: error: ‘view_change_workspace_signal’ in namespace ‘wf’ does not name a type
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/core/core.hpp:1183:63: error: expected ‘>’ before ‘*’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                               ^
../src/core/core.hpp:1183:63: error: expected ‘(’ before ‘*’ token
../src/core/core.hpp:1183:64: error: expected primary-expression before ‘>’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                                ^
../src/core/core.hpp:1183:72: error: expected ‘)’ before ‘;’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                                        ^
[6/12] Compiling C++ object src/core/libswayfire.so.p/binding.cpp.o
FAILED: src/core/libswayfire.so.p/binding.cpp.o
ccache c++ -Isrc/core/libswayfire.so.p -Isrc/core -I../src/core -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libdrm -I/usr/include/libevdev-1.0 -I/usr/include/libxml2 -fdiagnostics-color=always -fpch-preprocess -include prefix.hpp -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -std=c++17 -O0 -g -DWLR_USE_UNSTABLE -DWAYFIRE_PLUGIN -fPIC -pthread -MD -MQ src/core/libswayfire.so.p/binding.cpp.o -MF src/core/libswayfire.so.p/binding.cpp.o.d -o src/core/libswayfire.so.p/binding.cpp.o -c ../src/core/binding.cpp
In file included from ../src/core/binding.cpp:2:
../src/core/core.hpp: In lambda function:
../src/core/core.hpp:1183:34: error: ‘view_change_workspace_signal’ in namespace ‘wf’ does not name a type
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/core/core.hpp:1183:63: error: expected ‘>’ before ‘*’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                               ^
../src/core/core.hpp:1183:63: error: expected ‘(’ before ‘*’ token
../src/core/core.hpp:1183:64: error: expected primary-expression before ‘>’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                                ^
../src/core/core.hpp:1183:72: error: expected ‘)’ before ‘;’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                                        ^
[7/12] Compiling C++ object src/core/libswayfire.so.p/core.cpp.o
FAILED: src/core/libswayfire.so.p/core.cpp.o
ccache c++ -Isrc/core/libswayfire.so.p -Isrc/core -I../src/core -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libdrm -I/usr/include/libevdev-1.0 -I/usr/include/libxml2 -fdiagnostics-color=always -fpch-preprocess -include prefix.hpp -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -std=c++17 -O0 -g -DWLR_USE_UNSTABLE -DWAYFIRE_PLUGIN -fPIC -pthread -MD -MQ src/core/libswayfire.so.p/core.cpp.o -MF src/core/libswayfire.so.p/core.cpp.o.d -o src/core/libswayfire.so.p/core.cpp.o -c ../src/core/core.cpp
In file included from ../src/core/core.cpp:1:
../src/core/core.hpp: In lambda function:
../src/core/core.hpp:1183:34: error: ‘view_change_workspace_signal’ in namespace ‘wf’ does not name a type
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/core/core.hpp:1183:63: error: expected ‘>’ before ‘*’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                               ^
../src/core/core.hpp:1183:63: error: expected ‘(’ before ‘*’ token
../src/core/core.hpp:1183:64: error: expected primary-expression before ‘>’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                                ^
../src/core/core.hpp:1183:72: error: expected ‘)’ before ‘;’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                                        ^
../src/core/core.cpp: In member function ‘virtual void SplitNode::notify_child_title_changed(Node)’:
../src/core/core.cpp:598:49: warning: unused parameter ‘child’ [-Wunused-parameter]
  598 | void SplitNode::notify_child_title_changed(Node child) { emit_title_changed(); }
      |                                            ~~~~~^~~~~
../src/core/core.cpp: In member function ‘virtual Node SplitNode::get_adjacent(Node, Direction)’:
../src/core/core.cpp:701:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
  701 |         switch (dir) {
      |         ^~~~~~
../src/core/core.cpp:717:5: note: here
  717 |     case SplitType::HSPLIT:
      |     ^~~~
../src/core/core.cpp:733:1: warning: control reaches end of non-void function [-Wreturn-type]
  733 | }
      | ^
../src/core/core.cpp: In member function ‘virtual bool SplitNode::move_child(Node, Direction)’:
../src/core/core.cpp:867:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
  867 |     }
      |     ^
../src/core/core.cpp:868:5: note: here
  868 |     case SplitType::HSPLIT:
      |     ^~~~
../src/core/core.cpp:885:1: warning: control reaches end of non-void function [-Wreturn-type]
  885 | }
      | ^
../src/core/core.cpp: In member function ‘virtual Node Workspace::get_adjacent(Node, Direction)’:
../src/core/core.cpp:1428:1: warning: control reaches end of non-void function [-Wreturn-type]
 1428 | }
      | ^
[8/12] Compiling C++ object src/deco/libswayfire-deco.so.p/deco.cpp.o
FAILED: src/deco/libswayfire-deco.so.p/deco.cpp.o
ccache c++ -Isrc/deco/libswayfire-deco.so.p -Isrc/deco -I../src/deco -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libdrm -I/usr/include/libevdev-1.0 -I/usr/include/libxml2 -fdiagnostics-color=always -fpch-preprocess -include prefix.hpp -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -std=c++17 -O0 -g -DWLR_USE_UNSTABLE -DWAYFIRE_PLUGIN -fPIC -pthread -MD -MQ src/deco/libswayfire-deco.so.p/deco.cpp.o -MF src/deco/libswayfire-deco.so.p/deco.cpp.o.d -o src/deco/libswayfire-deco.so.p/deco.cpp.o -c ../src/deco/deco.cpp
In file included from ../src/deco/deco.hpp:11,
                 from ../src/deco/deco.cpp:1:
../src/deco/../core/core.hpp: In lambda function:
../src/deco/../core/core.hpp:1183:34: error: ‘view_change_workspace_signal’ in namespace ‘wf’ does not name a type
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/deco/../core/core.hpp:1183:63: error: expected ‘>’ before ‘*’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                               ^
../src/deco/../core/core.hpp:1183:63: error: expected ‘(’ before ‘*’ token
../src/deco/../core/core.hpp:1183:64: error: expected primary-expression before ‘>’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                                ^
../src/deco/../core/core.hpp:1183:72: error: expected ‘)’ before ‘;’ token
 1183 |                 dynamic_cast<wf::view_change_workspace_signal *>(data_);
      |                                                                        ^
../src/deco/deco.cpp: In member function ‘void ViewDecoration::detach_surface()’:
../src/deco/deco.cpp:57:56: error: no match for ‘operator=’ (operand types are ‘std::unique_ptr<wf::surface_interface_t>’ and ‘void’)
   57 |     surface = node->view->remove_subsurface(surface_ref);
      |                                                        ^
In file included from /usr/include/c++/12.1.1/memory:76,
                 from ../src/pch/prefix.hpp:4:
/usr/include/c++/12.1.1/bits/unique_ptr.h:422:9: note: candidate: ‘template<class _Up, class _Ep> typename std::enable_if<std::__and_<std::__and_<std::is_convertible<typename std::unique_ptr<_Up, _Ep>::pointer, typename std::__uniq_ptr_impl<_Tp, _Dp>::pointer>, std::__not_<std::is_array<_Up> > >, std::is_assignable<_T2&, _U2&&> >::value, std::unique_ptr<_Tp, _Dp>&>::type std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Up, _Ep>&&) [with _Ep = _Up; _Tp = wf::surface_interface_t; _Dp = std::default_delete<wf::surface_interface_t>]’
  422 |         operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
      |         ^~~~~~~~
/usr/include/c++/12.1.1/bits/unique_ptr.h:422:9: note:   template argument deduction/substitution failed:
../src/deco/deco.cpp:57:56: note:   mismatched types ‘std::unique_ptr<_Tp, _Dp>’ and ‘void’
   57 |     surface = node->view->remove_subsurface(surface_ref);
      |                                                        ^
/usr/include/c++/12.1.1/bits/unique_ptr.h:406:19: note: candidate: ‘std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Tp, _Dp>&&) [with _Tp = wf::surface_interface_t; _Dp = std::default_delete<wf::surface_interface_t>]’
  406 |       unique_ptr& operator=(unique_ptr&&) = default;
      |                   ^~~~~~~~
/usr/include/c++/12.1.1/bits/unique_ptr.h:406:29: note:   no known conversion for argument 1 from ‘void’ to ‘std::unique_ptr<wf::surface_interface_t>&&’
  406 |       unique_ptr& operator=(unique_ptr&&) = default;
      |                             ^~~~~~~~~~~~
/usr/include/c++/12.1.1/bits/unique_ptr.h:432:7: note: candidate: ‘std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::nullptr_t) [with _Tp = wf::surface_interface_t; _Dp = std::default_delete<wf::surface_interface_t>; std::nullptr_t = std::nullptr_t]’
  432 |       operator=(nullptr_t) noexcept
      |       ^~~~~~~~
/usr/include/c++/12.1.1/bits/unique_ptr.h:432:17: note:   no known conversion for argument 1 from ‘void’ to ‘std::nullptr_t’
  432 |       operator=(nullptr_t) noexcept
      |                 ^~~~~~~~~
../src/deco/deco.cpp: In member function ‘void SwayfireDeco::decorate_node(Node)’:
../src/deco/deco.cpp:420:46: error: cannot convert ‘std::remove_reference<std::unique_ptr<ViewDecoration, std::default_delete<ViewDecoration> >&>::type’ {aka ‘std::unique_ptr<ViewDecoration, std::default_delete<ViewDecoration> >’} to ‘wf::surface_interface_t*’
  420 |         vnode->view->set_decoration(std::move(deco));
      |                                     ~~~~~~~~~^~~~~~
      |                                              |
      |                                              std::remove_reference<std::unique_ptr<ViewDecoration, std::default_delete<ViewDecoration> >&>::type {aka std::unique_ptr<ViewDecoration, std::default_delete<ViewDecoration> >}
In file included from /usr/include/wayfire/signal-definitions.hpp:4,
                 from ../src/pch/prefix.hpp:22:
/usr/include/wayfire/view.hpp:328:54: note:   initializing argument 1 of ‘virtual void wf::view_interface_t::set_decoration(wf::surface_interface_t*)’
  328 |     virtual void set_decoration(surface_interface_t *frame);
      |                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/12.1.1/vector:63,
                 from /usr/include/c++/12.1.1/functional:62,
                 from ../src/pch/prefix.hpp:2:
/usr/include/c++/12.1.1/bits/stl_uninitialized.h: In instantiation of ‘constexpr bool std::__check_constructible() [with _ValueType = TitleBarSubSurf; _Tp = TitleBarSubSurf&&]’:
/usr/include/c++/12.1.1/bits/stl_uninitialized.h:182:4:   required from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = move_iterator<TitleBarSubSurf*>; _ForwardIterator = TitleBarSubSurf*]’
/usr/include/c++/12.1.1/bits/stl_uninitialized.h:372:37:   required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = move_iterator<TitleBarSubSurf*>; _ForwardIterator = TitleBarSubSurf*; _Tp = TitleBarSubSurf]’
/usr/include/c++/12.1.1/bits/stl_uninitialized.h:397:2:   required from ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = TitleBarSubSurf*; _ForwardIterator = TitleBarSubSurf*; _Allocator = allocator<TitleBarSubSurf>]’
/usr/include/c++/12.1.1/bits/vector.tcc:487:3:   required from ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {}; _Tp = TitleBarSubSurf; _Alloc = std::allocator<TitleBarSubSurf>; iterator = std::vector<TitleBarSubSurf>::iterator]’
/usr/include/c++/12.1.1/bits/vector.tcc:123:21:   required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = TitleBarSubSurf; _Alloc = std::allocator<TitleBarSubSurf>; reference = TitleBarSubSurf&]’
../src/deco/deco.hpp:447:38:   required from here
/usr/include/c++/12.1.1/bits/stl_uninitialized.h:90:56: error: static assertion failed: result type must be constructible from input type
   90 |       static_assert(is_constructible<_ValueType, _Tp>::value,
      |                                                        ^~~~~
/usr/include/c++/12.1.1/bits/stl_uninitialized.h:90:56: note: ‘std::integral_constant<bool, false>::value’ evaluates to false