How to build melodic workspace in noetic

asked 2021-11-14 14:37:35 -0500

msantos gravatar image

updated 2022-01-22 16:16:14 -0500

Evgeny gravatar image

Hi, I have switched from ROS melodic on Ubuntu 18 to Ubuntu 20 + noetic, and I am planning to use some workspaces from my previous system. I copied the folder for the same path as I has before, installed the husky (despite of the comments in q#385568, I could install as I suggested there) and then tried to build my old workspace which contains the additional worlds.

Is is the reasonable process to try, or should I do something different?

I got the error below, it seems to be some python version stuff.

~/Documents/ROS/husky$ catkin_make
Base path: /home/user/Documents/ROS/husky
Source space: /home/user/Documents/ROS/husky/src
Build space: /home/user/Documents/ROS/husky/build
Devel space: /home/user/Documents/ROS/husky/devel
Install space: /home/user/Documents/ROS/husky/install
#### Running command: "make cmake_check_build_system" in "/home/user/Documents/ROS/husky/build"
-- Using CATKIN_DEVEL_PREFIX: /home/user/Documents/ROS/husky/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/noetic
-- This workspace overlays: /opt/ros/noetic
-- Found PythonInterp: /usr/bin/python2 (Required is at least version "2") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/user/Documents/ROS/husky/build/test_results
-- Forcing gtest/gmock from source, though one was otherwise available.
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python2  
-- Using Python nosetests: /usr/bin/nosetests-2.7
CMake Error at /opt/ros/noetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
  returned error code No such file or directory
Call Stack (most recent call first):
  /opt/ros/noetic/share/catkin/cmake/catkin_package_xml.cmake:74 (safe_execute_process)
  /opt/ros/noetic/share/catkin/cmake/all.cmake:168 (_catkin_package_xml)
  /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:20 (include)
  CMakeLists.txt:58 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/user/Documents/ROS/husky/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/Documents/ROS/husky/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:334: cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
edit retag flag offensive close merge delete


If you are interested in installing husky now is available for Noetic ;

sudo apt-get update
sudo apt-get install ros-noetic-husky-desktop
sudo apt-get install ros-noetic-husky-simulator
osilva gravatar image osilva  ( 2021-11-14 16:12:06 -0500 )edit

I updated this is in my previous answer as well.

osilva gravatar image osilva  ( 2021-11-14 16:15:10 -0500 )edit

Hi, I installed husky for noetic properly, just not sure how to build my old workspaces with all the data I used to have on melodic.

msantos gravatar image msantos  ( 2021-11-15 02:15:12 -0500 )edit

Make sure your Python files are in Python3 as Python2 doesn’t work in Noetic. From displayed error that’s what caused compilation error

osilva gravatar image osilva  ( 2021-11-15 05:23:20 -0500 )edit