Coffee2CodeNL / gebaar-libinput

Gebaar, A Super Simple WM Independent Touchpad Gesture Daemon for libinput
GNU General Public License v3.0
270 stars 17 forks source link

fails to build #38

Open rickysarraf opened 2 years ago

rickysarraf commented 2 years ago

I'm trying to play/integrate it with KDE+Wayland. But I run into compile issues.

rrs@priyasi:~/.../build ((v0.0.5))$ cmake ..
CMake Warning (dev) at /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (UDEV) does
  not match the name of the calling package (udev).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/Findudev.cmake:63 (find_package_handle_standard_args)
  CMakeLists.txt:24 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/rrs/NoBackup/Community/gebaar-libinput/build
22:48 ♒ ॐ ♅ ♄ ⛢     ☺ 😄    
rrs@priyasi:~/.../build ((v0.0.5))$ make
Consolidate compiler generated dependencies of target gebaard
[ 16%] Building CXX object CMakeFiles/gebaard.dir/src/main.cpp.o
In file included from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp: In member function ‘void cxxopts::values::detail::SignedCheck<T, true>::operator()(bool, U, const string&)’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:488:43: error: ‘numeric_limits’ is not a member of ‘std’
  488 |             if (u > static_cast<U>(-(std::numeric_limits<T>::min)()))
      |                                           ^~~~~~~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:488:59: error: expected primary-expression before ‘>’ token
  488 |             if (u > static_cast<U>(-(std::numeric_limits<T>::min)()))
      |                                                           ^
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:488:62: error: ‘::min’ has not been declared; did you mean ‘std::min’?
  488 |             if (u > static_cast<U>(-(std::numeric_limits<T>::min)()))
      |                                                              ^~~
      |                                                              std::min
In file included from /usr/include/c++/11/algorithm:62,
                 from /usr/include/c++/11/regex:38,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:34,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/usr/include/c++/11/bits/stl_algo.h:3455:5: note: ‘std::min’ declared here
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
In file included from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:495:42: error: ‘numeric_limits’ is not a member of ‘std’
  495 |             if (u > static_cast<U>((std::numeric_limits<T>::max)()))
      |                                          ^~~~~~~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:495:58: error: expected primary-expression before ‘>’ token
  495 |             if (u > static_cast<U>((std::numeric_limits<T>::max)()))
      |                                                          ^
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:495:61: error: ‘::max’ has not been declared; did you mean ‘std::max’?
  495 |             if (u > static_cast<U>((std::numeric_limits<T>::max)()))
      |                                                             ^~~
      |                                                             std::max
In file included from /usr/include/c++/11/algorithm:62,
                 from /usr/include/c++/11/regex:38,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:34,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
In file included from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp: In function ‘void cxxopts::values::detail::check_signed_range(bool, U, const string&)’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:515:29: error: ‘numeric_limits’ is not a member of ‘std’
  515 |         SignedCheck<T, std::numeric_limits<T>::is_signed>()(negative, value, text);
      |                             ^~~~~~~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:515:45: error: template argument 2 is invalid
  515 |         SignedCheck<T, std::numeric_limits<T>::is_signed>()(negative, value, text);
      |                                             ^
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:515:57: error: qualified-id in declaration before ‘>’ token
  515 |         SignedCheck<T, std::numeric_limits<T>::is_signed>()(negative, value, text);
      |                                                         ^
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp: In function ‘void cxxopts::values::integer_parser(const string&, T&)’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:556:35: error: ‘numeric_limits’ is not a member of ‘std’
  556 |       constexpr auto umax = (std::numeric_limits<US>::max)();
      |                                   ^~~~~~~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:556:52: error: expected primary-expression before ‘>’ token
  556 |       constexpr auto umax = (std::numeric_limits<US>::max)();
      |                                                    ^
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:556:55: error: ‘::max’ has not been declared; did you mean ‘std::max’?
  556 |       constexpr auto umax = (std::numeric_limits<US>::max)();
      |                                                       ^~~
      |                                                       std::max
In file included from /usr/include/c++/11/algorithm:62,
                 from /usr/include/c++/11/regex:38,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:34,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
