1
<?xml version="1.0" encoding="utf-8"?>
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="project-manager-module" xml:lang="uk">
4
<info xmlns:facet="http://projectmallard.org/facet/1.0/">
5
<facet:tag key="all-pages" value="whatever"/> <!--Include page in index-->
6
<link type="guide" xref="index#anjuta-project-management" groups="third"/>
7
<link type="next" xref="project-manager-package"/>
8
<link type="seealso" xref="project-manager-library"/>
9
<revision pkgversion="3.0" version="0.1" date="2011-03-27" status="incomplete"/>
11
Add or remove libraries from a project.
13
<credit type="author">
14
<name>Sébastien Granjoux</name>
15
<email>seb.sfo@free.fr</email>
17
<credit type="editor">
18
<name>Philip Chimento</name>
19
<email>philip.chimento@gmail.com</email>
23
<title>Add or remove new libraries</title>
26
On Linux, most libraries are packaged to be easily used.
27
When you need one of these libraries, <app>Anjuta</app> provides
28
an easy interface to add it. If the library you need is not one of these,
29
check the <link xref="project-manager-library">Add non-packaged
30
libraries</link> page.
34
<title>Add packaged libraries in a new module</title>
37
A library cannot be added directly to your program; you first need to
38
create a module for it, which is just a group of libraries.
44
Select the program where you want to add the new library in
45
the <gui>project view</gui>, click on the right mouse button to
46
make the <gui>project context menu</gui> appear, and select
47
<gui>Add Library</gui>. Then click on the <gui>New Library</gui>
48
button on this dialog.
51
Or from the <gui>main menu</gui>, select <guiseq><gui>Project</gui>
52
<gui>New Library...</gui></guiseq>
57
You will get a list of all the packaged libraries installed on your
58
system. You can check one or more libraries.
62
If the library you want does not appear here, perhaps it
63
is because it is not installed on your system.
64
Launch the application you
65
use to install new programs and search for the library name.
66
The package you need often has a "dev" or "devel" suffix and
67
should include header files and a pkg-config file with a
68
<file>.pc</file> extension.
72
After selecting one library, a module name will be
73
automatically generated but you can change it. When you are
74
done, click on the <gui>Add</gui> button to create the new module
75
with the selected libraries.
80
Read the <link xref="project-manager-package">next page</link> to
81
find out how to add this new module to your target.
89
<title>Add packaged libraries in an existing module</title>
94
Select the module where you want to add the new library in
95
the <gui>project view</gui>, click on the right mouse button to
96
make the <gui>project context menu</gui> appear and select
97
<gui>New Library</gui>.
100
Or from the <gui>main menu</gui>, select <guiseq><gui>Project</gui>
101
<gui>New Library...</gui></guiseq>
106
In the list of all packaged libraries, check the additional
107
libraries wanted. Check that expected module name is selected
108
in the bottom text box.
109
Then click on the <gui>Add</gui> button to update the module.
114
Read the <link xref="project-manager-package">next page</link> to
115
find out how to add the module to your target.
123
<title>Remove a packaged library from a module</title>
128
Select the library you want to remove in the
129
<gui>project view</gui> , click on the right mouse button to
130
make the <gui>project context menu</gui> appear and select
136
Confirm the removal. This library will be removed from the project