- Timestamp:
- 09/08/2013 04:56:57 AM (11 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:
- 7a792a0a
- Parents:
- 402f23d3
- Location:
- x/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
x/lib/qt4.xml
r402f23d3 rfb28b3b 106 106 <xref linkend="postgresql"/>, 107 107 <xref linkend="pulseaudio"/>, 108 <xref linkend="qtchooser"/> (if also installing Qt5), and 109 <xref linkend="unixodbc"/> 108 <xref linkend="unixodbc"/>, and 109 <xref linkend="qtchooser"/> (runtime, if also installing Qt5 and 110 installing in /usr) 110 111 </para> 111 112 … … 119 120 120 121 <para> 121 122 122 There are several ways to install a complicated package such as 123 123 <application>Qt</application>. The files are not completely position … … 150 150 </para> 151 151 152 <para> 153 The disadvantage of installing in <filename 154 class='directory'>/usr</filename> is that the executable filenames 155 for <application>Qt4</application> and <application>Qt5</application> 156 conflict if both packages are installed in the 157 same directory. The instructions below give a workaround for 158 this problem using the helper program <xref linkend='qtchooser'/>. 159 This requires renaming the Qt executables with a version suffix. 160 </para> 161 152 162 <para> 153 163 The advantage of installing <application>Qt4</application> in a custom … … 159 169 changing one symbolic link or merely changing the PATH variable. It 160 170 also allows a developer to maintain multiple versions of 161 <application>Qt4</application> for testing. 162 </para> 163 164 <warning> 171 <application>Qt4</application> or <application>Qt5</application> 172 for testing. 173 </para> 174 175 <caution> 165 176 <para> 166 177 If you did not install some of the recommended dependencies, examine … … 168 179 them or use internal versions bundled in the source tarball. 169 180 </para> 170 </ warning>171 172 < caution>181 </caution> 182 183 <warning> 173 184 <para> 174 If <application>Qt </application> is being reinstalled into the185 If <application>Qt4</application> is being reinstalled into the 175 186 same directory as an existing instance, run the 176 following commands from a console or non-Qt based window manager.177 It overwrites <application>Qt </application> libraries that should187 following commands from a console or non-Qt4 based window manager. 188 It overwrites <application>Qt4</application> libraries that should 178 189 not be in use during the install process. 179 190 </para> 180 </ caution>191 </warning> 181 192 182 193 <note> … … 192 203 193 204 <para> 194 Install <application>Qt </application> by running the205 Install <application>Qt4</application> by running the 195 206 following commands: 196 207 </para> 208 209 <note><para> 210 If <emphasis>not</emphasis> also installing <application>Qt5</application> 211 into the /usr directory, change the entry for -bindir below to /usr/bin. 212 </para></note> 213 197 214 198 215 <screen><userinput>sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \ … … 264 281 265 282 <para> 266 Symlink the <application>Qt</application> executables into 283 If also installing Qt5 into /usr, 284 symlink the <application>Qt4</application> executables into 267 285 <filename class="directory">/usr/bin</filename> by running the 268 286 following commands as the … … 276 294 277 295 <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt4-version;</bridgehead> 296 297 <para> 298 This section provides an alternate way to install Qt4 by installing 299 almost all of the files in the <filename class="directory">/opt</filename> 300 directory. This allows management of all Qt4 related files in one unit. 301 For instance, a new version of Qt4 can be installed without over-writing 302 the existing installation and entire Qt4 instances can be easily removed. 303 However, it has the disadvantage of needing some extra configuration. 304 </para> 305 278 306 279 307 <para> … … 445 473 446 474 <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF 447 475 <literal># Begin Qt addition 448 476 449 477 /opt/qt/lib … … 454 482 ldconfig</userinput></screen> 455 483 456 <indexterm zone="qt4 qt config-qt4">484 <indexterm zone="qt4 qt4-config"> 457 485 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary> 458 486 </indexterm> … … 464 492 465 493 <screen role="root"><userinput>cat > /etc/profile.d/qt.sh << EOF 466 494 <literal># Begin /etc/profile.d/qt.sh 467 495 468 496 QTDIR=/opt/qt … … 477 505 478 506 <para> 479 For all methods, Create the menu entries for installed applications.507 For all methods, create the menu entries for installed applications. 480 508 As the <systemitem class="username">root</systemitem> user: 481 509 </para> -
x/lib/qt5.xml
r402f23d3 rfb28b3b 42 42 </para> 43 43 44 &lfs7 3_checked;44 &lfs74_checked; 45 45 46 46 <bridgehead renderas="sect3">Package Information</bridgehead> … … 84 84 <xref linkend="alsa-lib"/>, 85 85 <xref linkend="mesalib"/>, 86 <xref linkend="qtchooser"/>,87 86 <xref linkend="xcb-util-image"/>, 88 87 <xref linkend="xcb-util-keysyms"/>, … … 115 114 <xref linkend="mysql"/>, 116 115 <xref linkend="postgresql"/>, 117 <xref linkend="pulseaudio"/>, and 118 <xref linkend="unixodbc"/> 116 <xref linkend="pulseaudio"/>, 117 <xref linkend="unixodbc"/>, and 118 <xref linkend="qtchooser"/> (runtime, if also installing Qt4 and 119 installing in /usr) 119 120 </para> 120 121 … … 127 128 <title>Installation of Qt</title> 128 129 129 <warning> 130 <para> 131 There are several ways to install a complicated package such as 132 <application>Qt</application>. The files are not completely position 133 independent. Installation procedures execute the program 134 <command>pkg-config</command> to determine the location of package 135 executables, libraries, headers, and other files. For 136 <application>Qt</application>, <command>pkg-config</command> will look 137 for the appropriate <filename>lib/pkgconfig/Qt*.pc</filename> files 138 which must be modified if relocating the package. These files are set up 139 correctly by the build process. 140 </para> 141 142 <para> 143 The default installation places the files in <filename 144 class='directory'>/usr/local/qt/</filename>. Many commercial 145 distributions place the files in the system's <filename 146 class='directory'>/usr</filename> hierarchy. The package can also be 147 installed in an arbitrary directory. 148 </para> 149 150 <para> 151 The advantage of installing in <filename 152 class='directory'>/usr</filename> is that no updates to the 153 <filename>/etc/ld.so.conf</filename> or 154 <filename>/etc/man_db.conf</filename> files are required. The package 155 files are distributed within several subdirectories of the <filename 156 class='directory'>/usr</filename> hierarchy. This is the method that 157 most commercial distributions use. 158 </para> 159 160 <para> 161 The disadvantage of installing in <filename 162 class='directory'>/usr</filename> is that the executable filenames 163 for <application>Qt4</application> and <application>Qt5</application> 164 conflict if both packages are installed in the 165 same directory. The instructions below give a workaround for 166 this problem using the helper program <xref linkend='qtchooser'/>. 167 This requires renaming the Qt executables with a version suffix. 168 </para> 169 170 <para> 171 The advantage of installing <application>Qt4</application> in a custom 172 directory such as <filename 173 class='directory'>/opt/qt-&qt4-version;</filename> is that it keeps all 174 the package files consolidated in a dedicated directory hierarchy. By 175 using this method, an update can be made without overwriting a previous 176 installation and users can easily revert to a previous version by 177 changing one symbolic link or merely changing the PATH variable. It 178 also allows a developer to maintain multiple versions of 179 <application>Qt4</application> or <application>Qt5</application> 180 for testing. 181 </para> 182 183 <caution> 130 184 <para> 131 185 If you did not install some of the recommended dependencies, examine … … 133 187 them or use internal versions bundled in the source tarball. 134 188 </para> 189 </caution> 190 191 <warning> 192 <para> 193 If <application>Qt5</application> is being reinstalled into the 194 same directory as an existing instance, run the 195 following commands from a console or non-Qt5 based window manager. 196 It overwrites <application>Qt5</application> libraries that should 197 not be in use during the install process. 198 </para> 135 199 </warning> 136 137 <para> 138 Install <application>Qt</application> by running the 200 201 <bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead> 202 203 <para> 204 Install <application>Qt5</application> by running the 139 205 following commands: 140 206 </para> 207 208 <note><para> 209 If <emphasis>not</emphasis> also installing <application>Qt4</application> 210 into the /usr directory, change the entry for -bindir below to /usr/bin. 211 </para></note> 141 212 142 213 <screen><userinput>sed -i "s:Context\* context}:&\n%lex-param {YYLEX_PARAM}:" \ … … 146 217 qtimageformats/config.tests/libmng/libmng.cpp && 147 218 148 ./configure -prefix /usr\149 -sysconfdir /etc/xdg\150 -bindir /usr/lib/qt5/bin\151 -headerdir /usr/include/qt5\152 -archdatadir /usr/lib/qt5\153 -datadir /usr/share/qt5 \154 -docdir /usr/share/doc/qt5\219 ./configure -prefix /usr \ 220 -sysconfdir /etc/xdg \ 221 -bindir /usr/lib/qt5/bin \ 222 -headerdir /usr/include/qt5 \ 223 -archdatadir /usr/lib/qt5 \ 224 -datadir /usr/share/qt5 \ 225 -docdir /usr/share/doc/qt5 \ 155 226 -translationdir /usr/share/qt5/translations \ 156 -examplesdir /usr/share/doc/qt5/examples\227 -examplesdir /usr/share/doc/qt5/examples \ 157 228 -confirm-license \ 158 229 -opensource \ … … 204 275 205 276 <para> 206 Symlink the <application>Qt</application> executables into 277 If also installing Qt4 into /usr, 278 Symlink the <application>Qt5</application> executables into 207 279 <filename class="directory">/usr/bin</filename> by running the 208 280 following commands as the … … 215 287 done</userinput></screen> 216 288 217 </sect2> 218 219 <sect2 role="installation"> 220 <title>Alternate Qt Installation Instructions</title> 221 222 <para> 223 This section provides an alternate way to install Qt by installing 289 <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt5-version;</bridgehead> 290 291 <para> 292 This section provides an alternate way to install Qt4 by installing 224 293 almost all of the files in the <filename class="directory">/opt</filename> 225 294 directory. This allows management of all Qt related files in one unit. … … 372 441 373 442 <para> 374 Create the menu entries for installed applications. 443 If you installed <application>Qt</application> in /usr, 444 create an environment variable needed by certain packages. 375 445 As the <systemitem class="username">root</systemitem> user: 376 446 </para> 447 448 <screen role="root"><userinput>cat > /etc/profile.d/qt.sh << EOF 449 <literal># Begin /etc/profile.d/qt.sh 450 451 QTDIR=/usr 452 453 export QT5DIR 454 455 # End /etc/profile.d/qt.sh</literal> 456 EOF</userinput></screen> 457 458 <para> 459 If you installed <application>Qt5</application> in a location other 460 than /usr, you need to update the following configuration files so 461 that <application>Qt5</application> is correctly found by other packages 462 and system processes.</para> 463 464 <para>As the <systemitem class="username">root</systemitem> user, update 465 the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's 466 run-time cache file: 467 </para> 468 469 <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF 470 <literal># Begin Qt addition 471 472 /opt/qt5/lib 473 474 # End Qt addition</literal> 475 EOF 476 477 ldconfig</userinput></screen> 478 479 <indexterm zone="qt5 qt5-config"> 480 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary> 481 </indexterm> 482 483 <para> 484 As the <systemitem class="username">root</systemitem> user, create 485 the <filename>/etc/profile.d/qt.sh</filename> file: 486 </para> 487 488 <screen role="root"><userinput>cat > /etc/profile.d/qt.sh << EOF 489 <literal># Begin /etc/profile.d/qt.sh 490 491 QT5DIR=/opt/qt5 492 493 pathappend /opt/qt5/bin PATH 494 pathappend /opt/qt5/lib/pkgconfig PKG_CONFIG_PATH 495 496 export QT5DIR 497 498 # End /etc/profile.d/qt.sh</literal> 499 EOF</userinput></screen> 500 501 <para> 502 For all methods, create the menu entries for installed applications. 503 As the <systemitem class="username">root</systemitem> user: 504 </para> 377 505 378 506 <screen role="root"><userinput>install -dm755 /usr/share/applications … … 446 574 qmlbundle-qt5, qmlmin-qt5, qmlplugindump-qt5, qmlprofiler-qt5, qmlscene-qt5, 447 575 qmltestrunner-qt5, qmlviewer-qt5, rcc-qt5, syncqt.pl-qt5, uic-qt5, 448 xmlpatterns-qt5 and xmlpatternsvalidator-qt5576 xmlpatterns-qt5, and xmlpatternsvalidator-qt5 449 577 </seg> 450 578 <seg> … … 458 586 libQt5Sensors.so, libQt5SerialPort.so, libQt5Sql.so, libQt5Svg.so, libQt5Test.so, 459 587 libQt5UiTools.a, libQt5V8.so, libQt5WebKit.so, libQt5WebKitWidgets.so, 460 libQt5Widgets.so, libQt5X11Extras.so, libQt5XmlPatterns.so and libQt5Xml.so588 libQt5Widgets.so, libQt5X11Extras.so, libQt5XmlPatterns.so, and libQt5Xml.so 461 589 </seg> 462 590 <seg> 463 591 /usr/include/qt5, 464 592 /usr/lib/qt5, 465 /usr/share/doc/qt5 and593 /usr/share/doc/qt5, and 466 594 /usr/share/qt5 467 595 </seg>
Note:
See TracChangeset
for help on using the changeset viewer.