Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How can I config Eclipse to build proyect?
How can I config Eclipse to build proyect? [message #870211] Mon, 07 May 2012 09:44 Go to next message
David Boo is currently offline David BooFriend
Messages: 3
Registered: May 2012
Junior Member
Hi!
I'm beginner with Eclipse and I have a problem, I wanna modify a proyect, I can open the proyect but when I edit and I'm going to build proyect, it can't run "gcc" program, and this is the messaje:

**** Rebuild of configuration Debug for project demo_at91sam7_blink ****

**** Internal Builder is used for build               ****
gcc -O0 -g3 -Wall -c -fmessage-length=0 -oAT91SAM7_H256_BLINKING_LED\system.o ..\AT91SAM7_H256_BLINKING_LED\system.c
Internal Builder: Cannot run program "gcc": Launching failed
Build error occurred, build is stopped
Time consumed: 16  ms.  


How could I config Eclipse to run ok?

I'll be to glad if anyone help me to solve my problem

Sorry for my ingles if it is not too good
Best regards, David

[Updated on: Mon, 07 May 2012 09:45]

Report message to a moderator

Re: How can I config Eclipse to build proyect? [message #870230 is a reply to message #870211] Mon, 07 May 2012 11:07 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1968
Registered: July 2009
Senior Member
You should install a toolchain.
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Fconcepts%2Fcdt_c_before_you_begin.htm


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: How can I config Eclipse to build proyect? [message #870232 is a reply to message #870211] Mon, 07 May 2012 11:27 Go to previous messageGo to next message
David Boo is currently offline David BooFriend
Messages: 3
Registered: May 2012
Junior Member
I have the toolchain (MinGW and Cygwin) instaled but I don't know how to config these toolchains in Eclipse.
Re: How can I config Eclipse to build proyect? [message #870250 is a reply to message #870232] Mon, 07 May 2012 13:02 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1968
Registered: July 2009
Senior Member
David Boo wrote on Mon, 07 May 2012 13:27
I have the toolchain (MinGW and Cygwin) instaled but I don't know how to config these toolchains in Eclipse.

In Project Properties->C/C++ Build->Tool Chain Editor you can select the toolchain.

However, the error messages in your first post indicates that Eclipse cannot find the compiler. You must set the path. Please reread the above link I gave to you.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google

[Updated on: Mon, 07 May 2012 13:04]

Report message to a moderator

Re: How can I config Eclipse to build proyect? [message #870253 is a reply to message #870250] Mon, 07 May 2012 13:10 Go to previous messageGo to next message
David Boo is currently offline David BooFriend
Messages: 3
Registered: May 2012
Junior Member
Ok! Now the console give me this message:

**** Build of configuration Debug for project demo_at91sam7_blink ****

make all 
Building file: ../AT91SAM7_H256_BLINKING_LED/Cstartup_SAM7.c
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"AT91SAM7_H256_BLINKING_LED/Cstartup_SAM7.d" -MT"AT91SAM7_H256_BLINKING_LED/Cstartup_SAM7.d" -o"AT91SAM7_H256_BLINKING_LED/Cstartup_SAM7.o" "../AT91SAM7_H256_BLINKING_LED/Cstartup_SAM7.c"
/usr/bin/sh: /c/cygwin/bin/gcc: Permission denied
make: *** [AT91SAM7_H256_BLINKING_LED/Cstartup_SAM7.o] Error 126


I have used:
-Current toolchains: MinGW GCC
-Current builder: GNU make builder

Thank you for the answer!
Re: How can I config Eclipse to build proyect? [message #870452 is a reply to message #870253] Tue, 08 May 2012 10:05 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1968
Registered: July 2009
Senior Member
Seems to be a problem with your Cygwin setup.

From
http://stackoverflow.com/questions/7132448/can-not-call-gcc-from-inside-a-java-program
"g++ in Cygwin usually is a symlink to either g++-3 or g++-4, but Cygwin symlinks aren't transparent to non-Cygwin programs. Therefore you need to invoke the symlink target directly."
The answer in the above link might help you.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:CDT Java Error
Next Topic:Launching one CDT project calls make file of all projects in workspace
Goto Forum:
  


Current Time: Fri Nov 28 18:11:09 GMT 2014

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

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