Add packaged libraries

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.

  1. 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.

    Or from the main menu, select Project ▸ Add Library....

  2. You need to select the target where you want to add the library in the target button above.

  3. A library cannot be added directly to a target. You can add only a module displayed in the module view below. If you select a library inside a module, the parent module will be added.

  4. If the library you want is not displayed in the module view, you need to add it as a module first. Click on the button New Library and follow the explanation here.

    After creating a new module, you have to wait a few seconds while the project files are reloaded to see the new module in the list.

  5. When you are done, click on the Add button to add the selected module to the target.