diff options
Diffstat (limited to 'doc/developer/reference-html/x79.html')
-rw-r--r-- | doc/developer/reference-html/x79.html | 154 |
1 files changed, 107 insertions, 47 deletions
diff --git a/doc/developer/reference-html/x79.html b/doc/developer/reference-html/x79.html index 93af949..f387523 100644 --- a/doc/developer/reference-html/x79.html +++ b/doc/developer/reference-html/x79.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >Integrating libgutenprint</TITLE ><META NAME="GENERATOR" -CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK +CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="The Developer's Guide to Gutenprint" -HREF="index.html"><LINK +HREF="book1.html"><LINK REL="UP" TITLE="Using libgutenprint" HREF="c48.html"><LINK @@ -17,14 +17,11 @@ TITLE="Linking with libgutenprint" HREF="x67.html"><LINK REL="NEXT" TITLE="Reporting Bugs" -HREF="c194.html"></HEAD +HREF="c194.html"><META +http-equiv="Content-Type" +content="text/html; charset=UTF-8"></HEAD ><BODY CLASS="sect1" -BGCOLOR="#FFFFFF" -TEXT="#000000" -LINK="#0000FF" -VLINK="#840084" -ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE @@ -74,7 +71,7 @@ CLASS="sect1" CLASS="sect1" ><A NAME="AEN79" ->2.3. Integrating libgutenprint</A +>Integrating libgutenprint</A ></H1 ><P > This section describes how to integrate the compiling and @@ -102,7 +99,7 @@ CLASS="sect2" CLASS="sect2" ><A NAME="AEN86" ->2.3.1. <B +><B CLASS="command" >pkg-config</B ></A @@ -114,13 +111,13 @@ CLASS="command" CLASS="command" >configure</B > when configuring the package when - it was built, the <CODE + it was built, the <VAR CLASS="varname" ->CFLAGS</CODE +>CFLAGS</VAR > and - <CODE + <VAR CLASS="varname" ->LIBS</CODE +>LIBS</VAR > parameters needed to compile and link programs with libgutenprint may vary. To make it simple to determine what these are on any given system, a @@ -143,15 +140,21 @@ CLASS="refentrytitle" > manual page for a compete synopsis. </P ><P -> The correct <CODE +> The correct <VAR CLASS="varname" ->CFLAGS</CODE +>CFLAGS</VAR > to use can be obtained - with the <CODE + with the <VAR CLASS="option" ->--cflags</CODE +>--cflags</VAR > option: </P +><TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD ><PRE CLASS="screen" ><SAMP @@ -162,16 +165,25 @@ CLASS="userinput" >pkg-config --cflags gutenprint</KBD > -I/usr/local/include</PRE +></TD +></TR +></TABLE ><P -> The correct <CODE +> The correct <VAR CLASS="varname" ->LIBS</CODE +>LIBS</VAR > to use can the obtained - with the <CODE + with the <VAR CLASS="option" ->--libs</CODE +>--libs</VAR > option: </P +><TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD ><PRE CLASS="screen" ><SAMP @@ -182,13 +194,22 @@ CLASS="userinput" >pkg-config --libs gutenprint</KBD > -L/usr/local/lib -lgutenprint -lm -ldl</PRE +></TD +></TR +></TABLE ><P > Lastly, the installed version of Gutenprint can be obtained with the - <CODE + <VAR CLASS="varname" ->--version</CODE +>--version</VAR > option: </P +><TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD ><PRE CLASS="screen" ><SAMP @@ -199,10 +220,19 @@ CLASS="userinput" >pkg-config --modversion gutenprint</KBD > 4.3.23</PRE +></TD +></TR +></TABLE ><P > The command can be used from the shell by enclosing it in - backquotes ‘`’: + backquotes ‘`’: </P +><TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD ><PRE CLASS="screen" ><SAMP @@ -220,6 +250,9 @@ CLASS="userinput" >gcc `pkg-config --libs gutenprint` -o stpimage stpimage.o</KBD ></PRE +></TD +></TR +></TABLE ><P > However, this is not the way it it typically used. Normally it is used in a <TT @@ -238,7 +271,7 @@ CLASS="sect2" CLASS="sect2" ><A NAME="AEN123" ->2.3.2. <B +><B CLASS="command" >make</B ></A @@ -259,11 +292,20 @@ CLASS="command" >make</B >: </P +><TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD ><PRE CLASS="programlisting" >GUTENPRINT_VERSION = $(shell pkg-config --version gutenprint) GUTENPRINT_CFLAGS = $(shell pkg-config --cflags gutenprint) GUTENPRINT_LIBS = $(shell pkg-config --libs gutenprint)</PRE +></TD +></TR +></TABLE ><P > How you choose to use these variables is entirely up to you. See the GNU <B @@ -279,7 +321,7 @@ CLASS="sect2" CLASS="sect2" ><A NAME="AEN133" ->2.3.3. <B +><B CLASS="command" >autoconf</B ></A @@ -305,7 +347,7 @@ CLASS="filename" CLASS="command" >autoconf</B > expands - the m4 macros into ‘real’ shell script. The + the m4 macros into ‘real’ shell script. The resulting <B CLASS="command" >configure</B @@ -342,9 +384,18 @@ CLASS="informalexample" ><A NAME="AEN148" ></A +><TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD ><PRE CLASS="programlisting" >PKG_CHECK_MODULES(GUTENPRINT, gutenprint)</PRE +></TD +></TR +></TABLE ><P ></P ></DIV @@ -355,7 +406,7 @@ CLASS="sect2" CLASS="sect2" ><A NAME="AEN150" ->2.3.4. <B +><B CLASS="command" >automake</B ></A @@ -439,26 +490,26 @@ CLASS="filename" CLASS="filename" >Makefile.in</TT > files such as - <CODE + <VAR CLASS="option" ->dist</CODE ->, <CODE +>dist</VAR +>, <VAR CLASS="option" ->distcheck</CODE +>distcheck</VAR >, - <CODE + <VAR CLASS="option" ->clean</CODE ->, <CODE +>clean</VAR +>, <VAR CLASS="option" ->distclean</CODE +>distclean</VAR >, - <CODE + <VAR CLASS="option" ->maintainer-clean</CODE -> and <CODE +>maintainer-clean</VAR +> and <VAR CLASS="option" ->tags</CODE +>tags</VAR >, and there are many more more available. See the GNU <B @@ -475,13 +526,13 @@ CLASS="function" CLASS="function" >AC_SUBST</CODE > to substitute - <CODE + <VAR CLASS="varname" ->GUTENPRINT_CFLAGS</CODE +>GUTENPRINT_CFLAGS</VAR > and - <CODE + <VAR CLASS="varname" ->GUTENPRINT_LIBS</CODE +>GUTENPRINT_LIBS</VAR >, <B CLASS="command" >automake</B @@ -515,6 +566,12 @@ CLASS="informalexample" ><A NAME="AEN189" ></A +><TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD ><PRE CLASS="programlisting" >AUTOMAKE_OPTIONS = 1.7 gnu @@ -529,6 +586,9 @@ stpimage_SOURCES = stpimage.c stpimage_LDADD = $(GUTENPRINT_LIBS) MAINTAINERCLEANFILES = Makefile.in</PRE +></TD +></TR +></TABLE ><P ></P ></DIV @@ -570,7 +630,7 @@ WIDTH="34%" ALIGN="center" VALIGN="top" ><A -HREF="index.html" +HREF="book1.html" ACCESSKEY="H" >Home</A ></TD |