How to build melodic workspace in noetic
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
-- Using CATKIN_ENABLE_TESTING: ON
-- 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):
execute_process(/usr/bin/python2
"/opt/ros/noetic/share/catkin/cmake/parse_package_xml.py"
"/opt/ros/noetic/share/catkin/cmake/../package.xml"
"/home/user/Documents/ROS/husky/build/catkin/catkin_generated/version/package.cmake")
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
Asked by msantos on 2021-11-14 15:37:35 UTC
Comments
If you are interested in installing husky now is available for Noetic ;
Asked by osilva on 2021-11-14 17:12:06 UTC
I updated this is in my previous answer as well.
Asked by osilva on 2021-11-14 17:15:10 UTC
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.
Asked by msantos on 2021-11-15 03:15:12 UTC
Make sure your Python files are in Python3 as Python2 doesn’t work in Noetic. From displayed error that’s what caused compilation error
Asked by osilva on 2021-11-15 06:23:20 UTC