acxz / gazebo-arch

A collection of Arch Linux PKGBUILDS for the Gazebo Simulator
19 stars 11 forks source link

[gazebo] build error: string does not name a type #18

Closed acxz closed 2 years ago

acxz commented 2 years ago
In file included from /home/acxz/vcs/git/github/acxz/gazebo-arch/gazebo/src/gazebo-gazebo11_11.10.2/gazebo/msgs/generator/GazeboGenerator.cc:30:
/home/acxz/vcs/git/github/acxz/gazebo-arch/gazebo/src/gazebo-gazebo11_11.10.2/gazebo/msgs/generator/GazeboGenerator.hh:40:23: error: ‘string’ does not name a type; did you mean ‘stdin’?
   40 |                 const string& parameter,
      |                       ^~~~~~
      |                       stdin
/home/acxz/vcs/git/github/acxz/gazebo-arch/gazebo/src/gazebo-gazebo11_11.10.2/gazebo/msgs/generator/GazeboGenerator.hh:42:17: error: ‘string’ has not been declared
   42 |                 string* error) const;
      |                 ^~~~~~
/home/acxz/vcs/git/github/acxz/gazebo-arch/gazebo/src/gazebo-gazebo11_11.10.2/gazebo/msgs/generator/GazeboGenerator.cc:40:38: error: ‘string’ does not name a type; did you mean ‘stdin’?
   40 |                                const string &/*parameter*/,
      |                                      ^~~~~~
      |                                      stdin
/home/acxz/vcs/git/github/acxz/gazebo-arch/gazebo/src/gazebo-gazebo11_11.10.2/gazebo/msgs/generator/GazeboGenerator.cc:39:6: error: no declaration matches ‘bool google::protobuf::compiler::cpp::GazeboGenerator::Generate(const google::protobuf::FileDescriptor*, const int&, google::protobuf::compiler::OutputDirectory*, std::string*) const’
   39 | bool GazeboGenerator::Generate(const FileDescriptor *_file,
      |      ^~~~~~~~~~~~~~~
/home/acxz/vcs/git/github/acxz/gazebo-arch/gazebo/src/gazebo-gazebo11_11.10.2/gazebo/msgs/generator/GazeboGenerator.hh:39:24: note: candidate is: ‘virtual bool google::protobuf::compiler::cpp::GazeboGenerator::Generate(const google::protobuf::FileDescriptor*, const int&, google::protobuf::compiler::OutputDirectory*, int*) const’
   39 |   public: virtual bool Generate(const FileDescriptor* file,
      |                        ^~~~~~~~
/home/acxz/vcs/git/github/acxz/gazebo-arch/gazebo/src/gazebo-gazebo11_11.10.2/gazebo/msgs/generator/GazeboGenerator.hh:33:7: note: ‘class google::protobuf::compiler::cpp::GazeboGenerator’ defined here
   33 | class GazeboGenerator : public CodeGenerator
      |       ^~~~~~~~~~~~~~~
make[2]: *** [gazebo/msgs/CMakeFiles/gazebomsgs_out.dir/build.make:76: gazebo/msgs/CMakeFiles/gazebomsgs_out.dir/generator/GazeboGenerator.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2794: gazebo/msgs/CMakeFiles/gazebomsgs_out.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
acxz commented 2 years ago

patched in https://github.com/acxz/gazebo-arch/commit/4618df905ab62c34d45470d054741f80c3685832