在树莓派官方系统上安装ROS1遇到了这个问题,卡了好几天
当时在执行安装并编译ROS1的命令
sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/melodic -j2
在安装并编译rviz库时出现了这样的报错,说是和orge库有关,但实在是不会改了
Assembler messages:
Fatal error: can't create CMakeFiles/rviz.dir/preferences_dialog.cpp.o: Permission denied
make[2]: *** [src/rviz/CMakeFiles/rviz.dir/build.make:648: src/rviz/CMakeFiles/rviz.dir/preferences_dialog.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/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[1]: *** [CMakeFiles/Makefile2:2988: src/rviz/CMakeFiles/rviz.dir/all] Error 2
make: *** [Makefile:141: all] Error 2