- Timestamp:
- 08/24/2013 01:12:18 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:
- 2a33982
- Parents:
- 779ed51
- Location:
- x
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
x/installing/x7driver.xml
r779ed51 ra7eaa89 161 161 </sect3> 162 162 163 <sect3 id="hw-video-acceleration">164 <title>Hardware Video Acceleration</title>165 166 <itemizedlist spacing="compact">167 <listitem>168 <para>169 <xref linkend="libva"/>170 </para>171 </listitem>172 <listitem>173 <para>174 <xref linkend="libvdpau"/>175 </para>176 </listitem>177 </itemizedlist>178 179 </sect3>180 181 163 </sect2> 182 164 … … 238 220 href="x7driver-vmware.xml"/> 239 221 240 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"241 href="libva.xml"/>242 243 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"244 href="libvdpau.xml"/>245 246 222 </sect1> -
x/lib/qt4.xml
r779ed51 ra7eaa89 40 40 </para> 41 41 42 &lfs7 4_checked;42 &lfs73_checked; 43 43 44 44 <bridgehead renderas="sect3">Package Information</bridgehead> … … 80 80 <bridgehead renderas="sect4">Required</bridgehead> 81 81 <para role="required"> 82 <xref linkend="alsa-lib"/> and 83 <xref linkend="mesalib"/> 82 <xref linkend="alsa-lib"/>, 83 <xref linkend="mesalib"/> and 84 <xref linkend="qtchooser"/> 84 85 </para> 85 86 … … 94 95 <xref linkend="libpng"/>, 95 96 <xref linkend="libtiff"/>, 96 <xref linkend="openssl"/> ,and97 <xref linkend="openssl"/> and 97 98 <xref linkend="sqlite"/> 98 99 </para> … … 105 106 <xref linkend="mysql"/>, 106 107 <xref linkend="postgresql"/>, 107 <xref linkend="pulseaudio"/>, 108 <xref linkend="qtchooser"/> (if also installing Qt5), and 108 <xref linkend="pulseaudio"/> and 109 109 <xref linkend="unixodbc"/> 110 110 </para> … … 118 118 <title>Installation of Qt</title> 119 119 120 <para> 121 122 There are several ways to install a complicated package such as 123 <application>Qt</application>. The files are not completely position 124 independent. Installation procedures execute the program 125 <command>pkg-config</command> to determine the location of package 126 executables, libraries, headers, and other files. For 127 <application>Qt</application>, <command>pkg-config</command> will look 128 for the appropriate <filename>lib/pkgconfig/Qt*.pc</filename> files 129 which must be modified if relocating the package. These files are set up 130 correctly by the build process. 131 </para> 132 133 <para> 134 The default installation places the files in <filename 135 class='directory'>/usr/local/qt/</filename>. Many commercial 136 distributions place the files in the system's <filename 137 class='directory'>/usr</filename> hierarchy. The package can also be 138 installed in an arbitrary directory. 139 </para> 140 141 <para> 142 The advantage of installing in <filename 143 class='directory'>/usr</filename> is that no updates to the 144 <filename>/etc/ld.so.conf</filename> or 145 <filename>/etc/man_db.conf</filename> files are required. The package 146 files are distributed within several subdirectories of the <filename 147 class='directory'>/usr</filename> hierarchy. This is the method that 148 most commercial distributions use. It is also supported by the 149 optional <application>qtchooser</application> application. 150 </para> 151 152 <para> 153 The advantage of installing <application>Qt4</application> in a custom 154 directory such as <filename 155 class='directory'>/opt/qt-&qt4-version;</filename> is that it keeps all 156 the package files consolidated in a dedicated directory hierarchy. By 157 using this method, an update can be made without overwriting a previous 158 installation and users can easily revert to a previous version by 159 changing one symbolic link or merely changing the PATH variable. It 160 also allows a developer to maintain multiple versions of 161 <application>Qt4</application> for testing. 162 </para> 163 164 <warning> 120 <warning> 165 121 <para> 166 122 If you did not install some of the recommended dependencies, examine … … 172 128 <caution> 173 129 <para> 174 If <application>Qt</application> is being reinstalled into the 175 same directory as an existing instance, run the 130 If <application>Qt</application> is being reinstalled, run the 176 131 following commands from a console or non-Qt based window manager. 177 132 It overwrites <application>Qt</application> libraries that should … … 189 144 </note> 190 145 191 <bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead>192 193 146 <para> 194 147 Install <application>Qt</application> by running the … … 199 152 config.tests/unix/libmng/libmng.cpp && 200 153 201 ./configure -prefix /usr \ 202 -bindir /usr/lib/qt4/bin \ 203 -plugindir /usr/lib/qt4/plugins \ 204 -importdir /usr/lib/qt4/imports \ 205 -headerdir /usr/include/qt4 \ 206 -datadir /usr/share/qt4 \ 207 -sysconfdir /etc/xdg \ 208 -docdir /usr/share/doc/qt4 \ 209 -demosdir /usr/share/doc/qt4/demos \ 210 -examplesdir /usr/share/doc/qt4/examples \ 154 ./configure -confirm-license \ 155 -opensource \ 156 -release \ 157 -prefix /usr \ 158 -bindir /usr/lib/qt4/bin \ 159 -headerdir /usr/include/qt4 \ 160 -datadir /usr/share/qt4 \ 161 -plugindir /usr/lib/qt4/plugins \ 162 -importdir /usr/lib/qt4/imports \ 211 163 -translationdir /usr/share/qt4/translations \ 212 -confirm-license \ 213 -opensource \ 214 -release \ 215 -dbus-linked \ 216 -openssl-linked \ 217 -system-sqlite \ 218 -no-phonon \ 164 -sysconfdir /etc/xdg \ 165 -docdir /usr/share/doc/qt4 \ 166 -demosdir /usr/share/doc/qt4/demos \ 167 -examplesdir /usr/share/doc/qt4/examples \ 168 -dbus-linked \ 169 -openssl-linked \ 170 -system-sqlite \ 171 -no-phonon \ 219 172 -no-phonon-backend \ 220 -no-nis \ 221 -no-openvg \ 222 -nomake demos \ 223 -nomake examples \ 224 -optimized-qmake && 225 173 -no-nis \ 174 -no-openvg \ 175 -nomake demos \ 176 -nomake examples \ 177 -optimized-qmake && 226 178 make</userinput></screen> 227 179 … … 237 189 rm -rf /usr/tests && 238 190 install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \ 239 /usr/share/pixmaps/qt4logo.png 191 /usr/share/pixmaps/qt4logo.png && 240 192 install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \ 241 193 /usr/share/pixmaps/assistant-qt4.png && 242 194 install -v -Dm644 tools/designer/src/designer/images/designer.png \ 243 /usr/share/pixmaps/designer-qt4.png 195 /usr/share/pixmaps/designer-qt4.png && 244 196 install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \ 245 /usr/share/pixmaps/linguist-qt4.png 197 /usr/share/pixmaps/linguist-qt4.png && 246 198 install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \ 247 199 /usr/share/pixmaps/qdbusviewer-qt4.png</userinput></screen> … … 275 227 done</userinput></screen> 276 228 277 <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt4-version;</bridgehead>278 279 <para>280 Install <application>Qt</application> in /opt/qt-&qt4-version;281 by running the following commands:282 </para>283 284 <screen><userinput>sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \285 config.tests/unix/libmng/libmng.cpp &&286 287 export QTDIR=/opt/qt-&qt4-version;288 289 ./configure -prefix $QTDIR \290 -sysconfdir /etc/xdg \291 -confirm-license \292 -opensource \293 -release \294 -dbus-linked \295 -openssl-linked \296 -system-sqlite \297 -plugin-sql-sqlite \298 -no-phonon \299 -no-phonon-backend \300 -no-nis \301 -no-openvg \302 -nomake demos \303 -nomake examples \304 -optimized-qmake &&305 306 make</userinput></screen>307 308 <para>309 Now, as the <systemitem class="username">root</systemitem> user:310 </para>311 312 <screen role="root"><userinput>make install &&313 ln -svfn qt-$VERSION /opt/qt &&314 315 install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \316 /usr/share/pixmaps/qt4logo.png &&317 install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \318 /usr/share/pixmaps/assistant-qt4.png &&319 install -v -Dm644 tools/designer/src/designer/images/designer.png \320 /usr/share/pixmaps/designer-qt4.png &&321 install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \322 /usr/share/pixmaps/linguist-qt4.png &&323 install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \324 /usr/share/pixmaps/qdbusviewer-qt4.png</userinput></screen>325 326 <para>327 Remove references to the build directory from installed files by328 running the following command as the329 <systemitem class="username">root</systemitem> user:330 </para>331 332 <screen role="root"><userinput>for file in 3Support CLucene Core DBus Declarative DesignerComponents \333 Designer Gui Help Multimedia Network OpenGL Script \334 ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml; do335 sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' \336 $QTDIR/lib/libQt${file}.prl337 perl -pi -e "s, -L$PWD/?\S+,,g" $QTDIR/lib/pkgconfig/Qt${file}.pc338 done339 340 unset file</userinput></screen>341 342 229 </sect2> 343 230 … … 418 305 419 306 <para> 420 If you installed <application>Qt</application> in /usr, 421 create an environment variable needed by certain packages. 307 Create an environment variable needed by certain packages. 422 308 As the <systemitem class="username">root</systemitem> user: 423 309 </para> … … 433 319 EOF</userinput></screen> 434 320 435 <para>436 If you installed <application>Qt</application> in a location other437 than /usr, you need to update the following configuration files so438 that <application>Qt</application> is correctly found by other packages439 and system processes.</para>440 441 <para>As the <systemitem class="username">root</systemitem> user, update442 the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's443 run-time cache file:444 </para>445 446 <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF447 <literal># Begin Qt addition448 449 /opt/qt/lib450 451 # End Qt addition</literal>452 EOF453 454 ldconfig</userinput></screen>455 456 <indexterm zone="qt4 qtconfig-qt4">457 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>458 </indexterm>459 460 <para>461 As the <systemitem class="username">root</systemitem> user, create462 the <filename>/etc/profile.d/qt.sh</filename> file:463 </para>464 465 <screen role="root"><userinput>cat > /etc/profile.d/qt.sh << EOF466 <literal># Begin /etc/profile.d/qt.sh467 468 QTDIR=/opt/qt469 470 pathappend /opt/qt/bin PATH471 pathappend /opt/qt/lib/pkgconfig PKG_CONFIG_PATH472 473 export QTDIR474 475 # End /etc/profile.d/qt.sh</literal>476 EOF</userinput></screen>477 478 321 <para> 479 For all methods,Create the menu entries for installed applications.322 Create the menu entries for installed applications. 480 323 As the <systemitem class="username">root</systemitem> user: 481 324 </para> 482 325 483 326 <screen role="root"><userinput>install -dm755 /usr/share/applications 484 485 327 cat > /usr/share/applications/qtconfig-qt4.desktop << "EOF" 486 328 <literal>[Desktop Entry] … … 494 336 Categories=Qt;Settings;</literal> 495 337 EOF 496 497 338 cat > /usr/share/applications/assistant-qt4.desktop << "EOF" 498 339 <literal>[Desktop Entry] … … 506 347 Categories=Qt;Development;Documentation;</literal> 507 348 EOF 508 509 349 cat > /usr/share/applications/designer-qt4.desktop << "EOF" 510 350 <literal>[Desktop Entry] … … 519 359 Categories=Qt;Development;</literal> 520 360 EOF 521 522 361 cat > /usr/share/applications/linguist-qt4.desktop << "EOF" 523 362 <literal>[Desktop Entry] … … 532 371 Categories=Qt;Development;</literal> 533 372 EOF 534 535 373 cat > /usr/share/applications/qdbusviewer-qt4.desktop << "EOF" 536 374 <literal>[Desktop Entry] … … 579 417 /usr/include/qt4, 580 418 /usr/lib/qt4, 581 /usr/share/doc/qt4 ,and582 /usr/share/qt4 (OR $QTDIR)419 /usr/share/doc/qt4 and 420 /usr/share/qt4 583 421 </seg> 584 422 </seglistitem>
Note:
See TracChangeset
for help on using the changeset viewer.