~ubuntu-branches/ubuntu/utopic/anjuta/utopic

« back to all changes in this revision

Viewing changes to manuals/anjuta-manual/el/project-manager-library-add.page

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Jackson Doak
  • Date: 2014-07-12 15:17:39 UTC
  • mfrom: (1.1.56) (27.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20140712151739-eyw0ufhvwa5s11jc
Tags: 2:3.12.0-1
* Team upload.

[ Jackson Doak ]
* New upstream release
* Drop 03_valac_0.22.patch, fixed upstream\
* debian/control:
  - Bump b-dep version on libgtk-3-dev (>= 3.6.0), libglib2.0-dev (>= 2.34.0)
  - Bump stardards-version to 3.9.5. No changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0" encoding="utf-8"?>
2
 
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="project-manager-library-add">
 
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="project-manager-library-add" xml:lang="el">
3
3
 
4
4
  <info xmlns:facet="http://projectmallard.org/facet/1.0/">
5
5
    <facet:tag key="all-pages" value="whatever"/> <!--Include page in index-->
15
15
      <name>Philip Chimento</name>
16
16
      <email>philip.chimento@gmail.com</email>
17
17
    </credit>
 
18
  
 
19
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
 
20
      <mal:name>Δημήτρης Σπίγγος</mal:name>
 
21
      <mal:email>dmtrs32@gmail.com</mal:email>
 
22
      <mal:years>2012, 2013</mal:years>
 
23
    </mal:credit>
 
24
  
 
25
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
 
26
      <mal:name>Σίμος Ξενιτέλλης</mal:name>
 
27
      <mal:email>simos@gnome.org</mal:email>
 
28
      <mal:years>2009</mal:years>
 
29
    </mal:credit>
 
30
  
 
31
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
 
32
      <mal:name>Τζένη Πετούμενου</mal:name>
 
33
      <mal:email>epetoumenou@gmail.com</mal:email>
 
34
      <mal:years>2009</mal:years>
 
35
    </mal:credit>
18
36
  </info>
19
37
 
20
38
  <title>Προσθήκη προσαρμοσμένης βιβλιοθήκης</title>
21
39
 
22
 
  <p>It is easier to use a packaged library, which is common on Linux, so
23
 
  check if it is the case <link xref="project-manager-module-new">here</link>.
24
 
  But else you can still use the library as explained below.</p>
 
40
  <p>Είναι πιο εύκολο να χρησιμοποιήσετε μια πεκεταρισμένη βιβλιοθήκη, που είναι κοινή στο Linux, έτσι σημειώστε εάν είναι η περίπτωση <link xref="project-manager-module-new">εδώ</link>. Αλλά αλλιώς μπορείτε ακόμα να χρησιμοποιήσετε τη βιβλιοθήκη όπως περιγράφεται παρακάτω.</p>
25
41
 
26
42
  <p>Για τη χρήση βιβλιοθήκης στη C, πρέπει να πείτε στον μεταγλωττιστή πού είναι τα αρχεία κεφαλίδας και να πείτε στον σύνδεσμο πού να βρει τις απαιτούμενες βιβλιοθήκες. Το θέμα είναι ότι το πρόγραμμά σας δεν θα μεταγλωττιστεί σε άλλο υπολογιστή εάν η κεφαλίδα και οι βιβλιοθήκες είναι κάπου αλλού.</p>
27
43
 
28
44
  <steps>
29
45
    <item>
30
 
      <p>Select the directory containing the program where you want to
31
 
      add the library in the <gui>project view</gui>, click on the
32
 
      right mouse button to make the <gui>project context menu</gui>
33
 
      appear and select <gui>Properties</gui>.</p>
34
 
 
35
 
      <p>Or from the <gui>main menu</gui>, select <guiseq><gui>Project</gui>
36
 
      <gui>Properties</gui></guiseq>. By default, it edits the
37
 
      properties of the currently selected item in the project view.
38
 
      You can select a different item in the drop-down list button.</p>
39
 
    </item>
40
 
    <item>
41
 
      <p>If the header files are installed in a standard location
42
 
      (<file>/usr/include</file>) you don't have to set this. If not,
43
 
      you need to add <input>-I<var>include_path</var></input> in
44
 
      the <gui>C preprocessor flags</gui> property if you are using
45
 
      <app>gcc</app> as your compiler. You can add several paths separated with
46
 
      spaces. These options will be used for all targets inside this
47
 
      directory.</p>
48
 
 
49
 
      <p>You might have to expand the <gui>More options</gui> button to see this.
50
 
      Click on the <gui>Apply</gui> button when you are done.</p>
51
 
    </item>
52
 
    <item>
53
 
      <p>Next, you need to add the library to a target.
54
 
      Select the target where you want to
55
 
      add the library in the <gui>project view</gui>, click on the
56
 
      right mouse button to make the <gui>project context menu</gui>
57
 
      appear and select <gui>Properties</gui>.</p>
58
 
 
59
 
      <p>Or from the <gui>main menu</gui>, select <guiseq><gui>Project</gui>
60
 
      <gui>Properties</gui></guiseq>. By default, it edits the
61
 
      properties of the currently selected item in the project view.
62
 
      You can select a different item in the drop-down list button.</p>
63
 
    </item>
64
 
    <item>
65
 
      <p>You need to set the <gui>Linker flags</gui> property, adding
66
 
      <input>-l<var>library_name</var></input> if your compiler is <app>gcc</app>.
67
 
      <var>library_name</var> is the name of the library file without the
68
 
      <file>lib</file> prefix and without the <file>.a</file> or
69
 
      <file>.so</file> extension.</p>
70
 
 
71
 
      <p>If the library is in not in a standard directory, <app>gcc</app>
72
 
      can look in additional directories with the option
73
 
      <input>-L<var>library_path</var></input>.</p>  
 
46
      <p>Επιλέξτε τον κατάλογο που περιέχει το επιθυμητό πρόγραμμα για προσθήκη στη νέα βιβλιοθήκη στην <gui>προβολή έργου</gui>, κλικ στο δεξί πλήκτρο του ποντικιού για την εμφάνιση του <gui>μενού περιεχομένου έργου</gui> και επιλέξτε <gui>ιδιότητες</gui>.</p>
 
47
 
 
48
      <p>Ή από το <gui>κύριο μενού</gui>, επιλέξτε <guiseq><gui>έργο</gui> <gui>ιδιότητες</gui></guiseq>. Από προεπιλογή, επεξεργάζεται τις ιδιότητες του τρέχοντος επιλεγμένου στοιχείου στην προβολή έργου. Μπορείτε να επιλέξετε διαφορετικό στοιχείο στο κουμπί πτυσσόμενης λίστας.</p>
 
49
    </item>
 
50
    <item>
 
51
      <p>Εάν τα αρχεία κεφαλίδας είναι εγκατεστημένα σε μια τυπική τοποθεσία (<file>/usr/include</file>) δεν απαιτείται να το ορίσετε αυτό. Εάν όχι, πρέπει να προσθέσετε <input>-I<var>include_path</var></input> στην ιδιότητα <gui>σημαίες προεπεξεργαστή C</gui>, εάν χρησιμοποιείτε <app>gcc</app> ως μεταγλωττιστή σας. Μπορείτε να προσθέσετε πολλές διαδρομές χωρισμένες με κενά. Αυτές οι επιλογές θα χρησιμοποιηθούν για όλους τους στόχους σε αυτόν τον κατάλογο.</p>
 
52
 
 
53
      <p>Ίσως χρειαστεί να επεκτείνετε το κουμπί <gui>περισσότερες επιλογές</gui> για να το δείτε. Κλικ στο κουμπί <gui>εφαρμογή</gui> όταν τελειώσετε.</p>
 
54
    </item>
 
55
    <item>
 
56
      <p>Έπειτα, πρέπει να προσθέσετε τη βιβλιοθήκη σε στόχο. Επιλέξτε τον επιθυμητό στόχο για προσθήκη στη βιβλιοθήκη στην <gui>προβολή έργου</gui>, κλικ στο δεξί πλήκτρο του ποντικιού για την εμφάνιση του <gui>μενού περιεχομένου έργου</gui> και επιλέξτε <gui>ιδιότητες</gui>.</p>
 
57
 
 
58
      <p>Ή από το <gui>κύριο μενού</gui>, επιλέξτε <guiseq><gui>έργο</gui> <gui>ιδιότητες</gui></guiseq>. Από προεπιλογή, επεξεργάζεται τις ιδιότητες του τρέχοντος επιλεγμένου στοιχείου στην προβολή έργου. Μπορείτε να επιλέξετε διαφορετικό στοιχείο στο κουμπί πτυσσόμενης λίστας.</p>
 
59
    </item>
 
60
    <item>
 
61
      <p>Πρέπει να ορίσετε την ιδιότητα <gui>σημαίες συνδέσμου</gui>, προσθέτοντας <input>-l<var>library_name</var></input> εάν ο μεταγλωττιστής σας είναι <app>gcc</app>. <var>library_name</var> είναι το όνομα του αρχείου βιβλιοθήκης χωρίς το πρόθεμα <file>lib</file> και χωρίς την επέκταση <file>.a</file> ή <file>.so</file>.</p>
 
62
 
 
63
      <p>Εάν η βιβλιοθήκη δεν είναι σε έναν τυπικό κατάλογο, το <app>gcc</app> μπορεί να ψάξει σε επιπλέον καταλόγους με την επιλογή <input>-L<var>library_path</var></input>.</p>  
74
64
    </item>
75
65
  </steps>
76
66