使用qtcreator时出现The specified source space "/home/xxx/src" does not exist的错误

来源:互联网 发布:selfie city照相软件 编辑:程序博客网 时间:2024/05/19 10:08
今天新安装了ubuntu,ros和qtcreator,进行编译时出现

22:42:45: Starting: "/opt/ros/hydro/bin/catkin_make"

Base path: /home/congleetea

The specified source space "/home/xxx/src" does not exist

22:42:46: The process "/opt/ros/hydro/bin/catkin_make" exited with code 1.

的错误,即提示制定的源路径在"/home/xxx/src"下面,但是其实我的这个路径是~/catkin_ws/src下面。检查了build setting之后感觉就之可能有build environment有问题了。最后找到便来那个PWD,他的value是/home/xxx/。把他改为/home/xxx/catkin_ws/之后编译就通过了。PWD其实就是编译出现的Base path

0 0