raulmur / ORB_SLAM

A Versatile and Accurate Monocular SLAM
http://webdiis.unizar.es/~raulmur/orbslam/
Other
1.49k stars 813 forks source link

permission denied problem at linking #148

Open arifle opened 6 years ago

arifle commented 6 years ago

Hi guys,

I got a problem when compiling ROS build. It seems to be a problem of generating executable files which said that there is no permission to write disk ?? Actually, I got a similar error before this and it was relatively clear to know where (which directory) I lost the permission and it was fixed via a chown -R uName Directory. I don't know how I can fix this error cause I don't know very much about Linux Makefile and hence don't know what exactly the directory is.

$ buils_ros.sh

-- Build files have been written to: /home/orbslam/Examples/ROS/ORB_SLAM2/build
[  0%] Built target rospack_genmsg_libexe
[  0%] Built target rosbuild_precompile
Linking CXX executable ../Stereo
Linking CXX executable ../RGBD
Linking CXX executable ../Mono
Linking CXX executable ../MonoAR
//usr/bin/ld//: usrcannot/usrbin/ binopen/usr ldoutput/ ld/file: :.  cannot. /Stereo:cannot  Permissionopenopen output file denied  output file 
..././binMonoAR:RGBD: Permission/  Permissiondenied 
denied
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
ld: collect2: error: ld returned 1 exit status
cannot open output file ../Mono: Permission denied
collect2: error: ld returned 1 exit status
make[2]: *** [../Stereo] Error 1
make[2]: *** [../MonoAR] Error 1
make[2]: *** [../RGBD] Error 1
make[1]: *** [CMakeFiles/Stereo.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/MonoAR.dir/all] Error 2
make[1]: *** [CMakeFiles/RGBD.dir/all] Error 2
make[2]: *** [../Mono] Error 1
make[1]: *** [CMakeFiles/Mono.dir/all] Error 2
make: *** [all] Error 2
arifle commented 6 years ago

I solved it few minutes ago. chown -R uName ./ORB_SLAM2