Skip to content

Compilation error on Manjaro / Arch Linux #199

@HaleTom

Description

@HaleTom
% cmake --build build
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at QtNodeEditor/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Found boost::coroutine2.
-- ZeroMQ found.
-- BEHAVIOR_TREE_LIB_DESTINATION:   lib
-- BEHAVIOR_TREE_BIN_DESTINATION:   bin
-- BUILD_UNIT_TESTS:   OFF
-- ----------------------------------
-- BehaviourTree.CPP submodule found.
-- ----------------------------------
-- ZeroMQ found.
CMake Deprecation Warning at test/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/Groot/build
[  1%] Automatic MOC and UIC for target behaviortree_cpp_v3
[  1%] Built target behaviortree_cpp_v3_autogen
[  1%] Building CXX object depend/BehaviorTree.CPP/CMakeFiles/behaviortree_cpp_v3.dir/src/loggers/bt_zmq_publisher.cpp.o
In file included from /tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/base.h:241,
                 from /tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/flatbuffers.h:20,
                 from /tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/BT_logger_generated.h:6,
                 from /tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/bt_flatbuffer_helper.h:5,
                 from /tmp/Groot/depend/BehaviorTree.CPP/src/loggers/bt_zmq_publisher.cpp:3:
/usr/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type
   52 | using string_view = std::string_view;
      |                          ^~~~~~~~~~~
/usr/include/absl/strings/string_view.h:52:21: note: ‘std::string_view’ is only available from C++17 onwards
   52 | using string_view = std::string_view;
      |                     ^~~
/usr/include/absl/strings/string_view.h:686:8: error: ‘string_view’ does not name a type
  686 | inline string_view ClippedSubstr(string_view s, size_t pos,
      |        ^~~~~~~~~~~
/usr/include/absl/strings/string_view.h:697:11: error: ‘string_view’ does not name a type
  697 | constexpr string_view NullSafeStringView(const char* p) {
      |           ^~~~~~~~~~~
/tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/base.h:243:23: error: ‘string_view’ in namespace ‘absl’ does not name a type
  243 |         typedef absl::string_view string_view;
      |                       ^~~~~~~~~~~
/tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/flatbuffers.h:828:16: error: ‘string_view’ in namespace ‘flatbuffers’ does not name a type
  828 |   flatbuffers::string_view string_view() const {
      |                ^~~~~~~~~~~
/tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/flatbuffers.h:857:28: error: ‘string_view’ in namespace ‘flatbuffers’ does not name a type
  857 | static inline flatbuffers::string_view GetStringView(const String* str)
      |                            ^~~~~~~~~~~
/tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/flatbuffers.h:1960:44: error: ‘flatbuffers::string_view’ has not been declared
 1960 |   Offset<String> CreateString(flatbuffers::string_view str) {
      |                                            ^~~~~~~~~~~
/tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/flatbuffers.h:2017:56: error: ‘string_view’ in namespace ‘flatbuffers’ does not name a type
 2017 |   Offset<String> CreateSharedString(const flatbuffers::string_view str)
      |                                                        ^~~~~~~~~~~
/tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/flatbuffers.h: In member function ‘flatbuffers::Offset<flatbuffers::String> flatbuffers::FlatBufferBuilder::CreateString(int)’:
/tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/flatbuffers.h:1961:29: error: request for member ‘data’ in ‘str’, which is of non-class type ‘int’
 1961 |     return CreateString(str.data(), str.size());
      |                             ^~~~
/tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/flatbuffers.h:1961:41: error: request for member ‘size’ in ‘str’, which is of non-class type ‘int’
 1961 |     return CreateString(str.data(), str.size());
      |                                         ^~~~
/tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/flatbuffers.h: In member function ‘flatbuffers::Offset<flatbuffers::String> flatbuffers::FlatBufferBuilder::CreateSharedString(int)’:
/tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/flatbuffers.h:2019:35: error: request for member ‘data’ in ‘str’, which is of non-class type ‘const int’
 2019 |     return CreateSharedString(str.data(), str.size());
      |                                   ^~~~
/tmp/Groot/depend/BehaviorTree.CPP/include/behaviortree_cpp_v3/flatbuffers/flatbuffers.h:2019:47: error: request for member ‘size’ in ‘str’, which is of non-class type ‘const int’
 2019 |     return CreateSharedString(str.data(), str.size());
      |                                               ^~~~
make[2]: *** [depend/BehaviorTree.CPP/CMakeFiles/behaviortree_cpp_v3.dir/build.make:90: depend/BehaviorTree.CPP/CMakeFiles/behaviortree_cpp_v3.dir/src/loggers/bt_zmq_publisher.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:335: depend/BehaviorTree.CPP/CMakeFiles/behaviortree_cpp_v3.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions