- Timestamp:
- 04/15/2012 05:19:58 PM (12 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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
- Children:
- 1bc70b56
- Parents:
- 86f9469
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
x/lib/qt4.xml
r86f9469 rad41452 28 28 29 29 <sect2 role="package"> 30 <title>Introduction to Qt 4</title>30 <title>Introduction to Qt</title> 31 31 32 32 <para><application>Qt</application> is a cross-platform application … … 35 35 as a widget toolkit), and also used for developing non-GUI programs such 36 36 as command-line tools and consoles for servers. One of the major users 37 of <application>Qt 4</application> is <application>KDE</application>.</para>37 of <application>Qt</application> is <application>KDE</application>.</para> 38 38 39 39 &lfs71_checked; … … 112 112 113 113 <sect2 role="installation"> 114 <title>Installation of Qt 4</title>114 <title>Installation of Qt</title> 115 115 116 116 <para>There are several ways to install a complicated package such as 117 <application>Qt 4</application>. The files are not completely position117 <application>Qt</application>. The files are not completely position 118 118 independent. Installation procedures execute the program 119 119 <command>pkg-config</command> to determine the location of package 120 120 executables, libraries, headers, and other files. For 121 <application>Qt 4</application>, <command>pkg-config</command> will look121 <application>Qt</application>, <command>pkg-config</command> will look 122 122 for the appropriate <filename>lib/pkgconfig/Qt*.pc</filename> files which 123 123 must be modified if relocating the package. These files are set up correctly … … 136 136 <filename class='directory'>/usr</filename> hierarchy. 137 137 This is the method that most commercial distributions use.</para> 138 <!-- 139 <note> 140 <para>There is no conflict between the <application>Qt3</application> 141 and <application>Qt4</application> applications and headers so both 142 can be installed at the same time. This may be necessary to build or 143 run Qt3 applications like <application>KDE3</application> and 144 <application>Qt4</application> applications like 145 <application>Doxygen</application>'s <application>doxywizard</application> 146 on the same system. 147 </para> 148 149 <para>To set up both <application>Qt3</application> and 150 <application>Qt4</application> on the same system, choose the primary 151 version for the <filename>/opt/qt</filename> symbolic link and add 152 the explicit library directory of the other version to 153 <filename>/etc/ld.so.conf</filename>.</para> 154 155 <para>On a system with both versions of Qt, there is a name conflict with 156 Qt applications such as <filename>qmake</filename>, 157 <filename>assistant</filename>, and <filename>designer</filename>. In 158 such a case, make sure the PATH variable lists the proper 159 <filename>/opt/qt<version>/bin</filename> directory before the 160 other Qt bin directory. </para> 161 </note> 162 --> 138 163 139 <caution> 164 <para>If <application>Qt 4</application> is being reinstalled and the140 <para>If <application>Qt</application> is being reinstalled and the 165 141 <filename class='directory'>/usr</filename> 166 142 directory is used as the prefix, run the following commands from a 167 console or non-Qt 4based window manager. It overwrites168 <application>Qt 4</application> libraries that should not be in use during143 console or non-Qt based window manager. It overwrites 144 <application>Qt</application> libraries that should not be in use during 169 145 the install process.</para> 170 146 </caution> … … 172 148 <note> 173 149 <para>The build time and space required for the full 174 <application>Qt 4</application> is quite long. The instructions below do150 <application>Qt</application> is quite long. The instructions below do 175 151 not build the tutorials and examples. Removing the 176 152 <parameter>-nomake</parameter> lines will create a complete build.</para> 177 153 </note> 178 154 179 <para>The method recommended by the <application>Qt 4</application>155 <para>The method recommended by the <application>Qt</application> 180 156 developers does not use the /usr directory prefix. It has the advantage of 181 157 keeping all the package files consolidated in a dedicated directory … … 184 160 by changing one symbolic link.</para> 185 161 186 <para>The <application>Qt 4</application> developers use a default location162 <para>The <application>Qt</application> developers use a default location 187 163 of <filename class='directory'>/usr/local/qt/</filename>, however the 188 164 procedure below puts the files in <filename … … 190 166 and then creates a symbolic link to <filename>/opt/qt/</filename>.</para> 191 167 192 <para>Configure <application>Qt 4</application> by running the168 <para>Configure <application>Qt</application> by running the 193 169 following commands:</para> 194 170 … … 220 196 <screen role="root"><userinput>make install</userinput></screen> 221 197 222 <para>If you installed <application>Qt 4</application> in the /opt directory,198 <para>If you installed <application>Qt</application> in the /opt directory, 223 199 again as the <systemitem class="username">root</systemitem> user issue:</para> 224 200 … … 245 221 <para><parameter>-nomake examples, -nomake demos</parameter>: 246 222 These switches disable building programs that are only of interest 247 to a <application>Qt 4</application> developer.</para>223 to a <application>Qt</application> developer.</para> 248 224 249 225 <para><parameter>-system-sqlite</parameter>: … … 261 237 <para><parameter>-plugin-sql-<replaceable><driver></replaceable></parameter> 262 238 or <parameter>-qt-sql-<replaceable><driver></replaceable></parameter>: 263 These switches build SQL support into the <application>Qt 4</application>239 These switches build SQL support into the <application>Qt</application> 264 240 libraries.</para> 265 241 … … 280 256 281 257 <sect2 role="configuration"> 282 <title>Configuring Qt 4</title>258 <title>Configuring Qt</title> 283 259 284 260 <sect3 id='qt4-config'> 285 261 <title>Configuration Information</title> 286 262 287 <para>If you installed <application>Qt 4</application> in a location other263 <para>If you installed <application>Qt</application> in a location other 288 264 than /usr, you also need to update the following configuration files so 289 that <application>Qt 4</application> is correctly found by other packages265 that <application>Qt</application> is correctly found by other packages 290 266 and system processes.</para> 291 267 … … 295 271 296 272 <screen role="root"><userinput>cat >> /etc/ld.so.conf << "EOF" && 297 <literal># Begin qt addition273 <literal># Begin Qt addition 298 274 299 275 /opt/qt/lib 300 276 301 # End qt addition</literal>277 # End Qt addition</literal> 302 278 EOF 303 279 ldconfig</userinput></screen> … … 308 284 309 285 <para>As the <systemitem class="username">root</systemitem> user, create 310 the <filename>/etc/profile.d/qt4.sh</filename> file:</para> 311 312 <screen role="root"><userinput>cat > /etc/profile.d/qt4.sh << "EOF" 313 # Begin /etc/profile.d/qt4.sh 314 315 QT4DIR=/opt/qt 286 the <filename>/etc/profile.d/qt.sh</filename> file:</para> 287 288 <screen role="root"><userinput>cat > /etc/profile.d/qt.sh << "EOF" 289 # Begin /etc/profile.d/qt.sh 290 316 291 QTDIR=/opt/qt 317 292 … … 319 294 pathappend /opt/qt/lib/pkgconfig PKG_CONFIG_PATH 320 295 321 export QT 4DIR QTDIR322 323 # End /etc/profile.d/qt 4.sh296 export QTDIR 297 298 # End /etc/profile.d/qt.sh 324 299 EOF</userinput></screen> 325 300
Note:
See TracChangeset
for help on using the changeset viewer.