File: tutorial-building.html

package info (click to toggle)
gtkspell3 3.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,232 kB
  • ctags: 389
  • sloc: sh: 11,590; ansic: 1,480; makefile: 183
file content (71 lines) | stat: -rw-r--r-- 3,566 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkSpell Reference Manual: Building a program using GtkSpell</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="GtkSpell Reference Manual">
<link rel="up" href="chapter-tutorial.html" title="GtkSpell Tutorial">
<link rel="prev" href="tutorial-advanced.html" title="Advanced usage">
<link rel="next" href="tutorial-bindings.html" title="Bindings for other languages">
<meta name="generator" content="GTK-Doc V1.20 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="chapter-tutorial.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="tutorial-advanced.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="tutorial-bindings.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="sect1">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="tutorial-building"></a>Building a program using GtkSpell</h2></div></div></div>
<div class="note"><p>The instructions below are written for the GTK+3 variant. For the GTK+2
variant, if it was compiled, it is sufficient to replace
<code class="literal">gtkspell-3.0</code> with <code class="literal">gtkspell-2.0</code> and
<code class="literal">gtk+-3.0</code> with <code class="literal">gtk+-2.0</code>.
</p></div>
<div class="sect2">
<div class="titlepage"><div><div><h3 class="title">
<a name="tutorial-building-basic"></a>Simple Programs</h3></div></div></div>
<p>The program must be compiled with the GtkSpell C flags and built with the
GtkSpell libs.  Depending on how your program is compiled, you must include the
module <code class="literal">gtkspell-3.0</code> along with <code class="literal">gtk+-3.0</code>
in your calls to <span class="command"><strong>pkg-config</strong></span>.</p>
</div>
<div class="sect2">
<div class="titlepage"><div><div><h3 class="title">
<a name="tutorial-building-autoconf"></a>Building Using Autoconf</h3></div></div></div>
<p>In <code class="filename">configure.ac</code>, modify the call to
<code class="function">PKG_CHECK_MODULES</code> to include
<code class="literal">gtkspell-3.0</code>, like this:</p>
<pre class="programlisting">
PKG_CHECK_MODULES(MYPROGRAM, gtk+-3.0 gtkspell-3.0)
</pre>
<p>To pass the necessary flags to the compiler, you should add
<code class="literal">@MYPROGRAM_CFLAGS@</code> and <code class="literal">@MYPROGRAM_LIBS@</code>
to the respective <code class="filename">Makefile.am</code>, i.e.
</p>
<pre class="programlisting">
AM_CPPFLAGS = @MYPROGRAM_CFLAGS@
mylibrary_la_LIBADD = @MYPROGRAM_LIBS@
</pre>
<p>
For the substitutions to work, you need to add to
<code class="filename">configure.ac</code> the lines
</p>
<pre class="programlisting">
AC_SUBST(MYPROGRAM_CFLAGS)
AC_SUBST(MYPROGRAM_LIBS)
</pre>
<p>
</p>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.20</div>
</body>
</html>