Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Deactivating Post Build processes(Some post build process scans the entire project directory recursively)
Deactivating Post Build processes [message #1198334] Wed, 20 November 2013 09:07 Go to next message
Gregor Hendel is currently offline Gregor HendelFriend
Messages: 1
Registered: November 2013
Junior Member
Dear community,

I am new to this forum. I am using CDT 8.1.2 for developing a C project. Simplified, the project root has a Makefile, a bin/- and a src/-subdirectory, and
a check/-subdirectory for testing and benchmarking the software.

Our group has a *large* library with benchmarking data, call it "/library" for now. In the project development so far, it was common sense (so far) to create a softlink
of /library into the check/-subdirectory to run automated benchmarks on the external data.

Now, every time I build my project code, everything works fine, but after compilation (program is already compiled and executable from console), there must be some background process scanning my entire project directory including the check/- and, in particular, the linked /library therein. This scan blocks consecutive processes like running or debugging from within eclipse for, say, 2-5 minutes after completing the actual build.

Removing the softlink relieves eclipse from every such occuring deadlock. Let's say, that this removal does not meet some project requirement.

I managed to exclude the check/-directory from both the CDT-indexer and from the project-explorer itself by setting appropriate filters, yet, this does not prevent the killer-post-build-scan from running into it.
I guess my egit extension runs into the same trouble when refreshing the repository.

My question is: What does eclipse do after the execution of my make-command terminated? Is there a way to deactivate this process or to add another filter?

Thank you for reading up to this point Smile, I appreciate every hint you can give me on this.

Best regards

For the time being, I resolved the problem the in the way above mentioned; by outsourcing the large library outside of my project-directory. Yet, there must
be a way to filter such file-system traps from within eclipse...

[Updated on: Mon, 02 December 2013 09:42]

Report message to a moderator

Re: Deactivating Post Build processes [message #1219689 is a reply to message #1198334] Thu, 05 December 2013 12:33 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
After the compilation Eclipse scans the whole workspace for newly created binaries. That is because in case of an external Makefile Eclipse does not know which binaries were created during the build step.

Open Project Properties->C/C++ General+>Paths and Symbols:
1) select the tab "Source location"; add your src directory here and remove the default entry (project folder) or define filters for the default entry; this will affect mainly the scope of the indexer
2) select tab "Output location"; remove default entry and add your bin directory; the binary scanner will then only check this folder after the build step

Before you ask
- search this forum
- see the FAQ
- google
Previous Topic:HelloWorld fails to build
Next Topic:project include paths not used
Goto Forum:

Current Time: Wed May 23 09:18:59 GMT 2018

Powered by FUDForum. Page generated in 0.02009 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top