gazebosim / gz-msgs

Messages for Gazebo robot simulation.
https://gazebosim.org
Apache License 2.0
23 stars 47 forks source link

install from source: Gazebo Harmonic on jestson orin agx #383

Closed UserName-wang closed 1 year ago

UserName-wang commented 1 year ago

Try to install Gazebo Harmonic from source on jestson orin agx , jetpack 5.1.2 OS: ubuntu 20.04.

got error:

Starting >>> gz-msgs10                          
Starting >>> sdformat14
[Processing: gz-common5, gz-msgs10, sdformat14]                                                                         
[Processing: gz-common5, gz-msgs10, sdformat14]                                                                         
[Processing: gz-common5, gz-msgs10, sdformat14]                                                                
[Processing: gz-common5, gz-msgs10, sdformat14]                                                                   
[Processing: gz-common5, gz-msgs10, sdformat14]                                                                   
[Processing: gz-common5, gz-msgs10, sdformat14]                                                                   
[Processing: gz-common5, gz-msgs10, sdformat14]                                                                     
--- stderr: gz-msgs10                                                                                               
/home/orin/workspace/src/gz-msgs/core/src/DynamicFactory.cc: In member function ‘void gz::msgs::DynamicFactory::Types(std::vector<std::__cxx11::basic_string<char> >&)’:
/home/orin/workspace/src/gz-msgs/core/src/DynamicFactory.cc:144:12: error: ‘class google::protobuf::SimpleDescriptorDatabase’ has no member named ‘FindAllMessageNames’; did you mean ‘FindAllFileNames’?
  144 |   this->db.FindAllMessageNames(&messages);
      |            ^~~~~~~~~~~~~~~~~~~
      |            FindAllFileNames
make[2]: *** [core/CMakeFiles/gz-msgs10.dir/build.make:3889: core/CMakeFiles/gz-msgs10.dir/src/DynamicFactory.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1472: core/CMakeFiles/gz-msgs10.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

Can someone please help to have a look? or should I switch to gz-msgs9 ?

mjcarroll commented 1 year ago

FindAllMessageNames is not available in the protobuf version installed with Ubuntu 20.04 (3.6.1), while is is avialable in 22.04 in version (3.12.4).

As harmonic doesn't officially support ubuntu 20.04, it may be worth using garden, which is gz-msgs9