Now, we will see the Anjuta interface allowing you to run all these commands without using the command line.
As Anjuta is using Autotools, the first step is similar, you need to run configure. Select , to get the following dialog:
The Regenerate project checkbox will not be described now as it is related to project creation (see in Section 3.1.6 ― Generate project).
The Configuration field is an user name used to reference this particular configuration to switch between different ones later. For Anjuta each configuration corresponds to one build directory and a set of configure options. Anjuta already provides some default configurations that you can select here.
It is recommended to use the Debug configuration for debugging. It will compile your program with all optimizations disabled. When optimizations are enabled, some variables and functions are removed, you will not be able to see them with the debugger. Moreover some lines in your source code are re-ordered, so some steps will go backward.
The Build Directory field allow to select the directory used to build the project. It must be different for each configuration.
If you build the project in the source directory (leaving the Build Directory field empty), you cannot create a new configuration. It is a limitation of Autotools. You need to select that will run make distclean in the source directory first.
The Configure Options field allow passing different options to the configure script.
Clicking on Anjuta. If the script runs without error, it will enable all other entries in the menu.will run the configure script. All the output will appears in the message view of
2.4.2. Menu items
The build operations in Anjuta, rely on make only like Autotools. It is working for non Autotools project too. The compile command is even working with only a C source file because make has some builtin rules to compile them. Here is the correspondence between the Anjuta menu item and make commands.
cd current_file_directory; make
cd project_directory; make
cd project_directory; make dist
cd current_file_directory; make install
cd project_directory; make install
cd current_file_directory; make clean
cd project_directory; make clean
cd project_directory; make distclean
The last menu entry not described above ,, allows you to switch easily between different configurations and so between different build directories.