添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
狂野的荔枝  ·  smartthings-cli ...·  1 周前    · 
俊逸的斑马  ·  CONVERT (SQL) | ...·  1 周前    · 
犯傻的黄豆  ·  Branches API | GitLab ...·  1 周前    · 
温暖的凉面  ·  碼農日常-『Android ...·  5 天前    · 
活泼的饭卡  ·  Query by Facets | ...·  2 天前    · 
高大的包子  ·  兄嫁1无码_高清播放 - ...·  4 月前    · 

project template build failed #12

@AllenChienXXX

Description

Hi, I'm following the tutorial and decided to build the project template, but it keeps failed to build and produce a lot of errors. I followed the exact steps in the documentation.
I guess the reason it's generating so many errors is because there are multiple dependencies that are not compatible between my ros2 iron and ignition gazebo fortress?

Environment

  • OS Version: Ubuntu 22.04 LTS on arm64
  • Source or binary build?
    binary build, the latest version
  • Description

    Hi, I'm following the tutorial and decided to build the project template, but it keeps failed to build and produce a lot of errors. I followed the exact steps in the documentation.
    I guess the reason it's generating so many errors is because there are multiple dependencies that are not compatible between my ros2 iron and ignition gazebo fortress?

    Steps to reproduce

    I just follow the exact steps on the tutorial

    Output

    there are so many errors, I only include the most botton ones:
    275 | std::string* Mutable(Arena* arena);
    | ^~~~~~~
    /home/ubuntu/anaconda3/include/google/protobuf/arenastring.h:275:16: note: candidate expects 1 argument, 2 provided
    /home/ubuntu/anaconda3/include/google/protobuf/arenastring.h:276:16: note: candidate: ‘std::string* google::protobuf::internal::ArenaStringPtr::Mutable(const google::protobuf::internal::LazyString&, google::protobuf::Arena*)’
    276 | std::string* Mutable(const LazyString& default_value, Arena* arena);
    | ^~~~~~~
    /home/ubuntu/anaconda3/include/google/protobuf/arenastring.h:276:42: note: no known conversion for argument 1 from ‘const string*’ {aka ‘const std:: cxx11::basic_string ’} to ‘const google::protobuf::internal::LazyString&’
    276 | std::string
    Mutable(const LazyString& default_value, Arena* arena);
    | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
    In file included from /usr/include/ignition/msgs8/ignition/msgs/MessageTypes.hh:226,
    from /usr/include/ignition/msgs8/ignition/msgs/Utility.hh:34,
    from /home/ubuntu/project_ws/src/ros_gz/ros_gz_sim/src/create.cpp:22:
    /usr/include/ignition/msgs8/ignition/msgs/world_modify.pb.h: In member function ‘std::string* ignition::msgs::WorldModify::release_cloned_uri()’:
    /usr/include/ignition/msgs8/ignition/msgs/world_modify.pb.h:591:29: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::Release(const string*, google::protobuf::Arena*)’
    591 | return cloned_uri
    .Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
    | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/include/ignition/msgs8/ignition/msgs/entity_factory.pb.h:25,
    from /home/ubuntu/project_ws/src/ros_gz/ros_gz_sim/src/create.cpp:16:
    /home/ubuntu/anaconda3/include/google/protobuf/arenastring.h:304:35: note: candidate: ‘std::string* google::protobuf::internal::ArenaStringPtr::Release()’
    304 | PROTOBUF_NODISCARD std::string* Release();
    | ^~~~~~~
    /home/ubuntu/anaconda3/include/google/protobuf/arenastring.h:304:35: note: candidate expects 0 arguments, 2 provided
    In file included from /usr/include/ignition/msgs8/ignition/msgs/MessageTypes.hh:226,
    from /usr/include/ignition/msgs8/ignition/msgs/Utility.hh:34,
    from /home/ubuntu/project_ws/src/ros_gz/ros_gz_sim/src/create.cpp:22:
    /usr/include/ignition/msgs8/ignition/msgs/world_modify.pb.h: In member function ‘void ignition::msgs::WorldModify::set_allocated_cloned_uri(std::string*)’:
    /usr/include/ignition/msgs8/ignition/msgs/world_modify.pb.h:599:27: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::SetAllocated(const string*, std::string*&, google::protobuf::Arena*)’
    599 | cloned_uri
    .SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), cloned_uri,
    | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    600 | GetArena());
    | ~~~~~~~~~~~
    In file included from /usr/include/ignition/msgs8/ignition/msgs/entity_factory.pb.h:25,
    from /home/ubuntu/project_ws/src/ros_gz/ros_gz_sim/src/create.cpp:16:
    /home/ubuntu/anaconda3/include/google/protobuf/arenastring.h:309:8: note: candidate: ‘void google::protobuf::internal::ArenaStringPtr::SetAllocated(std::string*, google::protobuf::Arena*)’
    309 | void SetAllocated(std::string* value, Arena* arena);
    | ^~~~~~~~~~~~
    /home/ubuntu/anaconda3/include/google/protobuf/arenastring.h:309:8: note: candidate expects 2 arguments, 3 provided
    In file included from /usr/include/ignition/msgs8/ignition/msgs/MessageTypes.hh:226,
    from /usr/include/ignition/msgs8/ignition/msgs/Utility.hh:34,
    from /home/ubuntu/project_ws/src/ros_gz/ros_gz_sim/src/create.cpp:22:
    /usr/include/ignition/msgs8/ignition/msgs/world_modify.pb.h: In member function ‘std::string* ignition::msgs::WorldModify::unsafe_arena_release_cloned_uri()’:
    /usr/include/ignition/msgs8/ignition/msgs/world_modify.pb.h:607:22: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘UnsafeArenaRelease’
    607 | return cloned_uri_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
    | ^~~~~~~~~~~~~~~~~~
    /usr/include/ignition/msgs8/ignition/msgs/world_modify.pb.h: In member function ‘void ignition::msgs::WorldModify::unsafe_arena_set_allocated_cloned_uri(std::string*)’:
    /usr/include/ignition/msgs8/ignition/msgs/world_modify.pb.h:618:15: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘UnsafeArenaSetAllocated’
    618 | cloned_uri_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
    | ^~~~~~~~~~~~~~~~~~~~~~~
    gmake[2]: *** [CMakeFiles/create.dir/build.make:76: CMakeFiles/create.dir/src/create.cpp.o] Error 1
    gmake[1]: *** [CMakeFiles/Makefile2:159: CMakeFiles/create.dir/all] Error 2
    gmake: *** [Makefile:146: all] Error 2

    Failed <<< ros_gz_sim [5.32s, exited with code 2]
    Aborted <<< ros_ign_interfaces [2.04s]
    Aborted <<< ros_gz_bridge [14.0s]

    Summary: 7 packages finished [17.7s]
    1 package failed: ros_gz_sim
    2 packages aborted: ros_gz_bridge ros_ign_interfaces
    3 packages had stderr output: ros_gz_bridge ros_gz_example_gazebo ros_gz_sim
    8 packages not processed