I reinstall the ROS Melodic
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):
stdrsimulator/stdrgui/CMakeLists.txt:20 (find_package)-- Configuring incomplete, errors occurred! See also "/home/jose/catkinws/build/CMakeFiles/CMakeOutput.log". See also "/home/jose/catkinws/build/CMakeFiles/CMakeError.log". Makefile:28558: recipe for target 'cmakecheckbuildsystem' failed make: *** [cmakecheckbuildsystem] Error 1 Invoking "make cmakecheckbuild_system" failed
Asked by Jose-Araujo on 2020-12-25 14:16:42 UTC
Answers
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-pkg/hector_slam/issues/59):
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/68896/sdl-image-error-while-building-gmapping/
Asked by Jose-Araujo on 2020-12-27 15:00:25 UTC
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/22113575/cmake-doesnt-know-where-is-qt4-qmake (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.
Asked by bekirbostanci on 2020-12-27 10:12:40 UTC
Thanks for the help.
Asked by Jose-Araujo on 2020-12-27 15:01:21 UTC
you are welcome
Asked by bekirbostanci on 2020-12-27 15:05:40 UTC