A couple of weeks ago I tried a new IDE called Anjuta. I usually use Eclipse which is a great IDE but I wanted a lightweight IDE for writing Perl scripts and learning how to use C++. Using Anjuta for writing perl scripts was straightforward but getting it to work for C++ development was more involved.
First of all you need to add in the following plugins that come with Anjuta. Select Settings>Plugins . Now select the following plugins:
- Terminal
- Tools (External Programs)
You will probably have to install g++ compiler. The first time I tried to compile a C++ I discovered that it was not installed on my copy of (Gutsy) Ubuntu. To set up the g++ compiler you need to install the build-essential package. Use the following command to this:
$ sudo aptitude install build-essential
I tried using the Synaptic Package Manager and then apt-get to install the build-essential package but the install failed due to some dependency issues. The aptitude program handled the dependency issue. Next I used the Tools plugin to execute an external command to compile my c++ programs. Select Tools>Configure from the menu:
Click Add:
In the above example I create an external tool that calls g++ to compile the current source file that I am working on in Anjuta. It saves the executable as the filename without any extension. In the configuration I also setup a Shortcut key for the tool (Ctrl + 1). Setting up my own external tools was more effective than using the Automake build plugin that comes with Anjuta. You can call a simple program or develop you own scripts for more complicated processes.
Troy







