SICKAG / sick_safetyscanners2

ROS2 driver for SICK safety laser scanners
https://www.sick.com/de/en/opto-electronic-protective-devices/safety-laser-scanners/c/g187225
Apache License 2.0
28 stars 29 forks source link

Cannot install from source #1

Closed SomaGallai closed 3 years ago

SomaGallai commented 3 years ago

Ubuntu 20.04.1 LTS Nvidia Jetson TX2

Following the steps given, the build fails. The error it gives is the following:

CMake Error at CMakeLists.txt:23 (find_package):
  By not providing "Findsick_safetyscanners_base.cmake" in CMAKE_MODULE_PATH
  this project has asked CMake to find a package configuration file provided
  by "sick_safetyscanners_base", but CMake did not find one.

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

    sick_safetyscanners_baseConfig.cmake
    sick_safetyscanners_base-config.cmake

  Add the installation prefix of "sick_safetyscanners_base" to
  CMAKE_PREFIX_PATH or set "sick_safetyscanners_base_DIR" to a directory
  containing one of the above files.  If "sick_safetyscanners_base" provides
  a separate development package or SDK, be sure it has been installed.
lenpuc commented 3 years ago

Hi,

did you include https://github.com/SICKAG/sick_safetyscanners_base in your colcon_ws? This is the missing dependency. The other dependency is https://github.com/SICKAG/sick_safetyscanners2_interfaces. Currently both have to be in your workspace. A release is triggered as apt package

SomaGallai commented 3 years ago

Thank you for the clarification, now it was able to build!

lenpuc commented 3 years ago

Great, I'll clarify it in the build instruction.