Eclipse CDT“路径必须包含项目和资源名称”
我一直在用头撞砖墙,所以任何帮助将不胜感激:)
我创建了两个具有以下结构的项目。
- C:\ide\xxx\source 下有一个源文件夹 C
- :\ide\xxx\build1 下有一个项目文件夹 C:
- \ide\xxx\build2 下有一个项目文件夹
- build1 和 build2 都包含链接的文件夹C:\ide\xxx\source 使用变量 MYBUILD_ROOT="C:\ide\xxx"。
build2 使用内部构建器编译得很好。然而,build1 甚至没有开始构建,因为它报告
> **** Rebuild of configuration Release for project CoreMarkTs1 ****
>
> **** Internal Builder is used for build ****
> Build error
> Path must include project and resource
> name: /build1
任何帮助将不胜感激。
I've been banging my head against a brick wall with this, so any help will be much appreciated :)
I have created two projects with the following structure.
- There is one source folder under C:\ide\xxx\source
- There is a project folder under C:\ide\xxx\build1
- There is a project folder under C:\ide\xxx\build2
- Both build1 and build2 include the linked folder C:\ide\xxx\source using the variable MYBUILD_ROOT="C:\ide\xxx".
build2 compiles just fine using the internal builder. However, build1 doesn't even start to build because it reports
> **** Rebuild of configuration Release for project CoreMarkTs1 ****
>
> **** Internal Builder is used for build ****
> Build error
> Path must include project and resource
> name: /build1
Any help would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我知道这个问题已经有 3 年历史了,但以防万一有人偶然发现它有同样的问题(就像我一样)
这个线程可能会回答这个问题:Eclipse CDT 无效项目路径。
如果“发现选项”不存在,另一个线程解释了如何使其重新出现: Eclipse C/C++ 中的发现选项
就我而言,这种操作并没有达到目的。后来我发现我加载的 DLL 列表中有一个格式错误的路径(项目属性 > C/C++ 构建 > 设置 > 交叉 G++ 链接器 > 杂项 > 其他对象)。我更正了 DLL 的错误路径,现在“路径必须包含项目和资源”错误消失了(现在我遇到了常规错误:P)
The question is 3 years old, I know, but just in case someone stumbles upon it with the same problem (as I did)
This thread might answer the problem: Eclipse CDT Invalid Project Path.
In case The "Discovery Options" isn't there, this other thread explains how to make it reappear: Discovery Options in Eclipse C/C++
In my case, this manipulation didn't do the trick. I figured afterwards that I had a malformed path in my loaded DLL list (Project Properties > C/C++ Build > Settings > Cross G++ Linker > Miscellaneous > Other objects). I corrected the faulty path to a DLL and now the "Path must include project and resource" error is gone (Now I've just got regular errors :P)