CMake error:System Error:No such file or directory CMake error:Could not open file for write in cop

Posted jason来自星星

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CMake error:System Error:No such file or directory CMake error:Could not open file for write in cop相关的知识,希望对你有一定的参考价值。

微型电脑或嵌入式与电脑还是有点不同的,在微型电脑上ros indigo 版本下利用catkin编译如果你遇到如下错误:

CMake error:System Error:No such file or directory  

CMake error:Could not open file for write in copy operation xxxx.ros_Config.cmake.tmp. 

CMake error:at /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:380

 

解决方法:

1. 切到root用户:用su、su - root或su -   (用户名root可以省略不写。)

2. 这样如果出现Authentication failed 等类似错误,则用  

  sudo bash

 

3. 然后用catkin_make编译,等编译好了,

 

4. 则返回普通用户即可

方法:su - (你的用户名)

 

以上是关于CMake error:System Error:No such file or directory CMake error:Could not open file for write in cop的主要内容,如果未能解决你的问题,请参考以下文章

ERROR: “System.Web.Mvc.Controller.File(string, string, string)”是一个“方法”

Internal Error: Sub-system: CUT, File: /quartus/db/cut/cut_post_syn_util.cpp, Line: 709 name_to_atom

已解决CMake Error: Cannot determine link language for target “xxx“. CMake Error: CMake can not determ

已解决CMake Error: Cannot determine link language for target “xxx“. CMake Error: CMake can not determ

CMake Error at cmake/boost.cmake:76 (MESSAGE):

CMake Error at cmake/boost.cmake:76 (MESSAGE)