Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: /root/catkin_ws/devel/include: 权限不够 #7

Open
BloodLemonS opened this issue Nov 2, 2021 · 4 comments
Open

error: /root/catkin_ws/devel/include: 权限不够 #7

BloodLemonS opened this issue Nov 2, 2021 · 4 comments

Comments

@BloodLemonS
Copy link

RDS-SLAM/SLAM/Thirdparty/g2o/CMakeFiles/g2o.dir/build.make:62: recipe for target 'RDS-SLAM/SLAM/Thirdparty/g2o/CMakeFiles/g2o.dir/g2o/types/types_sba.cpp.o' failed
make[2]: *** [RDS-SLAM/SLAM/Thirdparty/g2o/CMakeFiles/g2o.dir/g2o/types/types_sba.cpp.o] Error 1
CMakeFiles/Makefile2:4867: recipe for target 'RDS-SLAM/SLAM/Thirdparty/g2o/CMakeFiles/g2o.dir/all' failed
make[1]: *** [RDS-SLAM/SLAM/Thirdparty/g2o/CMakeFiles/g2o.dir/all] Error 2
不好意思麻烦您,我是一个刚入手salm的新人,当我运行的时候出现权限不够的问题,该如何解决

@TonyPJ-deop
Copy link

这个问题你要去CmakeList文件中找到root/catkin_ws/devel/include这个语句,然后改为~/catkin_ws/devel/include就能解决了,如果依然还存在权限问题,就在其中查找root这个关键词,全部修改为相对路径就能解决了。该问题出现的原因就是错误标识了root,root所指向的目录为根目录,并且该目录无法直接通过程序访问。

@1328472051
Copy link

您好,我现在也遇到了相同的问题,请问还记着您当时是怎么解决的嘛

@BloodLemonS
Copy link
Author

按照作者所说,修改CmakeList.txt文件即可

@AG1008
Copy link

AG1008 commented Dec 5, 2023

VScode最左边第二个全局查找打开,搜索/root,全部相关内容都替换称自己电脑的绝对路径,把这些路径都配置好即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants