禁用自动的“正在更新项目...”; Eclipse CDT中的操作 [英] Disable automatic "Updating projects..." action in Eclipse CDT

查看:104
本文介绍了禁用自动的“正在更新项目...”; Eclipse CDT中的操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Eclipse中使用一个相当大的项目,该项目由不同的库组成,由于专用的 Make Target元素,这些库可以独立构建。
编译该库之一时,编译工作正常,但是之后,Eclipse忙于执行构建目标。更新项目...(在进度视图中命名)。由于我的项目很大,因此此操作需要几分钟,因此无法启动新的编译或更改Eclipse设置。
有什么方法可以在Eclipse中禁用此自动更新吗?

I am using a quite large project in Eclipse, composed by different libraries which can be build independently thanks to dedicated "Make Target" elements. When compiling one of this libraries, the compilation works fine, but afterwards, Eclipse keeps busy by doing "Building Targets. Updating projects..." (as named in the Progress View). As my project is rather large, this action takes several minutes, preventing me to start new compilations or change Eclipse settings. Is there any way to disable this automatic update in Eclipse?

我已经在Eclipse Helios和Eclipse Juno中观察到了这种行为。

I have observed this behaviour in Eclipse Helios and Eclipse Juno.

我尝试删除 Make target对象,并给出了无效的C / C ++ Build配置(例如,提供无效的make命令)。
如预期的那样,在构建项目时,Eclipse会尝试执行无效的make命令(失败),但是无论如何都会继续执行此正在更新项目... ...

I have tried to remove my "Make target" objects, and give an invalid C/C++ Build configuration (e.g., provide an invalid make command). As expected, when building the project, Eclipse tries to execute the invalid make command (which fails), but then keeps doing this "Updating projects..." anyway...

推荐答案

构建后Eclipse正在寻找新创建的可执行文件。如果您的项目是基于Makefile的,则Eclipse不能确定在哪里搜索和浏览整个源代码树。
假设您的可执行文件全部都放在bin-XXX文件夹中,则可以减少以下搜索:

After build Eclipse is looking for newly created executables. If your project is Makefile-based Eclipse cannot be sure where to search and browses the whole source tree. Assuming your executable are all go into a folder bin-XXX, you can reduce these searches as following:


  1. 选择顶部项目(例如 src),然后转到右菜单对话框属性(或者:顶部菜单项目属性)。然后转到 C ++构建-刷新策略。在这里选择文件夹 src,然后按添加例外。然后添加除 bin-XXX以外的所有文件夹作为例外。

  1. Select the top project (say "src") and go to the right-menu dialog "Properties" (alternatively: top menu Project-Properties). Then go to "C++ build"-"Refresh policy". Here select the folder "src" and press "Add Exception". Then add all folders except "bin-XXX" as an exception.

选择顶部项目 src,然后转到右菜单对话框 Properties(或者:顶部菜单Project-Properties)。然后转到 C ++常规–路径和符号–输出位置。添加文件夹 bin-XXX并删除文件夹 src

Select the top project "src" and go to the right-menu dialog "Properties" (alternatively: top menu Project-Properties). Then go to "C++ General – Paths and Symbols – Output Location". Add folder "bin-XXX" and remove the folder "src"

这篇关于禁用自动的“正在更新项目...”; Eclipse CDT中的操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