Custom Toolchain [message #636697] |
Tue, 02 November 2010 09:49  |
Eclipse User |
|
|
|
Hi,
I'm new to this forum (and CDT plugins) so please forgive me if I have posted to the wrong place.
I am interested in creating a custom toolchain but want to start from the ground up. I have followed the tutorial in the Managed Build System Extensibility Document (6 Tutorial: An Example Tool Integration) and have got the basic toolchain working. I think the tutorial does a good job of guiding you through the process of creating a basic toolchain but it is calling a non-existent command (ccc) and therefore doesn't do anything.
I thought that the natural next step would be to try to get it to do something and so I changed ccc to gcc. However, it isn't quite working yet. Here is my output after trying to build a source file:
**** Build of configuration Test Release for project Test ****
make all
'Building file: ../Test.c'
'Invoking: Compiler'
gcc -o"Test.o" "../Test.c"
'Finished building: ../Test.c'
' '
cc Test.o -o Test
process_begin: CreateProcess(NULL, cc Test.o -o Test, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Test] Error 2
I think the problem is that it is trying to invoke the cc compiler when I don't have it installed. The Test.o output file is created successfully and I can run it, so I guess I'm not sure why this next step in the process is happening and how to resolve the error.
Here is my plugin.xml file:
<extension
id="org.eclipse.cdt.example.toolchain"
name="Example Tool"
point="org.eclipse.cdt.managedbuilder.core.buildDefinitions ">
<projectType
id="example.toolchain.executable"
isAbstract="false"
isTest="false"
name="Example Executable">
<configuration
cleanCommand="rm -f"
errorParsers=" org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GC CErrorParser; "
id="example.toolchain.configuration.release"
name="Test Release">
<toolChain
id="example.toolchain.toolchain"
isAbstract="false"
name="Example Tool-chain"
osList="win32">
<builder
id="example.toolchain.builder"
isAbstract="false"
isVariableCaseSensitive="false"
name="Example Builder">
</builder>
<targetPlatform
binaryParser="org.eclipse.cdt.core.PE"
id="example.toolchain.targetplatform"
isAbstract="false"
name="Example Target Platform"
osList="win32">
</targetPlatform>
<tool
command="gcc"
id="example.toolchain.compiler"
isAbstract="false"
name="Compiler"
natureFilter="both"
outputFlag="-o">
<inputType
dependencyCalculator=" org.eclipse.cdt.managedbuilder.makegen.internal.DefaultIndex erDependencyCalculator "
dependencyContentType="org.eclipse.cdt.core.cHeader"
id="example.toolchain.compiler.input"
name="Compiler Input"
primaryInput="true"
sourceContentType="org.eclipse.cdt.core.cSource">
</inputType>
<outputType
buildVariable="OBJS"
id="example.toolchain.compiler.output"
name="Compiler Output"
outputs="o"
primaryOutput="true">
</outputType>
</tool>
</toolChain>
</configuration>
</projectType>
</extension>
Can anyone help?
Thanks,
Alan
|
|
|
|
|
Re: Custom Toolchain [message #720455 is a reply to message #651009] |
Tue, 30 August 2011 11:54  |
Eclipse User |
|
|
|
Hi Alan,
I am REALLY REALLY hoping (with my finger crossed) that you will get message and you can reply to me.
I came across your post about custom toolchain in Eclipse forum. I am also trying to build a custom toolchain to build our toolchain. As you said, I also followed the tutorial for the CDT MBS. I have the plugin.xml file exactly same as you except that mine is for Linux i.e. osList="linux". And, the target platform as follows:
<targetPlatform
archList="all"
binaryParser="org.eclipse.cdt.core.ELF"
id="bluebee.toolchain.targetplatform"
isAbstract="false"
name="Bluebee Target Platform"
osList="linux">
</targetPlatform>
I tried exactly the same was as you have tried changing ccc to gcc and building a project with a simple helloworld.c file. Unfortunately, its not working. I get the following error:
**** Build of configuration Test Release for project test ****
make all
make: *** No rule to make target `test', needed by `all'. Stop.
**** Build Finished ****
Could you please help me what should I do to solve this issue? I am struggling with it already for so long. I would be very grateful if you could point out anything.
Thanks a lot in advance!
Kamana
|
|
|
Powered by
FUDForum. Page generated in 0.04417 seconds