Eclipse CDT“路径必须包含项目和资源名称”

发布于 2024-09-18 04:52:15 字数 588 浏览 4 评论 0原文

我一直在用头撞砖墙,所以任何帮助将不胜感激:)

我创建了两个具有以下结构的项目。

  1. C:\ide\xxx\source 下有一个源文件夹 C
  2. :\ide\xxx\build1 下有一个项目文件夹 C:
  3. \ide\xxx\build2 下有一个项目文件夹
  4. 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.

  1. There is one source folder under C:\ide\xxx\source
  2. There is a project folder under C:\ide\xxx\build1
  3. There is a project folder under C:\ide\xxx\build2
  4. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

皇甫轩 2024-09-25 04:52:15

我知道这个问题已经有 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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文