[00cbc797] | 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 |
|
---|
[8163ea8f] | 7 | <!--
|
---|
| 8 | NOTE:
|
---|
| 9 | Whenever upgrading to another version of Lazarus,
|
---|
[7d55a6a] | 10 | update qt5pas.xml and qt6pas.xml, too!
|
---|
[8163ea8f] | 11 | -->
|
---|
[a774a7f3] | 12 | <!ENTITY lazarus-download-http "https://downloads.sourceforge.net/project/lazarus/Lazarus Zip _ GZip/Lazarus &lazarus-version;/lazarus-&lazarus-version;-0.tar.gz">
|
---|
[dcf65db3] | 13 | <!ENTITY lazarus-md5sum "&lazarus-chksum;">
|
---|
| 14 | <!ENTITY lazarus-size "&lazarus-pkgsize;">
|
---|
[8163ea8f] | 15 | <!ENTITY lazarus-buildsize "817.2 MB">
|
---|
| 16 | <!ENTITY lazarus-time "1.5 SBU">
|
---|
[00cbc797] | 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 |
|
---|
[cd255e1] | 38 | &lfs121_checked;
|
---|
[00cbc797] | 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">
|
---|
[7d55a6a] | 71 | <xref linkend="fpc"/>, and
|
---|
| 72 | <xref linkend="qt6"/> plus <xref linkend="qt6pas"/> for QT6 based IDE,
|
---|
[cd255e1] | 73 | or
|
---|
[e734f29] | 74 | <xref linkend="gtk3"/> for Gtk3 based IDE
|
---|
[00cbc797] | 75 | </para>
|
---|
[a774a7f3] | 76 | <!--
|
---|
[00cbc797] | 77 | <para condition="html" role="usernotes">User Notes:
|
---|
| 78 | <ulink url="&blfs-wiki;/lazarus"/></para>
|
---|
[a774a7f3] | 79 | -->
|
---|
[00cbc797] | 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 | <!--
|
---|
[7d55a6a] | 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 |
|
---|
[e734f29] | 96 | lazarus -> lazarus-gtk3
|
---|
| 97 | startlazarus -> startlazarus-gtk3
|
---|
[7d55a6a] | 98 |
|
---|
[00cbc797] | 99 | and after building the QT5 variant
|
---|
[7d55a6a] | 100 |
|
---|
[00cbc797] | 101 | lazarus -> lazarus-qt5
|
---|
| 102 | startlazarus -> startlazarus-qt5
|
---|
| 103 |
|
---|
[7d55a6a] | 104 | and than symlink lazarus/startlazarus to the desired ones.
|
---|
[00cbc797] | 105 | -->
|
---|
| 106 | <para>
|
---|
| 107 | If you want to build <application>Lazarus</application> with
|
---|
[e734f29] | 108 | the gtk3 toolkit, build the package by running the following
|
---|
[7d55a6a] | 109 | commands, otherwise skip the GTK instructions and proceed
|
---|
| 110 | to the instructions to build the QT based variant below.
|
---|
[00cbc797] | 111 | </para>
|
---|
| 112 |
|
---|
[7d55a6a] | 113 | <para>Built GTK based IDE:</para>
|
---|
[e734f29] | 114 | <screen><userinput>make -j1 FPC=/usr/bin/fpc LCL_PLATFORM=gtk3 bigide</userinput></screen>
|
---|
[00cbc797] | 115 |
|
---|
| 116 | <para>
|
---|
[7d55a6a] | 117 | Now proceed to the installation (meaning skip the QT build below).
|
---|
[00cbc797] | 118 | </para>
|
---|
| 119 |
|
---|
[7d55a6a] | 120 | <!-- QT5 fades out of BLFS ...
|
---|
| 121 | <para>Built Qt5 based IDE:</para>
|
---|
[00cbc797] | 122 | <screen><userinput>make -j1 FPC=/usr/bin/fpc LCL_PLATFORM=qt5 bigide</userinput></screen>
|
---|
| 123 |
|
---|
[cd255e1] | 124 | <para>
|
---|
| 125 | Now proceed to the installation.
|
---|
| 126 | </para>
|
---|
[7d55a6a] | 127 | -->
|
---|
[cd255e1] | 128 |
|
---|
[7d55a6a] | 129 | <para>Built Qt6 based IDE:</para>
|
---|
[cd255e1] | 130 | <screen><userinput>make -j1 FPC=/usr/bin/fpc LCL_PLATFORM=qt6 bigide</userinput></screen>
|
---|
| 131 |
|
---|
| 132 | <para>
|
---|
[7d55a6a] | 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.
|
---|
[cd255e1] | 137 | </para>
|
---|
| 138 |
|
---|
[00cbc797] | 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 |
|
---|
[8163ea8f] | 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
|
---|
[00cbc797] | 156 |
|
---|
| 157 | sed -e 's|\(Categories\).*|\1=IDE;Development;|' \
|
---|
[8163ea8f] | 158 | -i /usr/share/applications/lazarus.desktop
|
---|
| 159 |
|
---|
| 160 | install -Dm644 images/ide_icon48x48.png \
|
---|
| 161 | /usr/share/pixmaps/lazarus.png</userinput></screen>
|
---|
[00cbc797] | 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>
|
---|
[8163ea8f] | 174 | <seg>startlazarus, lazarus-ide, lrstolfm, updatepofiles, lazbuild, lazres</seg>
|
---|
[00cbc797] | 175 | <seg>None</seg>
|
---|
[8163ea8f] | 176 | <seg>/usr/lib/lazarus</seg>
|
---|
[00cbc797] | 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">
|
---|
[8163ea8f] | 186 | <term><filename class="libraryfile">startlazarus</filename></term>
|
---|
[00cbc797] | 187 | <listitem>
|
---|
| 188 | <para>
|
---|
[8163ea8f] | 189 | Starting the Delphi-like IDE
|
---|
[00cbc797] | 190 | </para>
|
---|
| 191 | <indexterm zone="lazarus lazarus-pgm">
|
---|
[8163ea8f] | 192 | <primary sortas="b-lazarus">startlazarus</primary>
|
---|
[00cbc797] | 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
| 196 |
|
---|
| 197 | </variablelist>
|
---|
| 198 |
|
---|
| 199 | </sect2>
|
---|
| 200 |
|
---|
| 201 | </sect1>
|
---|