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

I reinstall the ROS Melodic

asked 2020-12-25 13:16:42 -0500

Jose-Araujo gravatar image

I had some problems on my computer, and I need to format it. I made a backup of all archives of ROS, and when I reinstall the ROS I copied and past the backup on the workspace of ROS, but I don't no if I made this corretly, because I am with this errors:

-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy qmake: could not find a Qt installation of '' CMake Error at /usr/share/cmake-3.10/Modules/FindQt4.cmake:1320 (message): Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x Call Stack (most recent call first):
stdr_simulator/stdr_gui/CMakeLists.txt:20 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/jose/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/jose/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:28558: recipe for target 'cmake_check_build_system' failed make: * [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed

edit retag flag offensive close merge delete

Comments

You copied you workspace but you didn't install old dependencies so that somethings is not work properly. Before the format your computer has Qt 4.x and you can compile your application with this pack but now you did not install this pack. I researched at google and get this link maybe it can work for you. https://stackoverflow.com/questions/2... (I am not sure it is work be carefull) Also, you can check your ROS with new work space. If the empty workspace compile your ROS is work fine only you don't have some dependincies.

bekirbostanci gravatar image bekirbostanci  ( 2020-12-27 09:12:40 -0500 )edit

Thanks for the help.

Jose-Araujo gravatar image Jose-Araujo  ( 2020-12-27 14:01:21 -0500 )edit

you are welcome

bekirbostanci gravatar image bekirbostanci  ( 2020-12-27 14:05:40 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-12-27 14:00:25 -0500

Jose-Araujo gravatar image

I solved the problem. The Ubuntu use te Qt5 as default now, so to solve this problem I made (https://github.com/tu-darmstadt-ros-p...):

sudo apt update

sudo apt install qt4-default

This was sufficient so solve, but after, I had another problem:

    /home/jose/catkin_ws/src/navigation/map_server/src/image_loader.cpp:43:10: fatal error: SDL/SDL_image.h: No such file or directory
 #include <SDL/SDL_image.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
navigation/map_server/CMakeFiles/map_server_image_loader.dir/build.make:62: recipe for target 'navigation/map_server/CMakeFiles/map_server_image_loader.dir/src/image_loader.cpp.o' failed
make[2]: *** [navigation/map_server/CMakeFiles/map_server_image_loader.dir/src/image_loader.cpp.o] Error 1
CMakeFiles/Makefile2:21135: recipe for target 'navigation/map_server/CMakeFiles/map_server_image_loader.dir/all' failed
make[1]: *** [navigation/map_server/CMakeFiles/map_server_image_loader.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 78%] Linking CXX shared library /home/jose/catkin_ws/devel/lib/libcontroller_manager.so
[ 78%] Built target controller_manager
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j2 -l2" failed

To solve this problem I used this solution:

https://answers.ros.org/question/6889...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-12-25 13:16:42 -0500

Seen: 309 times

Last updated: Dec 27 '20