Findfoonathan_memory [closed]

asked 2021-11-26 05:30:05 -0500

Rongcai gravatar image

updated 2021-11-26 10:37:59 -0500

osilva gravatar image

Dear all, Anyone can help on below compile issue for ROS2 galactic ? Thanks a lot in advance.

Finished <<< rmw_implementation [1.01s]
Starting >>> rcl
--- stderr: example_interfaces                                                                  
CMake Error at /home/super/ros2_galactic_src/install/fastrtps/share/fastrtps/cmake/fastrtps-config.cmake:50 (find_package):
  By not providing "Findfoonathan_memory.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "foonathan_memory", but CMake did not find one.

  Could not find a package configuration file provided by "foonathan_memory"
  with any of the following names:

    foonathan_memoryConfig.cmake
    foonathan_memory-config.cmake

  Add the installation prefix of "foonathan_memory" to CMAKE_PREFIX_PATH or
  set "foonathan_memory_DIR" to a directory containing one of the above
  files.  If "foonathan_memory" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  /home/super/ros2_galactic_src/install/rosidl_typesupport_fastrtps_c/share/rosidl_typesupport_fastrtps_c/cmake/rosidl_typesupport_fastrtps_c-extras.cmake:6 (find_package)
  /home/super/ros2_galactic_src/install/rosidl_typesupport_fastrtps_c/share/rosidl_typesupport_fastrtps_c/cmake/rosidl_typesupport_fastrtps_cConfig.cmake:41 (include)
  /home/super/ros2_galactic_src/install/rosidl_typesupport_c/share/rosidl_typesupport_c/cmake/rosidl_typesupport_c-extras.cmake:13 (find_package)
  /home/super/ros2_galactic_src/install/rosidl_typesupport_c/share/rosidl_typesupport_c/cmake/rosidl_typesupport_cConfig.cmake:41 (include)
  /home/super/ros2_galactic_src/install/rosidl_default_generators/share/rosidl_default_generators/cmake/rosidl_default_generators-extras.cmake:21 (find_package)
  /home/super/ros2_galactic_src/install/rosidl_default_generators/share/rosidl_default_generators/cmake/rosidl_default_generatorsConfig.cmake:41 (include)
  CMakeLists.txt:14 (find_package)


---
Failed   <<< example_interfaces [0.55s, exited with code 1]
Aborted  <<< rcl [1.89s]
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Rongcai
close date 2021-11-27 03:59:16.618082

Comments

Please take a look at this thread and suggested fix:

https://github.com/eProsima/Fast-DDS/...

$ git clone https://github.com/eProsima/foonathan_memory_vendor.git
$ cd foonathan_memory_vendor
$ mkdir build && cd build
$ cmake ..
$ cmake --build . --target install
osilva gravatar image osilva  ( 2021-11-26 11:14:20 -0500 )edit

Great thanks osilva! This issue has been resolved with the fix you provided.

Rongcai gravatar image Rongcai  ( 2021-11-27 03:58:50 -0500 )edit