Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Extending CDT configurations/tools
Extending CDT configurations/tools [message #140505] Thu, 10 March 2005 11:55 Go to next message
Richard Miskin is currently offline Richard MiskinFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

I'm currently trying to integrate the Cantata++ software testing tool into
Eclipse with CDT. The way the tool works is to insert a compiler driver in
front of the call to the compiler. So if you normally compiled your code
with:
gcc -c my_file.c
you could call Cantata++ and compile it by using:
ipg_comp --comp my_file.c

The equivalent also applies to the linking step.

To do this I've created a plugin that use the extension point
org.eclipse.cdt.managedbuilder.core.buildDefinitions. The plugin then
defines a 'Cantata++ Test Executable' projectType, with 2 configurations,
each configuration has a tool chain and each tool chain defines new C/C++
compiler and linker commands. The debug toolchain has
cdt.managedbuild.toolchain.gnu.cygwin.exe.debug as it's superclass and
I've got the compiler working fine by using
<tool
command="ipg_comp --gcc --quiet --optfile ../ipg.cop --comp g++"
name="C++ Compiler"
id="com.ipl.cantpp.eclipse.win32.debug.cpp.compiler"
superClass="cdt.managedbuild.tool.gnu.cpp.compiler.cygwin.exe.debug ">
</tool>

But if I use the equivalent for the linker:
<tool
command="ipg_comp --gcc --quiet --optfile ../ipg.cop --link g++"
name="C++ Linker"
id="com.ipl.cantpp.eclipse.win32.debug.cpp.linker"
superClass="cdt.managedbuild.tool.gnu.cpp.linker.cygwin.exe.debug ">
</tool>

The makefile contains:
dummy_project: $(OBJS)
@echo 'Building target: $@'
null null $@ $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building: $@'
Obviously the 'null null' means that this doesn't work. If I use
cdt.managedbuild.tool.gnu.cpp.linker as the superclass the makefile is
written out correctly but I get entries for both my "C++ Linker" and also
the "GNU C++ Linker" that is being inherited from the toolchain's
superclass.

Any ideas why I can get this working for the compiler and not the linker?
If I've not given enough information to work out what I mean let me know
and I can try and explain it in more detail.

Cheers,
Richard
Re: Extending CDT configurations/tools [message #1749308 is a reply to message #140505] Mon, 05 December 2016 10:22 Go to previous messageGo to next message
dinesh devaki is currently offline dinesh devakiFriend
Messages: 1
Registered: December 2016
Junior Member
Hi Richard Miskin,

Is the integration of Cantata++ software testing tool into
Eclipse with CDT is successful?

Could you please explain the process if you are successfully integrated both.

Thanks,
Dinesh Devaki.
Re: Extending CDT configurations/tools [message #1749327 is a reply to message #1749308] Mon, 05 December 2016 15:09 Go to previous message
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 404
Registered: June 2014
Senior Member
Hi Dinesh,

I hope you get an answer, but just wanted to make sure you noticed that the post you were replying to was from 2005, so you may find people have moved on.

Cantata is already integrated with Eclipse CDT (as you can see from the intro video on http://www.qa-systems.com/tools/cantata/)

If you have more specific questions, I would recommending starting a new topic with the specific problem you are trying to solve and what hurdles you have faced that need additional input.

Thanks,
Jonah
Previous Topic:Unable to compile STM32F4 code sample with Eclipse
Next Topic:name of the generated file
Goto Forum:
  


Current Time: Wed Jan 19 11:48:59 GMT 2022

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

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

Back to the top