Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » C++ Project Cannot Have Makefile Generated Automatically?
C++ Project Cannot Have Makefile Generated Automatically? [message #912652] Thu, 13 September 2012 23:21 Go to next message
Henry Chan is currently offline Henry ChanFriend
Messages: 19
Registered: October 2009
Junior Member
So I have read:
http://www.eclipse.org/forums/index.php/m/803058/
http://www.eclipse.org/forums/index.php/m/692629/
http://www.eclipse.org/forums/index.php/mv/msg/174901/557137/

The picture attached in the first link is what I see on my screen right now.

Here is what I did:
- use subclipse to import a folder from my svn repository
- with the checkout wizard, I chose "empty C/C++ project"
- I disabled "build automatically"
If I hit the "build" button, it says:
16:16:43 **** Build of configuration Build (GNU) for project native ****
make all
make: *** No rule to make target `all'. Stop.

16:16:43 Build Finished (took 57ms)

Then, I found that I can't ask Eclipse CDT to "generate makefile automatically" in project->properties->builder settings as it is greyed out.

Then, I created a new "makefile project with existing code" project in another workspace to point back to the C++ project above, then I can build correctly.

How come I can't manage my build in Eclipse Juno as I did in Eclipse Galileo?

What's the proper way to checkout a folder and mark the project as a C++ project with eclipse able to generate make file automatically?

Thanks in advance.
Re: C++ Project Cannot Have Makefile Generated Automatically? [message #912653 is a reply to message #912652] Thu, 13 September 2012 23:22 Go to previous messageGo to next message
Henry Chan is currently offline Henry ChanFriend
Messages: 19
Registered: October 2009
Junior Member
I am using g++ to build on my centos 6 if it matters.
Re: C++ Project Cannot Have Makefile Generated Automatically? [message #912844 is a reply to message #912652] Fri, 14 September 2012 09:27 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
You must use the "External Builder" (see first screenshot)

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: C++ Project Cannot Have Makefile Generated Automatically? [message #913038 is a reply to message #912844] Fri, 14 September 2012 16:39 Go to previous messageGo to next message
Henry Chan is currently offline Henry ChanFriend
Messages: 19
Registered: October 2009
Junior Member
Thanks for your reply.
Unfortunately, the "build type" is also greyed out, so I can't choose "external builder" either.
Any idea?
Re: C++ Project Cannot Have Makefile Generated Automatically? [message #915620 is a reply to message #913038] Mon, 17 September 2012 16:40 Go to previous messageGo to next message
Henry Chan is currently offline Henry ChanFriend
Messages: 19
Registered: October 2009
Junior Member
One more thing I tried: checked out the svn project as a C++ "makefile project with existing code" project.

But the result is the same -- hit build button and it says "make: *** No rule to make target `all'. Stop.", and project->properties->builder settings and project->properties->build type are greyed out.

Any idea?
Re: C++ Project Cannot Have Makefile Generated Automatically? [message #915626 is a reply to message #912652] Mon, 17 September 2012 16:54 Go to previous message
Henry Chan is currently offline Henry ChanFriend
Messages: 19
Registered: October 2009
Junior Member
Solution:
http://www.eclipse.org/forums/index.php/t/366892/

Thanks everyone Smile
Previous Topic:wrench icon decoration "stuck" on some resources
Next Topic:C/C++ Linker Tab missing [SOLVED]
Goto Forum:
  


Current Time: Fri Oct 04 00:22:44 GMT 2024

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

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

Back to the top