Changeset ec7940be for x/lib/qt5.xml
- Timestamp:
- 02/25/2014 07:00:30 PM (10 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 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:
- 13103ed
- Parents:
- 014d750f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
x/lib/qt5.xml
r014d750f rec7940be 39 39 <application>Qt5</application> is classified as a widget toolkit), and 40 40 also used for developing non-GUI programs such as command-line tools 41 and consoles for servers. One of the major users of 42 <application>Qt5</application> is <application>KDE Frameworks 5</application>. 43 </para> 44 45 &lfs74_checked; 41 and consoles for servers. 42 </para> 43 44 &lfs75_checked; 46 45 47 46 <bridgehead renderas="sect3">Package Information</bridgehead> … … 98 97 <xref linkend="glib2"/>, 99 98 <xref linkend="gst-plugins-base"/>,<!-- 100 <xref linkend="harfbuzz"/>, Doesn't have all the features that the shipped one has. -->99 <xref linkend="harfbuzz"/>, Doesn't have all the features that the included one has. --> 101 100 <xref linkend="icu"/>, 102 101 <xref linkend="libjpeg"/>, … … 123 122 </para> 124 123 125 <bridgehead renderas="sect4">Required (Runtime)</bridgehead>126 <para role="required">127 <xref linkend="qtchooser"/> (if installing both128 <application>Qt4</application> and <application>Qt5</application>129 and installing in <filename class="directory">/usr</filename>)130 </para>131 132 124 <para condition="html" role="usernotes">User Notes: 133 125 <ulink url="&blfs-wiki;/qt5"/> … … 135 127 </sect2> 136 128 129 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 130 href="../../xincludes/qt-alternatives.xml"/> 131 137 132 <sect2 role="installation"> 138 133 <title>Installation of Qt5</title> 139 134 140 <para>141 There are several ways to install a complicated package such as142 <application>Qt5</application>. The files are not completely position143 independent. Installation procedures execute the program144 <command>pkg-config</command> to determine the location of package145 executables, libraries, headers, and other files. For146 <application>Qt5</application>, <command>pkg-config</command> will look147 for the appropriate <filename>lib/pkgconfig/Qt5*.pc</filename> files148 which must be modified if relocating the package. These files are set up149 correctly by the build process.150 </para>151 152 <para>153 The default installation places the files in <filename154 class="directory">/usr/local/qt</filename>. Many155 distributions place the files in the system's <filename156 class="directory">/usr</filename> hierarchy. The package can157 also be installed in an arbitrary directory.158 </para>159 160 <para>161 The advantage of installing in <filename162 class="directory">/usr</filename> is that no updates to the163 <filename>/etc/ld.so.conf</filename> or164 <filename>/etc/man_db.conf</filename> files are required. The package165 files are distributed within several subdirectories of the <filename166 class="directory">/usr</filename> hierarchy. This is the method that167 most distributions use.168 </para>169 170 <para>171 The disadvantage of installing in <filename172 class="directory">/usr</filename> is that the executable filenames173 for <application>Qt4</application> and <application>Qt5</application>174 conflict if both packages are installed in the175 same directory. The instructions below give a workaround for176 this problem using the helper programs from <xref linkend="qtchooser"/>.177 <!-- renaming is not required because of this, only using a different178 bindir is -->179 </para>180 181 <para>182 The advantage of installing <application>Qt5</application> in a custom183 directory such as <filename184 class="directory">/opt/qt-&qt5-version;</filename> is that it keeps all185 the package files consolidated in a dedicated directory hierarchy. By186 using this method, an update can be made without overwriting a previous187 installation and users can easily revert to a previous version by188 changing one symbolic link or merely changing the <envar>PATH</envar>189 variable. It also allows a developer to maintain multiple versions of190 <application>Qt4</application> or <application>Qt5</application>191 for testing.192 </para>193 194 135 <caution> 195 136 <para> … … 209 150 </para> 210 151 </warning> 211 152 <!-- ==== Method 1 ====== --> 212 153 <bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead> 213 154 … … 218 159 219 160 <!-- This is rather a bad idea. Most apps that I've seen using Qt5 look for -qt5 220 suffixed programs. 161 suffixed programs. On the other hand, the developer is used to running 162 qmake, linguist, etc from the command line. 221 163 222 164 <note> … … 227 169 </note> --> 228 170 229 <screen><userinput>./configure -prefix /usr \ 171 <screen><userinput>export QTLINK=/usr 172 173 ./configure -prefix /usr \ 230 174 -sysconfdir /etc/xdg \ 231 -bindir /usr/ lib/qt5/bin\175 -bindir /usr/bin \ 232 176 -headerdir /usr/include/qt5 \ 233 177 -archdatadir /usr/lib/qt5 \ … … 249 193 250 194 <para> 195 This package does not come with a test suite. 196 </para> 197 198 <para> 251 199 Remove references to the build directory from the 252 200 <filename class="extension">.pc</filename> files by running … … 257 205 258 206 <para> 259 This package does not come with a test suite.260 </para>261 262 <para>263 207 Now, as the <systemitem class="username">root</systemitem> user: 264 208 </para> 265 209 266 <screen role="root"><userinput>make install && 267 install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \ 268 /usr/share/pixmaps/assistant-qt5.png && 269 install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \ 270 /usr/share/pixmaps/designer-qt5.png && 271 install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \ 272 /usr/share/pixmaps/linguist-qt5.png && 273 install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \ 274 /usr/share/pixmaps/qdbusviewer-qt5.png</userinput></screen> 210 <screen role="root"><userinput>make install</userinput></screen> 275 211 276 212 <para> … … 280 216 </para> 281 217 282 <screen role="root"><userinput>sed -i -e "s:$PWD/qtbase:/usr/lib/qt5:g" \ 283 /usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri && 284 find /usr/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -e \ 285 '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;</userinput></screen> 286 287 <para> 288 <!-- If you didn't modify the -bindir switch above, -->Symlink the 289 <application>Qt5</application> executables into 290 <filename class="directory">/usr/bin</filename> by running the 291 following commands as the 292 <systemitem class="username">root</systemitem> user: 293 </para> 294 295 <screen role="root"><userinput>for file in /usr/lib/qt5/bin/* 296 do 297 ln -sfv ../lib/qt5/bin/$(basename $file) /usr/bin/$(basename $file)-qt5 298 done</userinput></screen> 218 <screen role="root"><userinput> 219 sed -e "s:$PWD/qtbase:/usr/lib/qt5:g" \ 220 -i /usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri && 221 222 find /usr/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -r \ 223 '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' {} \;</userinput></screen> 224 225 <!-- ==== Method 2 ====== --> 299 226 300 227 <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt5-version;</bridgehead> 301 228 302 <para> 303 This section provides an alternate way to install <application>Qt5</application> 304 by installing almost all of the files in the <filename 305 class="directory">/opt</filename> directory. This allows management of all 306 <application>Qt5</application> related files in one unit. For instance, a new 307 version of <application>Qt5</application> can be installed without over-writing 308 the existing installation and entire <application>Qt5</application> instances can 309 be easily removed. However, it has the disadvantage of needing some extra 310 configuration and you need to switch manually between <application>Qt4</application> 311 and <application>Qt5</application> executables when needed. 312 </para> 313 314 <screen><userinput>export QT5DIR=/opt/qt-&qt5-version; 229 <para> 230 This section provides for installing Qt4 almost all of the files in the 231 <filename class="directory">/opt</filename> directory. 232 </para> 233 234 <screen><userinput>export QT5DIR=/opt/qt-&qt5-version; && 235 export QTLINK=/opt/qt5 && 315 236 316 237 ./configure -prefix $QT5DIR \ … … 333 254 334 255 <screen role="root"><userinput>make install && 335 336 install -v -dm755 /usr/share/pixmaps/ && 337 install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \ 338 /usr/share/pixmaps/assistant-qt5.png && 339 install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \ 340 /usr/share/pixmaps/designer-qt5.png && 341 install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \ 342 /usr/share/pixmaps/linguist-qt5.png && 343 install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \ 344 /usr/share/pixmaps/qdbusviewer-qt5.png</userinput></screen> 256 ln -svfn $QT5DIR /opt/qt5</userinput></screen> 345 257 346 258 <para> … … 356 268 -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen> 357 269 358 <!-- This is useful for packages looking explicitly for Qt apps with -qt5 suffix, 359 and is *required* for the desktop files below to work correctly. --> 270 <!-- This is useful for packages looking explicitly for Qt apps with -qt5 suffix. 360 271 361 272 <para> … … 370 281 for file in /opt/qt5/bin/*; do 371 282 ln -sfv $file /usr/bin/$(basename $file)-qt5 372 done</userinput></screen> 283 done</userinput></screen> --> 284 285 <!-- ==== Common ====== --> 286 <bridgehead renderas="sect3">Continuing for Both Methods</bridgehead> 287 288 <para> 289 For all methods, install images and create the menu entries 290 for installed applications. Be sure that the <envar>QTLINK</envar> 291 variable is defined in root's environment and 292 as the <systemitem class="username">root</systemitem> user: 293 </para> 294 295 <screen role="root"><userinput>install -v -dm755 /usr/share/pixmaps/ && 296 297 install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \ 298 /usr/share/pixmaps/assistant-qt5.png && 299 300 install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \ 301 /usr/share/pixmaps/designer-qt5.png && 302 303 install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \ 304 /usr/share/pixmaps/linguist-qt5.png && 305 306 install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \ 307 /usr/share/pixmaps/qdbusviewer-qt5.png && 308 309 install -dm755 /usr/share/applications && 310 311 cat > /usr/share/applications/assistant-qt5.desktop << EOF 312 <literal>[Desktop Entry] 313 Name=Qt5 Assistant 314 Comment=Shows Qt5 documentation and examples 315 Exec=$QTLINK/bin/assistant 316 Icon=assistant-qt5.png 317 Terminal=false 318 Encoding=UTF-8 319 Type=Application 320 Categories=Qt;Development;Documentation;</literal> 321 EOF 322 323 cat > /usr/share/applications/designer-qt5.desktop << EOF 324 <literal>[Desktop Entry] 325 Name=Qt5 Designer 326 GenericName=Interface Designer 327 Comment=Design GUIs for Qt5 applications 328 Exec=$QTLINK/bin/designer 329 Icon=designer-qt5.png 330 MimeType=application/x-designer; 331 Terminal=false 332 Encoding=UTF-8 333 Type=Application 334 Categories=Qt;Development;</literal> 335 EOF 336 337 cat > /usr/share/applications/linguist-qt5.desktop << EOF 338 <literal>[Desktop Entry] 339 Name=Qt5 Linguist 340 Comment=Add translations to Qt5 applications 341 Exec=$QTLINK/bin/linguist 342 Icon=linguist-qt5.png 343 MimeType=text/vnd.trolltech.linguist;application/x-linguist; 344 Terminal=false 345 Encoding=UTF-8 346 Type=Application 347 Categories=Qt;Development;</literal> 348 EOF 349 350 cat > /usr/share/applications/qdbusviewer-qt5.desktop << EOF 351 <literal>[Desktop Entry] 352 Name=Qt5 QDbusViewer 353 GenericName=D-Bus Debugger 354 Comment=Debug D-Bus applications 355 Exec=$QTLINK/bin/qdbusviewer 356 Icon=qdbusviewer-qt5.png 357 Terminal=false 358 Encoding=UTF-8 359 Type=Application 360 Categories=Qt;Development;Debugger;</literal> 361 EOF</userinput></screen> 373 362 374 363 </sect2> … … 456 445 </para> 457 446 458 <screen role="root"><userinput>install -dm755 /usr/share/applications459 cat > /usr/share/applications/assistant-qt5.desktop << "EOF"460 <literal>[Desktop Entry]461 Name=Qt5 Assistant462 Comment=Shows Qt5 documentation and examples463 Exec=assistant-qt5464 Icon=assistant-qt5465 Terminal=false466 Encoding=UTF-8467 Type=Application468 Categories=Qt;Development;Documentation;</literal>469 EOF470 cat > /usr/share/applications/designer-qt5.desktop << "EOF"471 <literal>[Desktop Entry]472 Name=Qt5 Designer473 GenericName=Interface Designer474 Comment=Design GUIs for Qt5 applications475 Exec=designer-qt5476 Icon=designer-qt5477 MimeType=application/x-designer;478 Terminal=false479 Encoding=UTF-8480 Type=Application481 Categories=Qt;Development;</literal>482 EOF483 cat > /usr/share/applications/linguist-qt5.desktop << "EOF"484 <literal>[Desktop Entry]485 Name=Qt5 Linguist486 Comment=Add translations to Qt5 applications487 Exec=linguist-qt5488 Icon=linguist-qt5489 MimeType=text/vnd.trolltech.linguist;application/x-linguist;490 Terminal=false491 Encoding=UTF-8492 Type=Application493 Categories=Qt;Development;</literal>494 EOF495 cat > /usr/share/applications/qdbusviewer-qt5.desktop << "EOF"496 <literal>[Desktop Entry]497 Name=Qt5 QDbusViewer498 GenericName=D-Bus Debugger499 Comment=Debug D-Bus applications500 Exec=qdbusviewer-qt5501 Icon=qdbusviewer-qt5502 Terminal=false503 Encoding=UTF-8504 Type=Application505 Categories=Qt;Development;Debugger;</literal>506 EOF</userinput></screen>507 508 <!-- No package uses this at the moment.509 510 447 <para> 511 448 If you installed <application>Qt5</application> in … … 519 456 520 457 QTDIR=/usr 521 522 458 export QT5DIR 523 459 524 460 # End /etc/profile.d/qt5.sh</literal> 525 461 EOF</userinput></screen> 526 527 -->528 529 <note>530 <para>531 If you have installed <application>Qt5</application> in532 <filename class="directory">/usr</filename>, you can skip533 rest of this section.534 </para>535 </note>536 462 537 463 <para> … … 580 506 EOF</userinput></screen> 581 507 582 <note>583 <para>584 If you also installed <application>Qt4</application> and need to use585 the <application>Qt5</application> version of an executable such as586 <command>qmake</command> for building a program, make sure that587 the <application>Qt5</application> bin directory is listed prior to588 the <application>Qt5</application> bin directory in the589 <envar>PATH</envar> variable.590 </para>591 </note>592 593 508 </sect3> 594 509 510 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 511 href="../../xincludes/setqt.xml"/> 595 512 </sect2> 596 513 … … 605 522 <seglistitem> 606 523 <seg> 607 assistant -qt5, designer-qt5, lconvert-qt5, linguist-qt5, lrelease-qt5,608 lupdate -qt5, moc-qt5, pixeltool-qt5, qcollectiongenerator-qt5, qdbuscpp2xml-qt5,609 qdbus -qt5, qdbusviewer-qt5, qdbusxml2cpp-qt5, qdoc-qt5, qhelpconverter-qt5,610 qhelpgenerator -qt5, qmake-qt5, qml1plugindump-qt5, qmlbundle-qt5,611 qmlimportscanner -qt5, qmlmin-qt5, qmlplugindump-qt5, qmlprofiler-qt5, qml-qt5,612 qmlscene -qt5, qmltestrunner-qt5, qmlviewer-qt5, qtpaths-qt5, rcc-qt5,613 syncqt.pl -qt5, uic-qt5, xmlpatterns-qt5, and xmlpatternsvalidator-qt5524 assistant, designer, lconvert, linguist, lrelease, 525 lupdate, moc, pixeltool, qcollectiongenerator, qdbuscpp2xml, 526 qdbus, qdbusviewer, qdbusxml2cpp, qdoc, qhelpconverter, 527 qhelpgenerator, qmake, qml1plugindump, qmlbundle, 528 qmlimportscanner, qmlmin, qmlplugindump, qmlprofiler, qml, 529 qmlscene, qmltestrunner, qmlviewer, qtpaths, rcc, 530 syncqt.pl, uic, xmlpatterns, and xmlpatternsvalidator 614 531 </seg> 615 532 <seg> … … 631 548 /usr/share/doc/qt5, and 632 549 /usr/share/qt5 550 OR 551 /opy/qt5 and 552 /opt/qt-&qt5-version; 633 553 </seg> 634 554 </seglistitem> … … 641 561 642 562 <varlistentry id="assistant-qt5"> 643 <term><command>assistant -qt5</command></term>563 <term><command>assistant</command></term> 644 564 <listitem> 645 565 <para> … … 647 567 </para> 648 568 <indexterm zone="qt5 assistant-qt5"> 649 <primary sortas="b-assistant-qt5">assistant -qt5</primary>569 <primary sortas="b-assistant-qt5">assistant</primary> 650 570 </indexterm> 651 571 </listitem> … … 653 573 654 574 <varlistentry id="designer-qt5"> 655 <term><command>designer -qt5</command></term>575 <term><command>designer</command></term> 656 576 <listitem> 657 577 <para> … … 662 582 </para> 663 583 <indexterm zone="qt5 designer-qt5"> 664 <primary sortas="b-designer-qt5">designer -qt5</primary>584 <primary sortas="b-designer-qt5">designer</primary> 665 585 </indexterm> 666 586 </listitem> … … 668 588 669 589 <varlistentry id="linguist-qt5"> 670 <term><command>linguist -qt5</command></term>590 <term><command>linguist</command></term> 671 591 <listitem> 672 592 <para> … … 675 595 </para> 676 596 <indexterm zone="qt5 linguist-qt5"> 677 <primary sortas="b-linguist-qt5">linguist -qt5</primary>597 <primary sortas="b-linguist-qt5">linguist</primary> 678 598 </indexterm> 679 599 </listitem> … … 681 601 682 602 <varlistentry id="lrelease-qt5"> 683 <term><command>lrelease -qt5</command></term>603 <term><command>lrelease</command></term> 684 604 <listitem> 685 605 <para> … … 688 608 </para> 689 609 <indexterm zone="qt5 lrelease-qt5"> 690 <primary sortas="b-lrelease-qt5">lrelease -qt5</primary>610 <primary sortas="b-lrelease-qt5">lrelease</primary> 691 611 </indexterm> 692 612 </listitem> … … 694 614 695 615 <varlistentry id="lupdate-qt5"> 696 <term><command>lupdate -qt5</command></term>616 <term><command>lupdate</command></term> 697 617 <listitem> 698 618 <para> … … 703 623 </para> 704 624 <indexterm zone="qt5 lupdate-qt5"> 705 <primary sortas="b-lupdate-qt5">lupdate -qt5</primary>625 <primary sortas="b-lupdate-qt5">lupdate</primary> 706 626 </indexterm> 707 627 </listitem> … … 709 629 710 630 <varlistentry id="moc-qt5"> 711 <term><command>moc -qt5</command></term>631 <term><command>moc</command></term> 712 632 <listitem> 713 633 <para> … … 715 635 </para> 716 636 <indexterm zone="qt5 moc-qt5"> 717 <primary sortas="b-moc-qt5">moc -qt5</primary>637 <primary sortas="b-moc-qt5">moc</primary> 718 638 </indexterm> 719 639 </listitem> … … 721 641 722 642 <varlistentry id="pixeltool-qt5"> 723 <term><command>pixeltool -qt5</command></term>643 <term><command>pixeltool</command></term> 724 644 <listitem> 725 645 <para> … … 728 648 </para> 729 649 <indexterm zone="qt5 pixeltool-qt5"> 730 <primary sortas="b-pixeltool-qt5">pixeltool -qt5</primary>650 <primary sortas="b-pixeltool-qt5">pixeltool</primary> 731 651 </indexterm> 732 652 </listitem> … … 734 654 735 655 <varlistentry id="qmake-qt5"> 736 <term><command>qmake -qt5</command></term>656 <term><command>qmake</command></term> 737 657 <listitem> 738 658 <para> … … 742 662 </para> 743 663 <indexterm zone="qt5 qmake-qt5"> 744 <primary sortas="b-qmake-qt5">qmake -qt5</primary>664 <primary sortas="b-qmake-qt5">qmake</primary> 745 665 </indexterm> 746 666 </listitem> … … 748 668 749 669 <varlistentry id="rcc-qt5"> 750 <term><command>rcc -qt5</command></term>670 <term><command>rcc</command></term> 751 671 <listitem> 752 672 <para> … … 754 674 </para> 755 675 <indexterm zone="qt5 rcc-qt5"> 756 <primary sortas="b-rcc-qt5">rcc -qt5</primary>676 <primary sortas="b-rcc-qt5">rcc</primary> 757 677 </indexterm> 758 678 </listitem> … … 760 680 761 681 <varlistentry id="uic-qt5"> 762 <term><command>uic -qt5</command></term>682 <term><command>uic</command></term> 763 683 <listitem> 764 684 <para> … … 766 686 </para> 767 687 <indexterm zone="qt5 uic-qt5"> 768 <primary sortas="b-uic-qt5">uic -qt5</primary>688 <primary sortas="b-uic-qt5">uic</primary> 769 689 </indexterm> 770 690 </listitem>
Note:
See TracChangeset
for help on using the changeset viewer.