1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!--
|
---|
8 | NOTE:
|
---|
9 | Whenever upgrading to another version of Lazarus,
|
---|
10 | update qt5pas.xml and qt6pas.xml, too!
|
---|
11 | -->
|
---|
12 | <!ENTITY lazarus-download-http "https://downloads.sourceforge.net/project/lazarus/Lazarus Zip _ GZip/Lazarus &lazarus-version;/lazarus-&lazarus-version;-0.tar.gz">
|
---|
13 | <!ENTITY lazarus-md5sum "&lazarus-chksum;">
|
---|
14 | <!ENTITY lazarus-size "&lazarus-pkgsize;">
|
---|
15 | <!ENTITY lazarus-buildsize "817.2 MB">
|
---|
16 | <!ENTITY lazarus-time "1.5 SBU">
|
---|
17 | ]>
|
---|
18 |
|
---|
19 | <sect1 id="lazarus" xreflabel="lazarus-&lazarus-version;">
|
---|
20 | <?dbhtml filename="lazarus.html"?>
|
---|
21 |
|
---|
22 | <title>Lazarus-&lazarus-version;</title>
|
---|
23 |
|
---|
24 | <indexterm zone="lazarus">
|
---|
25 | <primary sortas="a-lazarus">lazarus</primary>
|
---|
26 | </indexterm>
|
---|
27 |
|
---|
28 | <sect2 role="package">
|
---|
29 | <title>Introduction to lazarus</title>
|
---|
30 |
|
---|
31 | <para><!-- copied from https://www.lazarus-ide.org/ -->
|
---|
32 | Lazarus is a Delphi compatible cross-platform IDE for Rapid
|
---|
33 | Application Development. It has variety of components ready
|
---|
34 | for use and a graphical form designer to easily create complex
|
---|
35 | graphical user interfaces.
|
---|
36 | </para>
|
---|
37 |
|
---|
38 | &lfs121_checked;
|
---|
39 |
|
---|
40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
41 | <itemizedlist spacing="compact">
|
---|
42 | <listitem>
|
---|
43 | <para>
|
---|
44 | Download (HTTP): <ulink url="&lazarus-download-http;"/>
|
---|
45 | </para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download MD5 sum: &lazarus-md5sum;
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download size: &lazarus-size;
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Estimated disk space required: &lazarus-buildsize;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Estimated build time: &lazarus-time;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | </itemizedlist>
|
---|
68 |
|
---|
69 | <bridgehead renderas="sect3">Lazarus Dependencies</bridgehead>
|
---|
70 | <para role="required">
|
---|
71 | <xref linkend="fpc"/>, and
|
---|
72 | <xref linkend="qt6"/> plus <xref linkend="qt6pas"/> for QT6 based IDE,
|
---|
73 | or
|
---|
74 | <xref linkend="gtk3"/> for Gtk3 based IDE
|
---|
75 | </para>
|
---|
76 | <!--
|
---|
77 | <para condition="html" role="usernotes">User Notes:
|
---|
78 | <ulink url="&blfs-wiki;/lazarus"/></para>
|
---|
79 | -->
|
---|
80 | </sect2>
|
---|
81 |
|
---|
82 | <sect2 role="installation">
|
---|
83 | <title>Installation of Lazarus</title>
|
---|
84 |
|
---|
85 | <para>
|
---|
86 | Ensure that the source tree is in proper state:
|
---|
87 | </para>
|
---|
88 |
|
---|
89 | <screen><userinput>make -j1 FPC=/usr/bin/fpc clean</userinput></screen>
|
---|
90 |
|
---|
91 | <!--
|
---|
92 | Looks like that even multible versions (gtk3, qt5, qt6) can be on
|
---|
93 | one machine at the same time when the binaries 'lazarus' and
|
---|
94 | 'startlazarus' are moved to
|
---|
95 |
|
---|
96 | lazarus -> lazarus-gtk3
|
---|
97 | startlazarus -> startlazarus-gtk3
|
---|
98 |
|
---|
99 | and after building the QT5 variant
|
---|
100 |
|
---|
101 | lazarus -> lazarus-qt5
|
---|
102 | startlazarus -> startlazarus-qt5
|
---|
103 |
|
---|
104 | and than symlink lazarus/startlazarus to the desired ones.
|
---|
105 | -->
|
---|
106 | <para>
|
---|
107 | If you want to build <application>Lazarus</application> with
|
---|
108 | the gtk3 toolkit, build the package by running the following
|
---|
109 | commands, otherwise skip the GTK instructions and proceed
|
---|
110 | to the instructions to build the QT based variant below.
|
---|
111 | </para>
|
---|
112 |
|
---|
113 | <para>Built GTK based IDE:</para>
|
---|
114 | <screen><userinput>make -j1 FPC=/usr/bin/fpc LCL_PLATFORM=gtk3 bigide</userinput></screen>
|
---|
115 |
|
---|
116 | <para>
|
---|
117 | Now proceed to the installation (meaning skip the QT build below).
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <!-- QT5 fades out of BLFS ...
|
---|
121 | <para>Built Qt5 based IDE:</para>
|
---|
122 | <screen><userinput>make -j1 FPC=/usr/bin/fpc LCL_PLATFORM=qt5 bigide</userinput></screen>
|
---|
123 |
|
---|
124 | <para>
|
---|
125 | Now proceed to the installation.
|
---|
126 | </para>
|
---|
127 | -->
|
---|
128 |
|
---|
129 | <para>Built Qt6 based IDE:</para>
|
---|
130 | <screen><userinput>make -j1 FPC=/usr/bin/fpc LCL_PLATFORM=qt6 bigide</userinput></screen>
|
---|
131 |
|
---|
132 | <para>
|
---|
133 | Likewise, a gtk2 or a qt5 variant can be built in similar way - just use
|
---|
134 | LCL_PLATFORM=gtk2 resp. LCL_PLATFORM=qt5 in the <code>make ... bigide</code>
|
---|
135 | command. It is not included here as gtk2 and qt5 are outdated
|
---|
136 | and no longer included in the BLFS book.
|
---|
137 | </para>
|
---|
138 |
|
---|
139 | <para>
|
---|
140 | This package does not come with a test suite.
|
---|
141 | </para>
|
---|
142 |
|
---|
143 | <para>
|
---|
144 | Now, install <application>lazarus</application> as the
|
---|
145 | <systemitem class="username">root</systemitem> user:
|
---|
146 | </para>
|
---|
147 |
|
---|
148 | <screen role="root"><userinput>make INSTALL_PREFIX=/usr distinstall
|
---|
149 |
|
---|
150 | mv /usr/share/lazarus/docs /usr/share/doc/lazarus
|
---|
151 |
|
---|
152 | mv /usr/share/lazarus /usr/lib/
|
---|
153 | for L in $(find /usr/bin -type l); do
|
---|
154 | ln -svf "$(readlink $L | sed 's@/share/@/lib/@')" "$L"
|
---|
155 | done
|
---|
156 |
|
---|
157 | sed -e 's|\(Categories\).*|\1=IDE;Development;|' \
|
---|
158 | -i /usr/share/applications/lazarus.desktop
|
---|
159 |
|
---|
160 | install -Dm644 images/ide_icon48x48.png \
|
---|
161 | /usr/share/pixmaps/lazarus.png</userinput></screen>
|
---|
162 |
|
---|
163 | </sect2>
|
---|
164 |
|
---|
165 | <sect2 role="content">
|
---|
166 | <title>Contents</title>
|
---|
167 |
|
---|
168 | <segmentedlist>
|
---|
169 | <segtitle>Installed Program</segtitle>
|
---|
170 | <segtitle>Installed Libraries</segtitle>
|
---|
171 | <segtitle>Installed Directories</segtitle>
|
---|
172 |
|
---|
173 | <seglistitem>
|
---|
174 | <seg>startlazarus, lazarus-ide, lrstolfm, updatepofiles, lazbuild, lazres</seg>
|
---|
175 | <seg>None</seg>
|
---|
176 | <seg>/usr/lib/lazarus</seg>
|
---|
177 | </seglistitem>
|
---|
178 | </segmentedlist>
|
---|
179 |
|
---|
180 | <variablelist>
|
---|
181 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
182 | <?dbfo list-presentation="list"?>
|
---|
183 | <?dbhtml list-presentation="table"?>
|
---|
184 |
|
---|
185 | <varlistentry id="lazarus-pgm">
|
---|
186 | <term><filename class="libraryfile">startlazarus</filename></term>
|
---|
187 | <listitem>
|
---|
188 | <para>
|
---|
189 | Starting the Delphi-like IDE
|
---|
190 | </para>
|
---|
191 | <indexterm zone="lazarus lazarus-pgm">
|
---|
192 | <primary sortas="b-lazarus">startlazarus</primary>
|
---|
193 | </indexterm>
|
---|
194 | </listitem>
|
---|
195 | </varlistentry>
|
---|
196 |
|
---|
197 | </variablelist>
|
---|
198 |
|
---|
199 | </sect2>
|
---|
200 |
|
---|
201 | </sect1>
|
---|