source: pst/ps/fop.xml@ 1879b5d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 1879b5d was 1879b5d, checked in by Randy McMurchy <randy@…>, 19 years ago

Added JAI download md5sum to FOP instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3478 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 14.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY fop-download-http "http://www.apache.org/dist/xml/fop/fop-&fop-version;-src.tar.gz">
8 <!ENTITY fop-download-ftp "ftp://apache.mirrors.pair.com/xml/fop/source/fop-&fop-version;-src.tar.gz">
9 <!ENTITY fop-md5sum "1a31eb1357e5d4b8d32d4cb3edae2da2">
10 <!ENTITY jai-md5sum "f2be3619a8d002eff3874355e96327eb">
11 <!ENTITY fop-size "7.8 MB">
12 <!ENTITY fop-buildsize "45.3 MB">
13 <!ENTITY fop-time "0.25 SBU">
14]>
15
16<sect1 id="fop" xreflabel="FOP-&fop-version;">
17<sect1info>
18<othername>$LastChangedBy$</othername>
19<date>$Date$</date>
20</sect1info>
21<?dbhtml filename="fop.html"?>
22<title><application><acronym>FOP</acronym></application>-&fop-version;</title>
23<indexterm zone="fop">
24<primary sortas="a-FOP">FOP</primary></indexterm>
25
26<sect2>
27<title>Introduction to <application><acronym>FOP</acronym></application></title>
28
29<para>The <application><acronym>FOP</acronym></application> (Formatting
30Objects Processor) package contains a print formatter driven by
31<acronym>XSL</acronym> formatting objects
32(<acronym>XSL</acronym>-<acronym>FO</acronym>). It is a
33<application>Java</application> application that reads a formatting object
34tree and renders the resulting pages to a specified output. Output formats
35currently supported include <acronym>PDF</acronym>, <acronym>PCL</acronym>,
36PostScript, <acronym>SVG</acronym>, <acronym>XML</acronym> (area tree
37representation), print, <acronym>AWT</acronym>, <acronym>MIF</acronym> and
38<acronym>ASCII</acronym> text. The primary output target is
39<acronym>PDF</acronym>.</para>
40
41<sect3><title>Package information</title>
42<itemizedlist spacing="compact">
43<listitem><para>Download (HTTP):
44<ulink url="&fop-download-http;"/></para></listitem>
45<listitem><para>Download (FTP):
46<ulink url="&fop-download-ftp;"/></para></listitem>
47<listitem><para>Download MD5 sum:
48&fop-md5sum;</para></listitem>
49<listitem><para>Download size:
50&fop-size;</para></listitem>
51<listitem><para>Estimated disk space required:
52&fop-buildsize;</para></listitem>
53<listitem><para>Estimated build time:
54&fop-time;</para></listitem></itemizedlist>
55</sect3>
56
57<sect3><title>Additional downloads</title>
58<itemizedlist spacing="compact">
59<listitem><para><application>Java</application> Advanced Imaging
60(<acronym>JAI</acronym>) <acronym>API</acronym> components: <ulink
61url="http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&amp;PartDetailId=jai-1_1_2_01-oth-JPR&amp;SiteId=JSC&amp;TransactionId=noreg">
62http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&amp;</ulink>
63<ulink
64url="http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&amp;PartDetailId=jai-1_1_2_01-oth-JPR&amp;SiteId=JSC&amp;TransactionId=noreg">
65PartDetailId=jai-1_1_2_01-oth-JPR&amp;SiteId=JSC&amp;TransactionId=noreg
66</ulink></para>
67</listitem>
68<listitem><para>Download MD5 sum: &jai-md5sum;</para></listitem>
69</itemizedlist>
70<para>Choose the <quote><application>Linux</application>
71<application><acronym>JDK</acronym></application> Install</quote> file after
72accepting the license agreement.</para>
73</sect3>
74
75<sect3><title><application>FOP</application> dependencies</title>
76<sect4><title>Required</title>
77<para><xref linkend="j2sdk"/></para>
78</sect4>
79
80<sect4><title>Optional</title>
81<para><xref linkend="libxslt"/>,
82<ulink url="http://java.sun.com/products/jimi/">JIMI SDK</ulink>,
83<ulink url="http://xml.apache.org/batik/">Batik</ulink> and
84<ulink url="http://forrest.apache.org/">Forrest</ulink> (only used to rebuild
85the documentation)</para>
86</sect4>
87</sect3>
88
89</sect2>
90
91<sect2>
92<title>Installation of <application>FOP</application></title>
93
94<note><para>Ensure <envar>$JAVA_HOME</envar> is set correctly before beginning
95the build. Additionally, the build will fail if your version of the
96<acronym>JDK</acronym> is higher than 1.4.2_x.</para></note>
97
98<para>Some versions of tar will display a message similar to
99<quote><computeroutput>tar: A lone zero block at 33476</computeroutput></quote>
100when unpacking the source tarball. You may safely ignore this message.</para>
101
102<sect3><title>Installing <acronym>JAI</acronym></title>
103<para>Install the <acronym>JAI</acronym> components by running the following
104commands as the root user while in the root of the
105<application><acronym>FOP</acronym></application> source tree:</para>
106
107<screen><userinput role='root'><command>chmod 755 ../jai-1_1_2_01-lib-linux-i586-jdk.bin &amp;&amp;
108FOP_BUILD_DIR=$(pwd) &amp;&amp;
109cd $JAVA_HOME &amp;&amp;
110yes | $FOP_BUILD_DIR/../jai-1_1_2_01-lib-linux-i586-jdk.bin &amp;&amp;
111cd $FOP_BUILD_DIR</command></userinput></screen>
112</sect3>
113
114<sect3><title>Installing <application><acronym>FOP</acronym></application>
115required components</title>
116<para>Install <application><acronym>FOP</acronym></application> by running the
117following commands:</para>
118
119<screen><userinput><command>./build.sh &amp;&amp;
120sed -i -e "s/build/lib/" fop.sh</command></userinput></screen>
121
122<para>Now, as the root user:</para>
123
124<screen><userinput role='root'><command>install -v -d -m755 \
125 /opt/fop-&fop-version;/{bin,lib,docs/{general,lib,site}} &amp;&amp;
126install -v -m755 fop.sh /opt/fop-&fop-version;/bin &amp;&amp;
127install -v -m644 build/fop.jar lib/avalon-framework-cvs-20020806.jar \
128 /opt/fop-&fop-version;/lib &amp;&amp;
129install -v -m644 docs/* /opt/fop-&fop-version;/docs &amp;&amp;
130install -v -m644 CHANGES LICENSE README ReleaseNotes.html STATUS \
131 /opt/fop-&fop-version;/docs/general &amp;&amp;
132install -v -m644 lib/{avalon.LICENSE.txt,readme} \
133 /opt/fop-&fop-version;/docs/lib &amp;&amp;
134cp -v -R build/site/* /opt/fop-&fop-version;/docs/site &amp;&amp;
135ln -svf fop-&fop-version; /opt/fop</command></userinput></screen>
136</sect3>
137
138<sect3><title>Installing the <application>Batik</application>
139<acronym>JAR</acronym></title>
140<para>You'll need to install one additional <application>Java</application>
141class library to process <acronym>SVG</acronym> objects. This library is part
142of the <ulink url="http://xml.apache.org/batik/">Batik</ulink> package, but is
143also included with the <application><acronym>FOP</acronym></application>
144package. If you have <application>Batik</application> installed, ensure the
145<filename>batik.jar</filename> library is included in your
146<envar>$CLASSPATH</envar> environment variable. Alternatively, create a
147symbolic link from <filename>/opt/fop-&fop-version;/lib/batik.jar</filename>
148pointing to the full path of the installed <filename>batik.jar</filename>
149file so that the <command>fop.sh</command> script will automatically pick it
150up.</para>
151
152<para>If you don't have the <application>Batik</application> package installed,
153run the following commands as the root user:</para>
154
155<screen><userinput role='root'><command>install -v -m644 lib/batik.jar /opt/fop-&fop-version;/lib &amp;&amp;
156install -v -m644 lib/batik.LICENSE.txt \
157 /opt/fop-&fop-version;/docs/lib</command></userinput></screen>
158</sect3>
159
160<sect3><title>Installing the <application>Xalan-Java</application>
161components</title>
162<para>The components of <application><acronym>FOP</acronym></application>
163required to process <acronym>FO</acronym> files created by an
164<acronym>XSL</acronym> transformation engine (also known as an
165<acronym>XSLT</acronym> processor) is now complete. An
166<acronym>XSL</acronym> transformation engine (<command>xsltproc</command>)
167is included with the <xref linkend="libxslt"/> package in
168<acronym>BLFS</acronym>. The <application><acronym>FOP</acronym></application>
169package includes components of
170<ulink url="http://xml.apache.org/xalan-j/">Xalan-Java</ulink> to accomplish
171<acronym>XSL</acronym> transformations. If you have the
172<application>Xalan-Java</application> package installed, skip to the next
173section.</para>
174
175<para>If you wish to install the <application>Xalan-Java</application>
176components provided by the <application><acronym>FOP</acronym></application>
177package, run the following commands as the root user:</para>
178
179<screen><userinput role='root'><command>sed -i -e "s/build/lib/" xalan.sh &amp;&amp;
180install -v -m755 xalan.sh /opt/fop-&fop-version;/bin &amp;&amp;
181install -v -m644 lib/xml-apis.jar \
182 lib/xercesImpl-2.2.1.jar \
183 lib/xalan-2.4.1.jar \
184 /opt/fop-&fop-version;/lib &amp;&amp;
185install -v -m644 lib/{xml-apis,xerces,xalan}.LICENSE.txt \
186 lib/xml-apis.README.txt \
187 /opt/fop-&fop-version;/docs/lib</command></userinput></screen>
188</sect3>
189
190<sect3><title>Installing the
191<application>Jimi <acronym>SDK</acronym></application>
192<acronym>JAR</acronym></title>
193<para>If you installed the Java Image I/O class library
194(<application>Jimi <acronym>SDK</acronym></application>) into the
195<application><acronym>FOP</acronym></application> source tree
196<filename class='directory'>lib</filename> directory before building
197<application><acronym>FOP</acronym></application> (this will enable Jimi
198support), ensure you also install this <acronym>JAR</acronym> file into
199<filename class='directory'>/opt/fop-&fop-version;/lib</filename>.</para>
200</sect3>
201
202</sect2>
203
204<sect2>
205<title>Command explanations</title>
206
207<para><command>yes | $FOP_BUILD_DIR/../jai-...-jdk.bin</command>: This command
208installs the <application><acronym>JAI</acronym></application> components
209into the <application><acronym>JDK</acronym></application> file structure. The
210<command>yes</command> command is piped through so that you don't have to
211scroll through four pages of the license agreement and automatically responds
212<quote>yes</quote> to the agreement. <envar>$FOP_BUILD_DIR</envar> is used as
213a reference point to the source executable and as a method to return back to
214the <application><acronym>FOP</acronym></application> source tree.</para>
215
216<para><command>sed -i -e "s/build/lib/" ...</command>: These commands modify
217the installed shell scripts so that the location of the installed
218<filename>fop.jar</filename> file is correctly identified.</para>
219
220<para><command>install -v ...; cp -v ...</command>: There is no installation
221script provided by the <application><acronym>FOP</acronym></application>
222package. These commands install the package.</para>
223
224<para><command>ln -svf fop-&fop-version; /opt/fop</command>: This creates a
225convenience symlink so that <envar>$FOP_HOME</envar> doesn't have to be
226changed each time there's a package version change.</para>
227</sect2>
228
229<sect2>
230<title>Configuring <application>FOP</application></title>
231
232<sect3 id="fop-config"><title>Config files</title>
233<para><filename>~/.foprc</filename></para>
234<indexterm zone="fop fop-config">
235<primary sortas="e-AA.foprc">~/.foprc</primary></indexterm>
236</sect3>
237
238<sect3><title>Configuration Information</title>
239
240<para>Using <application><acronym>FOP</acronym></application> to process some
241large <acronym>FO</acronym>'s (including the <acronym>FO</acronym> derived from
242the <acronym>BLFS</acronym> <acronym>XML</acronym> sources), can lead to memory
243errors. Unless you add a parameter to the <command>java</command> command used
244in the <command>fop.sh</command> script you may receive messages similar to the
245one shown below:</para>
246
247<para><computeroutput>Exception in thread "main" java.lang.OutOfMemoryError:
248Java heap space</computeroutput></para>
249
250<para>To avoid errors like this, you need to pass an extra parameter to the
251<command>java</command> command used in the <command>fop.sh</command> script.
252This can be accomplished by creating a <filename>~/.foprc</filename> (which
253is sourced by the <command>fop.sh</command> script) and adding the parameter
254to the <envar>FOP_OPTS</envar> environment variable.</para>
255
256<para>The <command>fop.sh</command> script looks for a <envar>FOP_HOME</envar>
257environment variable to locate the
258<application><acronym>FOP</acronym></application> class libraries. You can
259create this variable using the <filename>~/.foprc</filename> file as
260well. Create a <filename>~/.foprc</filename> file using the following
261commands:</para>
262
263<screen><userinput><command>cat &gt; ~/.foprc &lt;&lt; "EOF"</command>
264FOP_OPTS="-Xmx<replaceable>[RAM_Installed]</replaceable>m"
265FOP_HOME="/opt/fop"
266
267<command>EOF</command></userinput></screen>
268
269<para>Replace <replaceable>[RAM_Installed]</replaceable> with a number
270representing the amount of RAM installed in your computer. An example would
271be <userinput>FOP_OPTS="-Xmx768m"</userinput>. For more information about
272memory issues running <application><acronym>FOP</acronym></application>, see
273<ulink url="http://xml.apache.org/fop/running.html#memory"/>.</para>
274
275<para>To include the <command>fop.sh</command> script in your path, update
276your personal or system-wide profile with the following:</para>
277
278<screen><userinput>PATH=$PATH:/opt/fop/bin</userinput></screen>
279</sect3>
280
281</sect2>
282
283<sect2>
284<title>Contents</title>
285
286<segmentedlist>
287<segtitle>Installed Programs</segtitle>
288<segtitle>Installed Libraries</segtitle>
289<segtitle>Installed Directory</segtitle>
290<seglistitem>
291<seg>fop.sh and xalan.sh</seg>
292<seg>avalon-framework-cvs-20020806.jar, batik.jar, fop.jar, xalan-2.4.1.jar,
293xercesImpl-2.2.1.jar and xml-apis.jar. <acronym>JAI</acronym> components
294include libmlib_jai.so, jai_codec.jar, jai_core.jar and
295mlibwrapper_jai.jar</seg>
296<seg>/opt/fop-&fop-version;</seg>
297</seglistitem>
298</segmentedlist>
299
300<variablelist>
301<bridgehead renderas="sect3">Short Descriptions</bridgehead>
302<?dbfo list-presentation="list"?>
303
304<varlistentry id="fop.sh">
305<term><command>fop.sh</command></term>
306<listitem><para>is a wrapper script to the <command>java</command> command
307which sets up the <application><acronym>FOP</acronym></application>
308environment and passes the required parameters.</para>
309<indexterm zone="fop fop.sh">
310<primary sortas="b-fop.sh">fop.sh</primary></indexterm>
311</listitem>
312</varlistentry>
313
314<varlistentry id="fop.jar">
315<term><filename class='libraryfile'>fop.jar</filename></term>
316<listitem><para>contains all the
317<application><acronym>FOP</acronym></application>
318<application>Java</application> classes.</para>
319<indexterm zone="fop fop.jar">
320<primary sortas="c-fop.jar">fop.jar</primary></indexterm>
321</listitem>
322</varlistentry>
323</variablelist>
324
325</sect2>
326
327</sect1>
328
Note: See TracBrowser for help on using the repository browser.