Create a set of libraries.
Sébastien Granjoux
seb.sfo@free.fr
Philip Chimento
philip.chimento@gmail.com

# Create a Module

On Linux, most libraries are distributed with additional data stored in a pkg-config file. This file contains information like the other libraries needed, the C compiler and the linker flags needed to use that library. This file, the header files and the library files themselves is called a package.

Anjuta provides an simple interface to use such library. If the library you need is not one of these, check the Add non-packaged libraries page.

A package cannot be added directly to your program; you first need to create a module for it, which is just a group of packages.

Select the program where you want to add the new library in the project view, click on the right mouse button to make the project context menu appear, and select Add Library. Then click on the New Library button on this dialog.

Or from the main menu, select Project New Library....

You will get a list of all the packaged libraries installed on your system. You can check one or more libraries.

If the library you want does not appear here, perhaps it is because it is not installed on your system. Launch the application you use to install new programs and search for the library name. The package you need often has a "dev" or "devel" suffix and should include header files and a pkg-config file with a .pc extension.

After selecting one library, a module name will be automatically generated but you can change it. When you are done, click on the Add button to create the new module with the selected libraries.

Read the next page to find out how to add this new module to your target.