Ask Your Question

I reinstall the ROS Melodic

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

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


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. (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 -0600 )edit

Thanks for the help.

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

you are welcome

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

1 Answer

Sort by ยป oldest newest most voted

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

Jose-Araujo gravatar image

I solved the problem. The Ubuntu use te Qt5 as default now, so to solve this problem I made (

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/
[ 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:

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



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

Seen: 167 times

Last updated: Dec 27 '20