Fails to build:
[ 0%] Building CXX object src/CMakeFiles/ign_msgs_gen.dir/Generator.cc.o
In file included from /usr/include/absl/hash/internal/hash.h:33,
from /usr/include/absl/hash/hash.h:89,
from /usr/include/absl/container/internal/hash_function_defaults.h:56,
from /usr/include/absl/container/hash_container_defaults.h:19,
from /usr/include/absl/container/flat_hash_map.h:43,
from /usr/include/google/protobuf/descriptor.h:47,
from /build/ignition-msgs-5/src/gz-msgs-ignition-msgs5_5.11.0/src/Generator.cc:23:
/usr/include/c++/15.1.1/ciso646:46:4: warning: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Wcpp]
46 | # warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros"
| ^~~~~~~
/build/ignition-msgs-5/src/gz-msgs-ignition-msgs5_5.11.0/src/Generator.cc: In member function ‘virtual bool google::protobuf::compiler::cpp::Generator::Generate(const google::protobuf::FileDescriptor*, const std::string&, google::protobuf::compiler::OutputDirectory*, std::string*) const’:
/build/ignition-msgs-5/src/gz-msgs-ignition-msgs5_5.11.0/src/Generator.cc:74:43: error: conversion from ‘google::protobuf::internal::DescriptorStringView’ {aka ‘std::basic_string_view<char>’} to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
74 | std::string headerFilename = _file->name();
| ~~~~~~~~~~~^~
/build/ignition-msgs-5/src/gz-msgs-ignition-msgs5_5.11.0/src/Generator.cc:79:43: error: conversion from ‘google::protobuf::internal::DescriptorStringView’ {aka ‘std::basic_string_view<char>’} to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
79 | std::string sourceFilename = _file->name();
| ~~~~~~~~~~~^~
/build/ignition-msgs-5/src/gz-msgs-ignition-msgs5_5.11.0/src/Generator.cc:146:47: error: no match for ‘operator+’ (operand types are ‘google::protobuf::internal::DescriptorStringView’ {aka ‘std::basic_string_view<char>’} and ‘const char [4]’)
146 | factory += _file->message_type(0)->name() + "\", " +
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~
| | |
| | const char [4]
| google::protobuf::internal::DescriptorStringView {aka std::basic_string_view<char>}
Pinned Comments
acxz commented on 2022-05-10 04:08 (UTC)
Development is on Github: https://github.com/acxz/gazebo-arch Please open issues and PRs there instead of commenting.