ros indigo eclipse pcl - unresolved issue .

本文档详细介绍了如何使用Eclipse进行ROS项目的配置,并解决了常见的未解析包含问题。通过遵循官方指南,确保了开发环境的顺利搭建。文章还提供了具体的步骤来解决因依赖项更改而产生的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://blog.youkuaiyun.com/jinking01/article/details/79441531

https://blog.youkuaiyun.com/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

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值