Ubuntu20.04安装FastRTPS,报错没有fastrtps-config.cmake

打印 上一主题 下一主题

主题 864|帖子 864|积分 2592

编译ros2 foxy报错:
  1. CMake Error at CMakeLists.txt:26 (find_package):
  2.   Could not find a package configuration file provided by "fastrtps" with any
  3.   of the following names:
  4.     fastrtpsConfig.cmake
  5.     fastrtps-config.cmake
  6.   Add the installation prefix of "fastrtps" to CMAKE_PREFIX_PATH or set
  7.   "fastrtps_DIR" to a directory containing one of the above files.  If
  8.   "fastrtps" provides a separate development package or SDK, be sure it has
  9.   been installed.
复制代码
 按照https://agility6.site/blog/fast-dds/ 下载fastrtps源码,编译、安装后。发现依然没有fastrtps-config.cmake文件天生。
检测fastrtps源码的versions.md发现Version 2.14.0开始,最新的源码把fastrtps-config.cmake改名成fastdds-config.cmake了
  1. * Migrate fastrtps namespace to fastdds
  2. * Migrate fastrtps `ResourceManagement` API from `rtps/resources` to `rtps/attributes`.
  3. * `const` qualify all data related inputs in DataWriter APIs
  4. * New `DomainParticipantExtendedQos` that includes both `DomainId` and `DomainParticipantQos` (extends `DomainParticipantFactory` API).
  5. * Make Blackbox tests not include any private API.
  6. * Remove all the private API include from Blackbox tests.
  7. * Discovery Server refactor:
  8.   * Clients and Servers no longer need a known GUID to connect between them.
  9.   * Servers are now configured specifying a LocatorList, instead of a RemoteServerAttributes list.
  10.   * Servers connect through a mesh topology. For a new server to join the topology, it must be connected to any server in it.
  11.   * Servers only redirect discovery information of their direct clients.
  12.   * Remote Discovery servers connection list can now be updated and modified at runtime without restrictions.
  13.   * Fast DDS CLI has been updated to allow the creation of servers without GUID.
  14.   * Servers are responsible of answering TypeLookupRequests of others servers when working with X-Types.
  15.   * Backup server is not compatible with X-Types.
  16. * Refactor in XML Parser to return DynamicTypeBuilder instead of DynamicType
  17. * Setting vendor_id in the received CacheChange_t for Data and DataFrag.
  18. * Added new DynamicData to JSON serializer (`json_serialize`).
  19. * Added new DynamicType to IDL serializer (`idl_serialize`).
  20. * DDS implementation of `eprosima::fastdds::Time_t` moved to `eprosima::fastdds::dds::Time_t`.
  21. * `TopicDataType::auto_fill_type_information` has been removed in favor of `fastdds.type_propagation` participant property.
  22. * Add new custom pid PID_PRODUCT_VERSION.
  23. * SHM locator kind is now linked to Fast DDS' major version.
  24. Version 2.14.0
  25. --------------
  26. * Added authentication handshake properties.
  27. * Added methods OpenOutputChannels and CloseOutputChannels to TransportInterface with LocatorSelectorEntry argument.
  28. * Added `netmask_filter`, `allowlist` and `blocklist` transport configuration options.
  29. * Added extra configuration options for the builitin transports.
  30. * Limit the amount of listening ports for TCP servers to 1.
复制代码
所以应该把fastrtps源码切换到2.14之前的版本
  1. suwei@SH-DZ0104348:~/work/source/Fast-DDS/Fast-RTPS$ git checkout v2.13.6
复制代码
然后再编译安装即可

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

自由的羽毛

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表