ros indigo eclipse pcl - unresolved issue .

10 篇文章 0 订阅
4 篇文章 0 订阅

https://blog.csdn.net/jinking01/article/details/79441531

https://blog.csdn.net/eric491179912/article/details/6882007

http://www.360doc.com/content/14/1004/18/12129652_414386843.shtml

 

 

用eclipse开发ROS时经常会遇到 Unresolved xxxx issues , 其实只要按照ros IDE官方教程再来一边基本都能解决,昨天pcl文件不能解析也是因为这个原因(跟环境变量和配置没有关系,浪费了不少时间)。

把官网的主要步骤摘录下来:

cd  catkin_ws

 

catkin_make --force-cmake -G"Eclipse CDT4 - Unix Makefiles"

awk -f $(rospack find mk)/eclipse.awk build/.project > build/.project_with_env && mv build/.project_with_env build/.project

After executing this command you will find the project files in the build/ folder. Now you can import your project as existing project into workspace.

Fixing unresolved includes

There are many possible reasons why indexing cannot resolve all includes, functions, methods, variables, etc. Often, fixing the resolving of includes solves these errors. If you have any problems, these might be fixed by:

  • If the dependencies of your project have changed since first adding them to Eclipse, regenerate the project files and reimport the project into your workspace.
  • Making sure to load your .bashrc environment with Eclipse, by launching it using bash -i -c "eclipse" (see Reusing your shell's environment).

  • In Eclipse, right click the project, click properties -> C/C++ general -> Preprocessor Include Paths, Macros etc. Click the tab "Providers" and check the box next to "CDT GCC Built-in Compiler Settings [ Shared ]".

  • Afterwards, right click the project, select Index -> Rebuild. This will rebuild your index. Once this is done, usually all includes will resolve.

MD,导入的时候选择 build目录。否则还是有 unresolved 问题。

from build

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值