In file included from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:557:39: error: ‘numeric_limits’ is not a member of ‘std’
  557 |       constexpr bool is_signed = std::numeric_limits<T>::is_signed;
      |                                       ^~~~~~~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:557:55: error: expected primary-expression before ‘>’ token
  557 |       constexpr bool is_signed = std::numeric_limits<T>::is_signed;
      |                                                       ^
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:557:58: error: ‘::is_signed’ has not been declared; did you mean ‘std::is_signed’?
  557 |       constexpr bool is_signed = std::numeric_limits<T>::is_signed;
      |                                                          ^~~~~~~~~
      |                                                          std::is_signed
In file included from /usr/include/c++/11/bits/move.h:57,
                 from /usr/include/c++/11/bits/nested_exception.h:40,
                 from /usr/include/c++/11/exception:154,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:30,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/usr/include/c++/11/type_traits:795:12: note: ‘std::is_signed’ declared here
  795 |     struct is_signed
      |            ^~~~~~~~~
In file included from /home/rrs/NoBackup/Community/gebaar-libinput/src/config/config.h:22,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:22:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h: In static member function ‘static cpptoml::value_traits<T, typename std::enable_if<(((! cpptoml::valid_value_or_string_convertible<T>::value) && (! std::is_floating_point<typename std::decay<_Tp>::type>::value)) && std::is_signed<typename std::decay<_Tp>::type>::value)>::type>::value_type cpptoml::value_traits<T, typename std::enable_if<(((! cpptoml::valid_value_or_string_convertible<T>::value) && (! std::is_floating_point<typename std::decay<_Tp>::type>::value)) && std::is_signed<typename std::decay<_Tp>::type>::value)>::type>::construct(T&&)’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:344:25: error: ‘numeric_limits’ is not a member of ‘std’
  344 |         if (val < (std::numeric_limits<int64_t>::min)())
      |                         ^~~~~~~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:344:47: error: expected primary-expression before ‘>’ token
  344 |         if (val < (std::numeric_limits<int64_t>::min)())
      |                                               ^
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:344:50: error: ‘::min’ has not been declared; did you mean ‘std::min’?
  344 |         if (val < (std::numeric_limits<int64_t>::min)())
      |                                                  ^~~
      |                                                  std::min
In file included from /usr/include/c++/11/algorithm:62,
                 from /usr/include/c++/11/regex:38,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:34,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/usr/include/c++/11/bits/stl_algo.h:3455:5: note: ‘std::min’ declared here
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
In file included from /home/rrs/NoBackup/Community/gebaar-libinput/src/config/config.h:22,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:22:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:349:25: error: ‘numeric_limits’ is not a member of ‘std’
  349 |         if (val > (std::numeric_limits<int64_t>::max)())
      |                         ^~~~~~~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:349:47: error: expected primary-expression before ‘>’ token
  349 |         if (val > (std::numeric_limits<int64_t>::max)())
      |                                               ^
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:349:50: error: ‘::max’ has not been declared; did you mean ‘std::max’?
  349 |         if (val > (std::numeric_limits<int64_t>::max)())
      |                                                  ^~~
      |                                                  std::max
In file included from /usr/include/c++/11/algorithm:62,
                 from /usr/include/c++/11/regex:38,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:34,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
