Changeset c65ac49d
- Timestamp:
- 07/24/2014 02:37:27 PM (10 years ago)
- Branches:
- 7.6-blfs, 7.6-systemd, kde5-14269, kde5-14686, systemd-13485
- Children:
- 23f5584
- Parents:
- 061d252
- Location:
- x/lib
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
x/lib/colord-gtk-systemd.xml
r061d252 rc65ac49d 153 153 </seg> 154 154 <seg> 155 /usr/ share/gtk-doc/html/colord-gtk,156 /usr/ include/colord-1/colord-gtk155 /usr/include/colord-1/colord-gtk and 156 /usr/share/gtk-doc/html/colord-gtk 157 157 </seg> 158 158 </seglistitem> -
x/lib/lib.xml
r061d252 rc65ac49d 55 55 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pango.xml"/> 56 56 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pangomm.xml"/> 57 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qt4 .xml"/>57 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qt4-systemd.xml"/> 58 58 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qt5-systemd.xml"/> 59 59 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="startup-notification.xml"/> -
x/lib/qt4-systemd.xml
r061d252 rc65ac49d 29 29 30 30 <sect2 role="package"> 31 <title>Introduction to Qt </title>32 33 <para> 34 <application>Qt </application> is a cross-platform application31 <title>Introduction to Qt4</title> 32 33 <para> 34 <application>Qt4</application> is a cross-platform application 35 35 framework that is widely used for developing application software 36 with a graphical user interface (GUI) (in which cases Qt is classified 37 as a widget toolkit), and also used for developing non-GUI programs such 38 as command-line tools and consoles for servers. One of the major users 39 of <application>Qt</application> is <application>KDE</application>. 36 with a graphical user interface (GUI) (in which cases 37 <application>Qt4</application> is classifiedas a widget toolkit), and 38 also used for developing non-GUI programs such as command-line tools 39 and consoles for servers. One of the major users 40 of <application>Qt4</application> is <application>KDE</application>. 40 41 </para> 41 42 … … 76 77 </itemizedlist> 77 78 78 <bridgehead renderas="sect3">Qt Dependencies</bridgehead>79 <bridgehead renderas="sect3">Qt4 Dependencies</bridgehead> 79 80 80 81 <bridgehead renderas="sect4">Required</bridgehead> … … 110 111 </para> 111 112 113 <bridgehead renderas="sect4">Runtime Dependency</bridgehead> 114 <para role="optional"> 115 <xref linkend="qtchooser"/> (required if installing both 116 Qt4 and Qt5) 117 </para> 118 112 119 <para condition="html" role="usernotes">User Notes: 113 120 <ulink url="&blfs-wiki;/qt4"/> … … 115 122 </sect2> 116 123 117 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../../xincludes/qt-alternatives.xml"/> 124 125 <sect2 role="qt4-prefix"> 126 <title>Setting the installation prefix</title> 127 128 <bridgehead renderas="sect3">Installing in /usr</bridgehead> 129 130 <para> 131 If you want to install <application>Qt4</application> 132 in <filename class="directory">/usr</filename>, set the 133 following environment variable: 134 </para> 135 136 <screen><userinput>export QT4PREFIX=/usr</userinput></screen> 137 138 <para> 139 The advantage of installing in 140 <filename class="directory">/usr</filename> is that no additional 141 configuration is required. The package files are distributed 142 within several subdirectories of the 143 <filename class="directory">/usr</filename> hierarchy. This is 144 the method that most distributions use. The disadvantage for BLFS 145 users is that this <application>Qt4</application> instance cannot 146 be upgraded while it is in use. It also does not allow reverting 147 to an existing, known working instance of 148 <application>Qt4</application>. 149 </para> 150 151 <bridgehead renderas="sect3">Installing in /opt/qt4</bridgehead> 152 153 <para> 154 If you want to install <application>Qt4</application> 155 in a directory other than <filename 156 class="directory">/usr</filename>, ie 157 <filename class="directory">/opt/qt4</filename>, set 158 the following environment variable: 159 </para> 160 161 <screen><userinput>export QT4PREFIX=/opt/qt4</userinput></screen> 162 163 <para> 164 The advantage of installing <application>Qt4</application> in a 165 custom directory such as <filename 166 class="directory">/opt/qt4</filename> is that it keeps all the 167 package files consolidated in a dedicated directory hierarchy. By 168 using this method, an update can be made without overwriting a 169 previous installation and users can easily revert to a previous 170 version by changing one symbolic link or merely changing the 171 PATH variable. 172 </para> 173 174 </sect2> 175 176 <sect2 role="qt4-multi-install"> 177 <title>Dealing with multiple Qt versions</title> 178 179 <para> 180 Both <application>Qt4</application> and 181 <application>Qt5</application> executables have 182 the same names and will overwrite each other if 183 they are installed in the same prefix. To overcome 184 such problem, BLFS offers <xref linkend="qtchooser"/>, 185 an utility used to switch between different 186 <application>Qt</application> versions. 187 </para> 188 189 <para> 190 If <xref linkend="qtchooser"/> is to be used or 191 if installing both <application>Qt4</application> 192 and <application>Qt5</application> in 193 <filename class="directory">/usr</filename>, the 194 executables need to be installed to a non-standard 195 location in order to avoid the conflict with 196 <application>Qt5</application> ones. To accomplish 197 that, set the following environment variable: 198 </para> 199 200 <screen><userinput>export QT4BINDIR=$QT4PREFIX/lib/qt4/bin</userinput></screen> 201 202 <para> 203 If you choose not to install <xref linkend="qtchooser"/> 204 or if you are not going to install 205 <application>Qt5</application>, simply set the bindir to 206 a <filename class="directory">bin</filename> subdir of the 207 default prefix by setting the following environment variable: 208 </para> 209 210 <screen><userinput>export QT4BINDIR=$QT4PREFIX/bin</userinput></screen> 211 212 </sect2> 118 213 119 214 <sect2 role="installation"> 120 <title>Installation of Qt </title>215 <title>Installation of Qt4</title> 121 216 122 217 <caution> … … 155 250 src/gui/image/qgifhandler.cpp</userinput></screen> 156 251 157 <!-- ==== Method 1 ====== --> 158 <bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead> 159 160 <para> 161 Install <application>Qt4</application> into the <filename 162 class='directory'>/usr</filename> hierarchy by running the following 163 commands: 164 </para> 165 166 <screen><userinput>export QT4LINK=/usr 167 168 sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \ 252 <para> 253 Install <application>Qt4</application> by running the 254 following commands: 255 </para> 256 257 <screen><userinput>sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \ 169 258 config.tests/unix/libmng/libmng.cpp && 170 259 … … 172 261 src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro && 173 262 174 ./configure -prefix /usr\175 - bindir /usr/bin\176 - plugindir /usr/lib/qt4/plugins\177 - importdir /usr/lib/qt4/imports\178 - headerdir /usr/include/qt4\179 - datadir /usr/share/qt4\180 - sysconfdir /etc/xdg\181 -docdir /usr/share/doc/qt4\182 - demosdir /usr/share/doc/qt4/demos\183 - examplesdir /usr/share/doc/qt4/examples\184 - translationdir /usr/share/qt4/translations \263 ./configure -prefix $QT4PREFIX \ 264 -sysconfdir /etc/xdg \ 265 -bindir $QT4BINDIR \ 266 -plugindir $QT4PREFIX/lib/qt4/plugins \ 267 -importdir $QT4PREFIX/lib/qt4/imports \ 268 -headerdir $QT4PREFIX/include/qt4 \ 269 -datadir $QT4PREFIX/share/qt4 \ 270 -docdir $QT4PREFIX/share/doc/qt4 \ 271 -translationdir $QT4PREFIX/share/qt4/translations \ 272 -demosdir $QT4PREFIX/share/doc/qt4/demos \ 273 -examplesdir $QT4PREFIX/share/doc/qt4/examples \ 185 274 -confirm-license \ 186 275 -opensource \ … … 191 280 -no-phonon \ 192 281 -no-phonon-backend \ 193 -no-nis \194 282 -no-openvg \ 195 283 -nomake demos \ … … 211 299 <screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen> 212 300 213 <para>Now as the <systemitem class="username">root</systemitem> user:</para> 301 <warning> 302 <para> 303 Make sure that <envar>QT4PREFIX</envar> and <envar>QT4BINDIR</envar> 304 environment variables are set for the 305 <systemitem class="username">root</systemitem> user too. 306 </para> 307 </warning> 308 309 <para> 310 Now, as the <systemitem class="username">root</systemitem> user: 311 </para> 214 312 215 313 <screen role="root"><userinput>make install && 216 rm -rf /usr/tests</userinput></screen>314 rm -rf $QT4PREFIX/tests</userinput></screen> 217 315 218 316 <para> … … 226 324 ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml phonon; do 227 325 228 [ -e /usr/lib/libQt${file}.prl ] &&326 [ -e $QT4PREFIX/lib/libQt${file}.prl ] && 229 327 sed -r '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' \ 230 -i /usr/lib/libQt${file}.prl328 -i $QT4PREFIX/lib/libQt${file}.prl 231 329 done 232 330 unset file</userinput></screen> 233 331 234 <!-- ==== Method 2 ====== --> 235 <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt4-version;</bridgehead> 236 237 <para> 238 This section provides for installing Qt4 almost all of the files in the 239 <filename class="directory">/opt</filename> directory. 240 </para> 241 242 <screen><userinput>export QT4DIR=/opt/qt-&qt4-version; && 243 export QT4LINK=/opt/qt4 && 244 245 sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \ 246 config.tests/unix/libmng/libmng.cpp && 247 248 sed -i '/CONFIG -/ a\isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../..' \ 249 src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro && 250 251 ./configure -prefix $QT4DIR \ 252 -sysconfdir /etc/xdg \ 253 -confirm-license \ 254 -opensource \ 255 -release \ 256 -dbus-linked \ 257 -openssl-linked \ 258 -system-sqlite \ 259 -plugin-sql-sqlite \ 260 -no-phonon \ 261 -no-phonon-backend \ 262 -no-nis \ 263 -no-openvg \ 264 -nomake demos \ 265 -nomake examples \ 266 -optimized-qmake && 267 268 make</userinput></screen> 269 270 <para> 271 Now, as the <systemitem class="username">root</systemitem> user: 272 </para> 273 274 <screen role="root"><userinput>make install 275 ln -svfn $QT4DIR /opt/qt4</userinput></screen> 276 277 <para> 278 Remove references to the build directory from installed files by 279 running the following command as the 280 <systemitem class="username">root</systemitem> user: 281 </para> 282 283 <screen role="root"><userinput>for file in `basename -a -s .prl $QT4DIR/lib/lib*.prl`; do 284 sed -r -e '/^QMAKE_PRL_BUILD_DIR/d' \ 285 -e 's/(QMAKE_PRL_LIBS =).*/\1/' \ 286 -i $QT4DIR/lib/${file}.prl 287 288 perl -pi -e "s, -L$PWD/?\S+,,g" $QT4DIR/lib/pkgconfig/${file##lib}.pc 289 done 290 291 unset file</userinput></screen> 292 293 <!-- ==== Common ====== --> 294 <bridgehead renderas="sect3">Continuing for Both Methods</bridgehead> 295 296 <para> 297 For all methods, install images and create the menu entries 298 for installed applications. Be sure that the <envar>QT4LINK</envar> 299 variable is defined in root's environment and 300 as the <systemitem class="username">root</systemitem> user: 301 </para> 332 <para> 333 Install images and create the menu entries for installed 334 applications by running the following commands 335 as the <systemitem class="username">root</systemitem> user: 336 </para> 302 337 303 338 <screen role="root"><userinput>install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \ 304 /usr/share/pixmaps/qt4logo.png 339 /usr/share/pixmaps/qt4logo.png && 305 340 306 341 install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \ … … 308 343 309 344 install -v -Dm644 tools/designer/src/designer/images/designer.png \ 310 /usr/share/pixmaps/designer-qt4.png 345 /usr/share/pixmaps/designer-qt4.png && 311 346 312 347 install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \ 313 /usr/share/pixmaps/linguist-qt4.png 348 /usr/share/pixmaps/linguist-qt4.png && 314 349 315 350 install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \ 316 351 /usr/share/pixmaps/qdbusviewer-qt4.png && 317 352 318 install - dm755 /usr/share/applications &&353 install -v -dm755 /usr/share/applications && 319 354 320 355 cat > /usr/share/applications/assistant-qt4.desktop << EOF … … 322 357 Name=Qt4 Assistant 323 358 Comment=Shows Qt4 documentation and examples 324 Exec=$QT4 LINK/bin/assistant359 Exec=$QT4BINDIR/assistant 325 360 Icon=assistant-qt4.png 326 361 Terminal=false … … 334 369 Name=Qt4 Designer 335 370 Comment=Design GUIs for Qt4 applications 336 Exec=$QT4 LINK/bin/designer371 Exec=$QT4BINDIR/designer 337 372 Icon=designer-qt4.png 338 373 MimeType=application/x-designer; … … 347 382 Name=Qt4 Linguist 348 383 Comment=Add translations to Qt4 applications 349 Exec=$QT4 LINK/bin/linguist384 Exec=$QT4BINDIR/linguist 350 385 Icon=linguist-qt4.png 351 386 MimeType=text/vnd.trolltech.linguist;application/x-linguist; … … 361 396 GenericName=D-Bus Debugger 362 397 Comment=Debug D-Bus applications 363 Exec=$QT4 LINK/bin/qdbusviewer398 Exec=$QT4BINDIR/qdbusviewer 364 399 Icon=qdbusviewer-qt4.png 365 400 Terminal=false … … 373 408 Name=Qt4 Config 374 409 Comment=Configure Qt4 behavior, styles, fonts 375 Exec=$QT4 LINK/bin/qtconfig410 Exec=$QT4BINDIR/qtconfig 376 411 Icon=qt4logo.png 377 412 Terminal=false … … 381 416 EOF</userinput></screen> 382 417 418 <para> 419 Some packages look for <application>Qt4</application> executables 420 with <filename>-qt4</filename> suffix. Run the following command 421 as the <systemitem class="username">root</systemitem> user to 422 create the necessary symlinks: 423 </para> 424 425 <screen role="root"><userinput>for file in $QT4BINDIR/*; do 426 ln -sfrv $file /usr/bin/$(basename $file)-qt4 427 done</userinput></screen> 428 383 429 </sect2> 384 430 … … 416 462 <parameter>-system-sqlite</parameter>: This switch enables use 417 463 the system version of <application>SQLite</application>. 418 </para>419 420 <para>421 <parameter>-no-nis</parameter>: This switch disables support422 for Network Information Service (NIS) which has been423 deprecated in recent versions of <application>Glibc</application>.424 464 </para> 425 465 … … 451 491 </para> 452 492 453 <para>454 <option>-no-dbus</option>: Use this switch if you don't have455 <application>D-Bus</application> installed.456 </para>457 458 493 </sect2> 459 494 460 495 <sect2 role="configuration"> 461 <title>Configuring Qt </title>496 <title>Configuring Qt4</title> 462 497 463 498 <sect3 id="qt4-config"> 464 499 <title>Configuration Information</title> 465 500 501 <note> 502 <para> 503 If you have installed <application>Qt4</application> 504 in <filename class="directory">/usr</filename> you 505 can skip this section. 506 </para> 507 </note> 508 466 509 <para> 467 If you installed <application>Qt</application> in /usr, 468 create an environment variable needed by certain packages. 469 As the <systemitem class="username">root</systemitem> user: 510 If you installed <application>Qt4</application> in a location other 511 than <filename class="directory">/usr</filename>, you need to update the 512 following configuration files so that <application>Qt5</application> is 513 correctly found by other packages and system processes. 514 </para> 515 516 <para> 517 As the <systemitem class="username">root</systemitem> user, update 518 the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's 519 run-time cache file: 520 </para> 521 522 <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF 523 <literal># Begin Qt4 addition 524 525 $QT4PREFIX/lib 526 527 # End Qt4 addition</literal> 528 EOF 529 530 ldconfig</userinput></screen> 531 532 <indexterm zone="qt4 qt4-config"> 533 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary> 534 </indexterm> 535 536 <para> 537 If you have installed <xref linkend="qtchooser"/>, create 538 the <filename>/etc/profile.d/qt4.sh</filename> file by 539 running the following command as the 540 <systemitem class="username">root</systemitem> user: 470 541 </para> 471 542 … … 473 544 <literal># Begin /etc/profile.d/qt4.sh 474 545 475 QT4DIR=/usr 476 export QT4DIR 546 pathappend $QT4PREFIX/lib/pkgconfig PKG_CONFIG_PATH 477 547 478 548 # End /etc/profile.d/qt4.sh</literal> 479 549 EOF</userinput></screen> 480 550 481 <para> 482 If you installed <application>Qt</application> in a location other 483 than /usr, you need to update the following configuration files so 484 that <application>Qt</application> is correctly found by other packages 485 and system processes.</para> 486 487 <para>As the <systemitem class="username">root</systemitem> user, update 488 the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's 489 run-time cache file: 490 </para> 491 492 <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF 493 <literal># Begin Qt addition 494 495 /opt/qt4/lib 496 497 # End Qt addition</literal> 498 EOF 499 500 ldconfig</userinput></screen> 501 502 <indexterm zone="qt4 qt4-config"> 503 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary> 504 </indexterm> 505 506 <para> 507 As the <systemitem class="username">root</systemitem> user, create 508 the <filename>/etc/profile.d/qt4.sh</filename> file: 509 </para> 510 551 <para> 552 If you have not installed <xref linkend="qtchooser"/>, 553 create the <filename>/etc/profile.d/qt4.sh</filename> 554 file by running the following command as the 555 <systemitem class="username">root</systemitem> user: 556 </para> 557 511 558 <screen role="root"><userinput>cat > /etc/profile.d/qt4.sh << EOF 512 559 <literal># Begin /etc/profile.d/qt4.sh 513 514 QT4DIR=/opt/qt4 515 516 pathappend /opt/qt4/bin PATH 517 pathappend /opt/qt4/lib/pkgconfig PKG_CONFIG_PATH 518 519 export QT4DIR 520 560 561 pathappend $QT4BINDIR PATH 562 pathappend $QT4PREFIX/lib/pkgconfig PKG_CONFIG_PATH 563 521 564 # End /etc/profile.d/qt4.sh</literal> 522 565 EOF</userinput></screen> 523 566 567 <note> 568 <para> 569 If <xref linkend="qtchooser"/> is not installed and you 570 also have <application>Qt5</application> installed, 571 you will need to manually adjust the <envar>PATH</envar> 572 variable depending on which <application>Qt</application> 573 version is needed. 574 </para> 575 </note> 524 576 525 577 </sect3> 526 527 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 528 href="../../xincludes/setqt.xml"/> 578 529 579 </sect2> 530 580 … … 557 607 </seg> 558 608 <seg> 559 /usr/include/qt4, 560 /usr/lib/qt4, 561 /usr/share/doc/qt4, and 562 /usr/share/qt4 563 OR 564 /opt/qt4 and 565 /opt/qt-&qt4-version; 609 $QT4PREFIX/include/qt4, 610 $QT4PREFIX/lib/qt4, 611 $QT4PREFIX/share/doc/qt4, and 612 $QT4PREFIX/share/qt4 566 613 </seg> 567 614 </seglistitem> -
x/lib/qt5-systemd.xml
r061d252 rc65ac49d 98 98 <xref linkend="gst-plugins-base"/>, 99 99 <xref linkend="harfbuzz"/>, 100 <xref linkend="icu"/> ( required for QtWebKit),100 <xref linkend="icu"/> (unicode support, also required for QtWebKit), 101 101 <xref linkend="libjpeg"/>, 102 102 <xref linkend="libmng"/>, … … 106 106 <xref linkend="openssl"/>, 107 107 <xref linkend="pcre"/>, 108 <xref linkend=" sqlite"/>and109 <xref linkend=" ruby"/> (required for QtWebKit)108 <xref linkend="ruby"/> (required for QtWebKit), and 109 <xref linkend="sqlite"/> 110 110 </para> 111 111 … … 134 134 </sect2> 135 135 136 <sect2 role="qt prefix">136 <sect2 role="qt5-prefix"> 137 137 <title>Setting the installation prefix</title> 138 138 … … 154 154 <filename class="directory">/usr</filename> hierarchy. This is 155 155 the method that most distributions use. The disadvantage for BLFS 156 users is that this <application>Qt </application> instance cannot156 users is that this <application>Qt5</application> instance cannot 157 157 be upgraded while it is in use. It also does not allow reverting 158 158 to an existing, known working instance of … … 185 185 </sect2> 186 186 187 <sect2 role=" multi-install">187 <sect2 role="qt5-multi-install"> 188 188 <title>Dealing with multiple Qt versions</title> 189 189 … … 313 313 </para> 314 314 315 <screen role="root"><userinput>install -v -dm755 /usr/share/pixmaps && 316 317 install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \ 315 <screen role="root"><userinput>install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \ 318 316 /usr/share/pixmaps/assistant-qt5.png && 319 317 … … 521 519 <note> 522 520 <para> 523 If you also have <application>Qt4</application> installed, 521 If <xref linkend="qtchooser"/> is not installed and you 522 also have <application>Qt4</application> installed, 524 523 you will need to manually adjust the <envar>PATH</envar> 525 524 variable depending on which <application>Qt</application>
Note:
See TracChangeset
for help on using the changeset viewer.