This is a very basic article about how to open an existing AutoTools project in Eclipse CDT. Yet it will waste some of our time specially if we don’t know that we have to convert an ordinary makefile project to an AutoTools project even if we have all the AutoTools files (configure.in, MakeFile.am etc.) in our project.
There is also a serious problem in Ubuntu 12.0.1 while configuring an AutoTools project with Eclipse CDT; but don’t worry about that for now because we have a work-around to solve that problem.
Now lets open an existing opensource project which has been built with AutoTools support. In our case we will open Ices client project. To know more about ices browse here.Download the compressed source code and tar the file to decompress it.
Up to now you have opened a Makefile project form an existing source code. Select our project node(ices20121121) in the project explorer and notice that our ises20121121 project has the autotools files (configure.in, Makefile.am etc) but in our ‘Project’ menu there is no ‘Reconfigure Project’ item. So we can’t configure the project which is very important for an Autotools project.
To be able to configure the project we will have to convert the project to a C/C++ Autotools project. From the file menu you can get ‘Convert to a C/C++ Autotools Project’ item. If you don’t find it there that means you do not have the Autotools plugin installed in your Eclipse. Here you can find how to install a plugin in Eclipse.
The next steps are simple, just follow the wizard.
Now its time to configure; hit the ‘Reconfigure Project’ and the configuration will start and if ends in success then you will find the successful message in ‘CDT Global Build Console’ or ‘Configure’ console.
Thus we can run an open source project which is Autotools supported by Eclipse CDT Autotools Project in Ubuntu 12.