Robotics StackExchange | Archived questions

ROS melodic not installing Rviz **[ERROR]**

Hi All, I got this error when I try to install ROS Melodic desktop on RPI4**

[ 16%] Building CXX object src/rviz/CMakeFiles/rviz.dir/loading_dialog.cpp.o
[ 16%] Building CXX object src/rviz/CMakeFiles/rviz.dir/mesh_loader.cpp.o
/home/pi/ros_catkin_ws/src/rviz/src/rviz/mesh_loader.cpp: In function ‘void rviz::buildMesh(const aiScene*, const aiNode*, const MeshPtr&, Ogre::AxisAlignedBox&, float&, std::vector<Ogre::SharedPtr<Ogre::Material> >&, aiMatrix4x4)’:
/home/pi/ros_catkin_ws/src/rviz/src/rviz/mesh_loader.cpp:241:50: error: no matching function for call to ‘aiMatrix4x4t<float>::Decompose(aiVector3D&, aiVector3D&, float&, aiVector3D&)’
     transform.Decompose(scaling, axis, angle, pos);
                                                  ^
In file included from /usr/local/include/assimp/types.h:511,
                 from /usr/local/include/assimp/Importer.hpp:53,
                 from /home/pi/ros_catkin_ws/src/rviz/src/rviz/mesh_loader.cpp:55:
/usr/local/include/assimp/matrix4x4.inl:301:13: note: candidate: ‘void aiMatrix4x4t<TReal>::Decompose(aiVector3t<TReal>&, aiQuaterniont<TReal>&, aiVector3t<TReal>&) const [with TReal = float]’
 inline void aiMatrix4x4t<TReal>::Decompose (aiVector3t<TReal>& scaling, aiQuaterniont<TReal>& rotation,
             ^~~~~~~~~~~~~~~~~~~
/usr/local/include/assimp/matrix4x4.inl:301:13: note:   candidate expects 3 arguments, 4 provided
make[2]: *** [src/rviz/CMakeFiles/rviz.dir/build.make:310: src/rviz/CMakeFiles/rviz.dir/mesh_loader.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/include/c++/8/vector:69,
                 from /opt/ros/melodic/include/pluginlib/class_loader.hpp:35,
                 from /home/pi/ros_catkin_ws/src/rviz/src/rviz/image/image_display_base.cpp:34:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator<long long unsigned int>]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<long long unsigned int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<long long unsigned int*, std::vector<long long unsigned int> >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /opt/ros/melodic/include/pluginlib/class_loader.hpp:35,
                 from /home/pi/ros_catkin_ws/src/rviz/src/rviz/image/image_display_base.cpp:34:
/usr/include/c++/8/bits/stl_vector.h: In member function ‘void tf2_ros::MessageFilter<M>::add(const MEvent&) [with M = sensor_msgs::Image_<std::allocator<void> >]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<long long unsigned int*, std::vector<long long unsigned int> >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<long long unsigned int*, std::vector<long long unsigned int> >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
make[1]: *** [CMakeFiles/Makefile2:2993: src/rviz/CMakeFiles/rviz.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
<== Failed to process package 'rviz': 
  Command '['/opt/ros/melodic/env.sh', 'make', '-j2']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/pi/ros_catkin_ws/build_isolated/rviz && /opt/ros/melodic/env.sh make -j2

Command failed, exiting.

everything works fine such as turtle sim and roscore.. The issue I have is with rviz not installing. Can someone help with this please. Many thanks

Asked by AK500 on 2023-07-08 06:48:17 UTC

Comments

Answers