Toolchain invocation doesn't build anything while Make does... [message #156740] |
Tue, 25 October 2005 13:08 |
Eclipse User |
|
|
|
Originally posted by: screetch.gmail.com
hi all,
i need to build a toolchain for Eclipse CDT, and as the documentation is
a bit out of date i decided to test what was new on a new toolchain
plugin that would simply be able to build a C project using GCC (yes i
know it can already do that, i'm just using this as a toolchain example :) )
i did a new project plugin with a new configuration able to build an
executable using GCC from C files.
But Eclipse never builds the executable. i'm quite surprised as if i
type the make command under cygwin it's able to build the exe
filewithout any problem.
Anything i have done wrong? i'm using CDT 3.0 with Eclipse 3.1.1, I
include the example toolchain :
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension
point="org.eclipse.cdt.managedbuilder.core.buildDefinitions ">
<projectType
id="org.cdt.plugin.tools.exeProject"
isAbstract="false"
name="Executable project">
<configuration
artifactExtension="exe"
cleanCommand="rm -f"
description="Debug version using GNU tools"
id="org.cdt.plugin.tools.exeProject.gnu.debug"
name="debug">
<toolChain
id="org.cdt.plugin.tools.exeProject.GNU"
isAbstract="false"
name="GNU toolchain for Executable (debug)"
superClass="org.cdt.plugin.tools.gnuToolChain"/>
</configuration>
</projectType>
<toolChain
archList="all"
id="org.cdt.plugin.tools.gnuToolChain"
isAbstract="true"
name="GNU basic toolchain"
osList="all"
targetTool="org.cdt.plugin.tools.gnuToolChain.linker">
<tool
command="gcc -c"
id="org.cdt.plugin.tools.gnuToolChain.ccompiler"
isAbstract="false"
name="GNU C compiler"
natureFilter="both"
outputFlag="-o">
<inputType
id="org.cdt.plugin.tools.gnuToolChain.ccompiler.cfile"
multipleOfType="false"
name="C file"
primaryInput="true"
sources="c"/>
<outputType
buildVariable="OBJS"
id="org.cdt.plugin.tools.gnuToolChain.ccompiler.objfile"
multipleOfType="false"
name="Object file"
outputs="o"
primaryInputType="org.cdt.plugin.tools.gnuToolChain.ccompiler.cfile "
primaryOutput="true"/>
</tool>
<tool
command="gcc"
id="org.cdt.plugin.tools.gnuToolChain.linker"
isAbstract="false"
name="GNU linker"
natureFilter="both"
outputFlag="-o">
<inputType
buildVariable="OBJS"
id="org.cdt.plugin.tools.gnuToolChain.linker.objfile"
multipleOfType="true"
name="Object file"
primaryInput="true"
sources="o"/>
<outputType
id="org.cdt.plugin.tools.gnuToolChain.ccompiler.exefile"
multipleOfType="false"
name="Executable"
outputs="exe"
primaryInputType="org.cdt.plugin.tools.gnuToolChain.linker.objfile "
primaryOutput="true"/>
</tool>
</toolChain>
</extension>
</plugin>
thanx in advance
|
|
|
Powered by
FUDForum. Page generated in 0.02807 seconds