Skip to main content



      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 05:44 Go to next message
Eclipse UserFriend
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 05:45] by Moderator

Re: How can I config Eclipse to build proyect? [message #870230 is a reply to message #870211] Mon, 07 May 2012 07:07 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How can I config Eclipse to build proyect? [message #870232 is a reply to message #870211] Mon, 07 May 2012 07:27 Go to previous messageGo to next message
Eclipse UserFriend
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 09:02 Go to previous messageGo to next message
Eclipse UserFriend
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.

[Updated on: Mon, 07 May 2012 09:04] by Moderator

Re: How can I config Eclipse to build proyect? [message #870253 is a reply to message #870250] Mon, 07 May 2012 09:10 Go to previous messageGo to next message
Eclipse UserFriend
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 06:05 Go to previous message
Eclipse UserFriend
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.
Previous Topic:CDT Java Error
Next Topic:Launching one CDT project calls make file of all projects in workspace
Goto Forum:
  


Current Time: Sun Jun 15 21:26:38 EDT 2025

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

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

Back to the top