In file included from /home/rrs/NoBackup/Community/gebaar-libinput/src/config/config.h:22,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:22:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h: In static member function ‘static cpptoml::value_traits<T, typename std::enable_if<((! cpptoml::valid_value_or_string_convertible<T>::value) && std::is_unsigned<typename std::decay<_Tp>::type>::value)>::type>::value_type cpptoml::value_traits<T, typename std::enable_if<((! cpptoml::valid_value_or_string_convertible<T>::value) && std::is_unsigned<typename std::decay<_Tp>::type>::value)>::type>::construct(T&&)’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:369:47: error: ‘numeric_limits’ is not a member of ‘std’
  369 |         if (val > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
      |                                               ^~~~~~~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:369:69: error: expected primary-expression before ‘>’ token
  369 |         if (val > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
      |                                                                     ^
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:369:72: error: ‘::max’ has not been declared; did you mean ‘std::max’?
  369 |         if (val > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
      |                                                                        ^~~
      |                                                                        std::max
In file included from /usr/include/c++/11/algorithm:62,
                 from /usr/include/c++/11/regex:38,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:34,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
In file included from /home/rrs/NoBackup/Community/gebaar-libinput/src/config/config.h:22,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:22:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h: In function ‘typename std::enable_if<((! std::is_floating_point<_Tp>::value) && std::is_signed<_Tp>::value), cpptoml::option<T> >::type cpptoml::get_impl(const std::shared_ptr<cpptoml::base>&)’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:1226:30: error: ‘numeric_limits’ is not a member of ‘std’
 1226 |         if (v->get() < (std::numeric_limits<T>::min)())
      |                              ^~~~~~~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:1226:46: error: expected primary-expression before ‘>’ token
 1226 |         if (v->get() < (std::numeric_limits<T>::min)())
      |                                              ^
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:1226:49: error: ‘::min’ has not been declared; did you mean ‘std::min’?
 1226 |         if (v->get() < (std::numeric_limits<T>::min)())
      |                                                 ^~~
      |                                                 std::min
In file included from /usr/include/c++/11/algorithm:62,
                 from /usr/include/c++/11/regex:38,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:34,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/usr/include/c++/11/bits/stl_algo.h:3455:5: note: ‘std::min’ declared here
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
In file included from /home/rrs/NoBackup/Community/gebaar-libinput/src/config/config.h:22,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:22:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:1230:30: error: ‘numeric_limits’ is not a member of ‘std’
 1230 |         if (v->get() > (std::numeric_limits<T>::max)())
      |                              ^~~~~~~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:1230:46: error: expected primary-expression before ‘>’ token
 1230 |         if (v->get() > (std::numeric_limits<T>::max)())
      |                                              ^
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:1230:49: error: ‘::max’ has not been declared; did you mean ‘std::max’?
 1230 |         if (v->get() > (std::numeric_limits<T>::max)())
      |                                                 ^~~
      |                                                 std::max
In file included from /usr/include/c++/11/algorithm:62,
                 from /usr/include/c++/11/regex:38,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:34,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
In file included from /home/rrs/NoBackup/Community/gebaar-libinput/src/config/config.h:22,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:22:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h: In function ‘typename std::enable_if<((! std::is_same<T, bool>::value) && std::is_unsigned<_Tp>::value), cpptoml::option<T> >::type cpptoml::get_impl(const std::shared_ptr<cpptoml::base>&)’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:1253:53: error: ‘numeric_limits’ is not a member of ‘std’
 1253 |         if (static_cast<uint64_t>(v->get()) > (std::numeric_limits<T>::max)())
      |                                                     ^~~~~~~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:1253:69: error: expected primary-expression before ‘>’ token
 1253 |         if (static_cast<uint64_t>(v->get()) > (std::numeric_limits<T>::max)())
      |                                                                     ^
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:1253:72: error: ‘::max’ has not been declared; did you mean ‘std::max’?
 1253 |         if (static_cast<uint64_t>(v->get()) > (std::numeric_limits<T>::max)())
      |                                                                        ^~~
      |                                                                        std::max
In file included from /usr/include/c++/11/algorithm:62,
                 from /usr/include/c++/11/regex:38,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:34,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
In file included from /home/rrs/NoBackup/Community/gebaar-libinput/src/config/config.h:22,
                 from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:22:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h: In member function ‘std::shared_ptr<cpptoml::base> cpptoml::parser::parse_number(std::__cxx11::basic_string<char>::iterator&, const iterator&)’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:2732:33: error: ‘numeric_limits’ is not a member of ‘std’
 2732 |                 auto val = std::numeric_limits<double>::infinity();
      |                                 ^~~~~~~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:2732:48: error: expected primary-expression before ‘double’
 2732 |                 auto val = std::numeric_limits<double>::infinity();
      |                                                ^~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:2741:33: error: ‘numeric_limits’ is not a member of ‘std’
 2741 |                 auto val = std::numeric_limits<double>::quiet_NaN();
      |                                 ^~~~~~~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:2741:48: error: expected primary-expression before ‘double’
 2741 |                 auto val = std::numeric_limits<double>::quiet_NaN();
      |                                                ^~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h: In member function ‘void cpptoml::toml_writer::write(const cpptoml::value<double>&)’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:3481:38: error: ‘numeric_limits’ is not a member of ‘std’
 3481 |            << std::setprecision(std::numeric_limits<double>::max_digits10)
      |                                      ^~~~~~~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cpptoml/include/cpptoml.h:3481:53: error: expected primary-expression before ‘double’
 3481 |            << std::setprecision(std::numeric_limits<double>::max_digits10)
      |                                                     ^~~~~~
In file included from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:23:
/home/rrs/NoBackup/Community/gebaar-libinput/src/io/input.h: At global scope:
/home/rrs/NoBackup/Community/gebaar-libinput/src/io/input.h:68:17: warning: C++ designated initializers only available with ‘-std=c++20’ or ‘-std=gnu++20’ [-Wpedantic]
   68 |                 .open_restricted = open_restricted,
      |                 ^
/home/rrs/NoBackup/Community/gebaar-libinput/src/io/input.h:69:17: warning: C++ designated initializers only available with ‘-std=c++20’ or ‘-std=gnu++20’ [-Wpedantic]
   69 |                 .close_restricted = close_restricted,
      |                 ^
/home/rrs/NoBackup/Community/gebaar-libinput/src/io/input.h: In static member function ‘static int gebaar::io::Input::open_restricted(const char*, int, void*)’:
/home/rrs/NoBackup/Community/gebaar-libinput/src/io/input.h:56:71: warning: unused parameter ‘user_data’ [-Wunused-parameter]
   56 |         static int open_restricted(const char* path, int flags, void* user_data)
      |                                                                 ~~~~~~^~~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/src/io/input.h: In static member function ‘static void gebaar::io::Input::close_restricted(int, void*)’:
/home/rrs/NoBackup/Community/gebaar-libinput/src/io/input.h:62:52: warning: unused parameter ‘user_data’ [-Wunused-parameter]
   62 |         static void close_restricted(int fd, void* user_data)
      |                                              ~~~~~~^~~~~~~~~
In file included from /home/rrs/NoBackup/Community/gebaar-libinput/src/main.cpp:21:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp: In instantiation of ‘void cxxopts::values::detail::check_signed_range(bool, U, const string&) [with T = unsigned char; U = unsigned char; std::string = std::__cxx11::basic_string<char>]’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:594:36:   required from ‘void cxxopts::values::integer_parser(const string&, T&) [with T = unsigned char; std::string = std::__cxx11::basic_string<char>]’
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:622:21:   required from here
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:31: warning: unused parameter ‘negative’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                          ~~~~~^~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:43: warning: unused parameter ‘value’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                         ~~^~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:69: warning: unused parameter ‘text’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                                  ~~~~~~~~~~~~~~~~~~~^~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp: In instantiation of ‘void cxxopts::values::detail::check_signed_range(bool, U, const string&) [with T = signed char; U = unsigned char; std::string = std::__cxx11::basic_string<char>]’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:594:36:   required from ‘void cxxopts::values::integer_parser(const string&, T&) [with T = signed char; std::string = std::__cxx11::basic_string<char>]’
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:629:21:   required from here
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:31: warning: unused parameter ‘negative’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                          ~~~~~^~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:43: warning: unused parameter ‘value’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                         ~~^~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:69: warning: unused parameter ‘text’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                                  ~~~~~~~~~~~~~~~~~~~^~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp: In instantiation of ‘void cxxopts::values::detail::check_signed_range(bool, U, const string&) [with T = short unsigned int; U = short unsigned int; std::string = std::__cxx11::basic_string<char>]’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:594:36:   required from ‘void cxxopts::values::integer_parser(const string&, T&) [with T = short unsigned int; std::string = std::__cxx11::basic_string<char>]’
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:636:21:   required from here
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:31: warning: unused parameter ‘negative’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                          ~~~~~^~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:43: warning: unused parameter ‘value’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                         ~~^~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:69: warning: unused parameter ‘text’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                                  ~~~~~~~~~~~~~~~~~~~^~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp: In instantiation of ‘void cxxopts::values::detail::check_signed_range(bool, U, const string&) [with T = short int; U = short unsigned int; std::string = std::__cxx11::basic_string<char>]’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:594:36:   required from ‘void cxxopts::values::integer_parser(const string&, T&) [with T = short int; std::string = std::__cxx11::basic_string<char>]’
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:643:21:   required from here
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:31: warning: unused parameter ‘negative’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                          ~~~~~^~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:43: warning: unused parameter ‘value’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                         ~~^~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:69: warning: unused parameter ‘text’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                                  ~~~~~~~~~~~~~~~~~~~^~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp: In instantiation of ‘void cxxopts::values::detail::check_signed_range(bool, U, const string&) [with T = unsigned int; U = unsigned int; std::string = std::__cxx11::basic_string<char>]’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:594:36:   required from ‘void cxxopts::values::integer_parser(const string&, T&) [with T = unsigned int; std::string = std::__cxx11::basic_string<char>]’
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:650:21:   required from here
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:31: warning: unused parameter ‘negative’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                          ~~~~~^~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:43: warning: unused parameter ‘value’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                         ~~^~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:69: warning: unused parameter ‘text’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                                  ~~~~~~~~~~~~~~~~~~~^~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp: In instantiation of ‘void cxxopts::values::detail::check_signed_range(bool, U, const string&) [with T = int; U = unsigned int; std::string = std::__cxx11::basic_string<char>]’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:594:36:   required from ‘void cxxopts::values::integer_parser(const string&, T&) [with T = int; std::string = std::__cxx11::basic_string<char>]’
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:657:21:   required from here
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:31: warning: unused parameter ‘negative’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                          ~~~~~^~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:43: warning: unused parameter ‘value’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                         ~~^~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:69: warning: unused parameter ‘text’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                                  ~~~~~~~~~~~~~~~~~~~^~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp: In instantiation of ‘void cxxopts::values::detail::check_signed_range(bool, U, const string&) [with T = long unsigned int; U = long unsigned int; std::string = std::__cxx11::basic_string<char>]’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:594:36:   required from ‘void cxxopts::values::integer_parser(const string&, T&) [with T = long unsigned int; std::string = std::__cxx11::basic_string<char>]’
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:664:21:   required from here
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:31: warning: unused parameter ‘negative’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                          ~~~~~^~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:43: warning: unused parameter ‘value’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                         ~~^~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:69: warning: unused parameter ‘text’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                                  ~~~~~~~~~~~~~~~~~~~^~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp: In instantiation of ‘void cxxopts::values::detail::check_signed_range(bool, U, const string&) [with T = long int; U = long unsigned int; std::string = std::__cxx11::basic_string<char>]’:
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:594:36:   required from ‘void cxxopts::values::integer_parser(const string&, T&) [with T = long int; std::string = std::__cxx11::basic_string<char>]’
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:671:21:   required from here
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:31: warning: unused parameter ‘negative’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                          ~~~~~^~~~~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:43: warning: unused parameter ‘value’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                         ~~^~~~~
/home/rrs/NoBackup/Community/gebaar-libinput/libs/cxxopts/include/cxxopts.hpp:513:69: warning: unused parameter ‘text’ [-Wunused-parameter]
  513 |       check_signed_range(bool negative, U value, const std::string& text)
      |                                                  ~~~~~~~~~~~~~~~~~~~^~~~
make[2]: *** [CMakeFiles/gebaard.dir/build.make:76: CMakeFiles/gebaard.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/gebaard.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
osleg commented 2 years ago

Looks like cxxopts can't compile

rncar commented 2 years ago

I just fix this adding #include <cmath> to libs/cpptoml/include/cpptoml.h and libs/cxxopts/include/cxxopts.hpp