ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

jonbbbb's profile - activity

2021-04-26 12:52:49 -0500 marked best answer ROS Cmake Error in lsb.cmake:8 (string): string no output variable specified

When I am trying to compile a workspace using catkin_make I get a CMake error. I think that this has to do with the python installation. The catkin_make has compiled in the the past and I have not changed /opt/ros/indigo/share/catkin/cmake/platform/lsb.cmake. I am using ubuntu 14.04 and a ROS version of indigo. Does anyone else know where this problem is coming from?

The error occurs when I run:

~$ cd catkin_ws_working_copy
~/catkin_ws_working_copy$ catkin_make

I get this error:

 ####
    #### Running command: "make cmake_check_build_system" in "catkin_ws_working_copy/build"
    ####
    -- Using CATKIN_DEVEL_PREFIX: /catkin_ws_working_copy/devel
    -- Using CMAKE_PREFIX_PATH: /catkin_ws_working_copy/devel;/catkin_ws/devel;/sawyer_ros/devel;/opt/ros/indigo
    -- This workspace overlays: /catkin_ws_working_copy/devel;/catkin_ws/devel;/sawyer_ros/devel;/opt/ros/indigo
    -- Using PYTHON_EXECUTABLE: /usr/bin/python
    -- Using Debian Python package layout
    -- Using empy: /usr/bin/empy 

CMake Error at /opt/ros/indigo/share/catkin/cmake/platform/lsb.cmake:8 (string):   string no output variable specified Call Stack (most recent call first):   /opt/ros/indigo/share/catkin/cmake/all.cmake:147 (include)   /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:20 (include)   CMakeLists.txt:52 (find_package)


    CMake Error at /opt/ros/indigo/share/catkin/cmake/platform/lsb.cmake:21 (string):   string no output variable specified Call Stack (most recent call first):   /opt/ros/indigo/share/catkin/cmake/all.cmake:147 (include)   /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:20 (include)   CMakeLists.txt:52 (find_package)

I have not changed the lsb.cmake file and it is below:

find_program(LSB_RELEASE_EXECUTABLE lsb_release)

if(LSB_RELEASE_EXECUTABLE)
  set(LSB_FOUND TRUE CACHE BOOL "lsb_release executable was found")
  execute_process(COMMAND ${LSB_RELEASE_EXECUTABLE} -si
    OUTPUT_VARIABLE LSB_DISTRIB_ID
    OUTPUT_STRIP_TRAILING_WHITESPACE)
  string(TOUPPER ${LSB_DISTRIB_ID} v)
  set(${v} TRUE CACHE BOOL "LSB Distrib tag")

  execute_process(COMMAND ${LSB_RELEASE_EXECUTABLE} -sd
    OUTPUT_VARIABLE LSB_DESCRIPTION
    OUTPUT_STRIP_TRAILING_WHITESPACE)
  execute_process(COMMAND ${LSB_RELEASE_EXECUTABLE} -sr
    OUTPUT_VARIABLE LSB_RELEASE
    OUTPUT_STRIP_TRAILING_WHITESPACE)
  execute_process(COMMAND ${LSB_RELEASE_EXECUTABLE} -sc
    OUTPUT_VARIABLE LSB_CODENAME
    OUTPUT_STRIP_TRAILING_WHITESPACE)

  string(TOUPPER ${LSB_DISTRIB_ID} v)
  set(${v} TRUE CACHE BOOL "LSB Distribution")
  #message(STATUS "${v} is on")

  string(TOUPPER ${LSB_DISTRIB_ID}_${LSB_CODENAME} v)
  set(${v} TRUE CACHE BOOL "LSB Distrib - codename tag")
  #message(STATUS "${v} is on")
endif()
2020-05-20 20:15:14 -0500 received badge  Famous Question (source)
2019-08-01 09:08:23 -0500 received badge  Notable Question (source)
2019-07-24 10:55:13 -0500 commented question ROS Cmake Error in lsb.cmake:8 (string): string no output variable specified

I never found a solution. I moved my work space to a different computer, and my programs worked fine. So I have just bee

2019-07-23 09:28:48 -0500 received badge  Popular Question (source)
2019-07-11 09:57:35 -0500 asked a question ROS Cmake Error in lsb.cmake:8 (string): string no output variable specified

CMake Error When I am trying to compile a workspace using catkin_make I get a CMake error. I think that this has to do w