2

I have a legacy C++ project on Linux which uses the typical:

./configure
make
make install

to build and install. I would really like to build it instead with an IDE like Eclipse.

Is this doable? Is there something in Eclipse that can parse the original Makefile(s) and turn it into an Eclipse project?

sivabudh
  • 31,807
  • 63
  • 162
  • 228
  • 1
    It seems like Code::Blocks can do this... http://www.frozeneskimo.com/electronics/arm-tutorials/adapting-codeblocks-ide-for-arm-development/ . Wonder if there's something equivalent in Eclipse IDE (?) – sivabudh Apr 20 '10 at 22:18
  • 2
    Why do you want to move to Eclipse? It's still slow as hell. – Daniel Sloof Apr 20 '10 at 23:48
  • @Daniel. Thanks for your suggestion. I decided to use Eclipse because we might want to use Qt later. I'm also opened to IDE suggestions. Thanks. – sivabudh Apr 21 '10 at 00:06
  • 2
    Try Qt Creator. It supports Makefile based projects and I doubt you'll find better Qt integration :) – Troubadour Apr 22 '10 at 21:48
  • +1 for QtCreator. It's an awessome IDE, not only for Qt based projects. – cake Jun 10 '10 at 10:41

2 Answers2

2

Using Eclipse with the CDT plugin will allow you to use it for C/C++ projects, and you can tell it to use Makefiles to build your project. You just have to set up a Makefile project. You might have to tell it to let you manage the Makefiles rather than have it do it - I don't remember off the top of my head - but there should be no problem in setting up Eclipse to use pre-existing Makefiles to build a pre-existing project. I've done it before.

You will have to tell it where the include directories are and what macros to assume are defined for things like code completion to work correctly (I don't know of any way for Eclipse to figure that out for you), so there is definitely some set up that you'll have to do. But it definitely works.

Just grab the C++ version of Eclipse from their site (it comes with all of the appropriate C/C++ plugins so that you don't have to track them down), and you can look at the CDT site for documentation, frequently asked questions, etc.

Edit: I don't know how well you can get it to work with configure though. That's not something that I've tried. Makefiles work just fine though.

Jonathan M Davis
  • 37,181
  • 17
  • 72
  • 102
1

If the project is not too big or too complex. You might do better to just start a new C++ project in Eclipse. Then import the various source and header files into the project.

makewrite
  • 11
  • 1