I'm running Eclipse 3.7.2 with CDT installed. Ubuntu 12.04 LTS.
I have an existing makefile C++ project that I'm trying to import from Geany. I can run $ make
in the project's root directory, and everything builds as expected.
My error in Eclipse:
make: *** No rule to make target `all'. Stop.
My question: how do I eliminate this error?
Here are the exact steps I'm taking:
- File>New>Makefile project with existing code.
- Existing Code Location set to project's root directory.
- Languages set to C++
- Toolchain set to Cross GCC
- In Project Properties>C/C++ Build...
- In Builder Settings...
- Using default build command
- NOT using generate makefiles automatically (is unavailable)
- In Behaviour...
- Using Build (Incremental build) << all
- Using Clean << clean
- In Builder Settings...
Eclipse CDT: no rule to make target all comes close to answering the problem I'm trying to correct, but I have the same issue as OP: generate makefile automatically is unavailable.
I've tried make: *** No rule to make target `all'. Stop. Eclipse error's top rated solution as well. However, when I uncheck the Build (Incremental Build) option, then build does absolutely nothing, so this isn't right either.