compiling problem copying src folder
Hi! I tried to copy my src folder on a different pc in a catkin_ws. If I try to run catkin_make the devel and build folders appear but the process doesn't end properly. Could the compiler version be the problem? If yes where I can find out what version I should use? Thanks
utente@valeria:~/catkin_ws$ catkin_make
Base path: /home/utente/catkin_ws
Source space: /home/utente/catkin_ws/src
Build space: /home/utente/catkin_ws/build
Devel space: /home/utente/catkin_ws/devel
Install space: /home/utente/catkin_ws/install
####
#### Running command: "cmake /home/utente/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/utente/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/utente/catkin_ws/install -G Unix Makefiles" in "/home/utente/catkin_ws/build"
####
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/utente/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/melodic
-- This workspace overlays: /opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "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/utente/catkin_ws/build/test_results
-- 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 (found version "2.7.17")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.23
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 10 packages in topological order:
-- ~~ - auv_lib
-- ~~ - folaga_msgs
-- ~~ - gnc_msgs
-- ~~ - auv_gnc
-- ~~ - gt_wimust_wrapper
-- ~~ - auv_launch
-- ~~ - mission_management
-- ~~ - wmcs_lib
-- ~~ - acoustic_localisation
-- ~~ - drivers
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'auv_lib'
-- ==> add_subdirectory(auv/auv_lib)
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'eigen3'
-- Found eigen3, version 3.3.4
CMake Warning at /opt/ros/melodic/share/cmake_modules/cmake/Modules/FindEigen.cmake:62 (message):
The FindEigen.cmake Module in the cmake_modules package is deprecated.
Please use the FindEigen3.cmake Module provided with Eigen. Change
instances of find_package(Eigen) to find_package(Eigen3). Check the
FindEigen3.cmake Module for the resulting CMake variable names.
Call Stack (most recent call first):
auv/auv_lib/CMakeLists.txt:11 (find_package)
-- Found Eigen: /usr/include/eigen3
-- Eigen found (include: /usr/include/eigen3)
-- +++ processing catkin package: 'folaga_msgs'
-- ==> add_subdirectory(auv/auv_msgs/folaga_msgs)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- folaga_msgs: 11 messages, 0 services
-- +++ processing catkin package ...
Hi @v.leto,
Apart from the warning regarding the Eigen inclusion and efk dependency, I think the problem may be:
You do not have installed g++5
/bin/sh: 1: /usr/bin/g++-5: not found
Hi @Weasfas, thank you for your answer. I wrote
sudo apt-get update sudo apt-get install g++5 but I get this
[93%] Built target wmcs_lib_generate_messages [ 93%] Building CXX object auv/drivers/CMakeFiles/AcousticModem.dir/src/acoustic_modem_node.cpp.o [ 94%] Building CXX object auv/drivers/CMakeFiles/AcousticModem.dir/src/AcousticModem_interface.cpp.o /bin/sh: 1: /bin/sh: 1: /usr/bin/g++-5: not found/usr/bin/g++-5: not found
[ 95%] Built target localisation_pinger auv/drivers/CMakeFiles/AcousticModem.dir/build.make:62: recipe for target 'auv/drivers/CMakeFiles/AcousticModem.dir/src/acoustic_modem_node.cpp.o' failed make[2]: * [auv/drivers/CMakeFiles/AcousticModem.dir/src/acoustic_modem_node.cpp.o] Error 127 make[2]: Attesa per i processi non terminati.... auv/drivers/CMakeFiles/AcousticModem.dir/build.make:86: recipe for target 'auv/drivers/CMakeFiles/AcousticModem.dir/src/AcousticModem_interface.cpp.o' failed make[2]: ** [auv/drivers/CMakeFiles/AcousticModem.dir/src/Acou
Hi, I think you need to install
sudo apt-get install build-essential
.it doesn'y work :(
Mmm well, lets do this. Since It seems the problem is in the drivers package lets do this: go to the project folder and generate a file with this name: CATKIN_IGNORE. Go to the catkin workspace and do a catkin_make. If all is correct at least you 100% know the problem is in drivers package.
From that point, an Error 127 can mean the file you are trying to compile is not found. Hence take a look at the CMakeLists.txt of the package to ensure you are not trying to compile a source file that does not exist. If that is not the case, I would say then that this particular project need a certain version of the compiler that your machine does not have. If none of this works I am out of ideas, apart from performing a reinstall.