Changeset 1b0d0188 for x/lib/qt4.xml
- Timestamp:
- 06/24/2015 09:55:25 PM (9 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 8e6f4f8
- Parents:
- 233a4949
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
x/lib/qt4.xml
r233a4949 r1b0d0188 5 5 %general-entities; 6 6 7 <!ENTITY qt4-major "4.8"> 8 <!ENTITY qt4-url "http://download.qt-project.org/official_releases/qt/&qt4-major;"> 9 7 10 <!ENTITY qt4-download-http 8 " http://download.qt-project.org/official_releases/qt/4.8/&qt4-version;/qt-everywhere-opensource-src-&qt4-version;.tar.gz">11 "&qt4-url;;/&qt4-version;/qt-everywhere-opensource-src-&qt4-version;.tar.gz"> 9 12 <!ENTITY qt4-download-ftp " "> 10 13 <!ENTITY qt4-md5sum "d990ee66bf7ab0c785589776f35ba6ad"> … … 29 32 30 33 <sect2 role="package"> 31 <title>Introduction to Qt </title>32 33 <para> 34 <application>Qt </application> is a cross-platform application35 framework that is widely used for developing application software36 with a graphical user interface (GUI) (in which cases Qt is classified37 as a widget toolkit), and also used for developing non-GUI programs such38 as command-line tools and consoles for servers. One of the major users39 of <application>Qt</application> is <application>KDE</application>.34 <title>Introduction to Qt4</title> 35 36 <para> 37 <application>Qt4</application> is a cross-platform application framework 38 that is widely used for developing application software with a graphical 39 user interface (GUI) (in which cases Qt4 is classified as a widget 40 toolkit), and also used for developing non-GUI programs such as 41 command-line tools and consoles for servers. One of the major users of 42 <application>Qt</application> is <application>KDE4</application>. 40 43 </para> 41 44 … … 115 118 </sect2> 116 119 117 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../../xincludes/qt-alternatives.xml"/> 120 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 121 href="../../xincludes/qt-alternatives.xml"/> 118 122 119 123 <sect2 role="qt4-prefix"> 120 124 <title>Setting the installation prefix</title> 121 125 122 <bridgehead renderas="sect3">Installing in /usr</bridgehead> 123 124 <para> 125 If you want to install <application>Qt4</application> 126 in <filename class="directory">/usr</filename>, set the 126 <bridgehead renderas="sect3">Installing in /opt/qt4</bridgehead> 127 128 <para> 129 The BLFS editors recommend installing <application>Qt4</application> in a 130 directory other than <filename class="directory">/usr</filename>, ie 131 <filename class="directory">/opt/qt4</filename>. To do this, set the 127 132 following environment variable: 128 </para>129 130 <screen><userinput>export QT4PREFIX=/usr</userinput></screen>131 132 <bridgehead renderas="sect3">Installing in /opt/qt4</bridgehead>133 134 <para>135 If you want to install <application>Qt4</application>136 in a directory other than <filename137 class="directory">/usr</filename>, ie138 <filename class="directory">/opt/qt4</filename>, set139 the following environment variable:140 133 </para> 141 134 … … 167 160 168 161 <sect2 role="installation"> 169 <title>Installation of Qt</title> 170 171 <caution> 172 <para> 173 If you did not install some of the recommended dependencies, examine 174 <command>./configure --help</command> output to check how to disable 175 them or use internal versions bundled in the source tarball. 176 </para> 177 </caution> 162 <title>Installation of Qt4</title> 178 163 179 164 <warning> … … 188 173 </warning> 189 174 175 <caution> 176 <para> 177 If you did not install some of the recommended dependencies, examine 178 <command>./configure --help</command> output to check how to disable 179 them or use internal versions bundled in the source tarball. 180 </para> 181 </caution> 182 190 183 <note> 191 184 <para> 192 185 The build time and space required for the full 193 <application>Qt </application> is quite long. The instructions below194 donot build the tutorials and examples. Removing the186 <application>Qt3</application> is quite long. The instructions below do 187 not build the tutorials and examples. Removing the 195 188 <parameter>-nomake</parameter> lines will create a complete build. 196 189 </para> 197 190 </note> 198 191 199 <para> 200 Install <application>Qt4</application> into the <filename 201 class='directory'>/usr</filename> hierarchy by running the following 202 commands: 203 </para> 204 205 <screen><userinput>./configure -prefix $QT4PREFIX \ 206 -sysconfdir /etc/xdg \ 207 -bindir $QT4BINDIR \ 208 -plugindir $QT4PREFIX/lib/qt4/plugins \ 209 -importdir $QT4PREFIX/lib/qt4/imports \ 210 -headerdir $QT4PREFIX/include/qt4 \ 211 -datadir $QT4PREFIX/share/qt4 \ 212 -docdir $QT4PREFIX/share/doc/qt4 \ 213 -translationdir $QT4PREFIX/share/qt4/translations \ 214 -demosdir $QT4PREFIX/share/doc/qt4/demos \ 215 -examplesdir $QT4PREFIX/share/doc/qt4/examples \ 216 -confirm-license \ 217 -opensource \ 218 -release \ 219 -dbus-linked \ 220 -openssl-linked \ 221 -system-sqlite \ 222 -no-phonon \ 223 -no-phonon-backend \ 224 -no-openvg \ 225 -nomake demos \ 226 -nomake examples \ 227 -optimized-qmake && 228 192 <note> 193 <para> 194 The BLFS editors do not recommend installing <application>Qt4</application> 195 into the /usr hierarchy because it becomes difficult to find 196 components and to update to a new version. If you do want to install 197 <application>Qt4</application> in /usr, the directories need to 198 be specified explicitly. In this case, set QT4PREFIX=/usr and add 199 the following to the configure arguments below:</para> 200 201 <screen><userinput>-bindir /usr/bin/qt4 \ 202 -plugindir /usr/lib/qt4/plugins \ 203 -importdir /usr/lib/qt4/imports \ 204 -headerdir /usr/include/qt4 \ 205 -datadir /usr/share/qt4 \ 206 -docdir /usr/share/doc/qt4 \ 207 -translationdir /usr/share/qt4/translations \ 208 -demosdir /usr/share/doc/qt4/demos \ 209 -examplesdir /usr/share/doc/qt4/examples </userinput></screen> 210 </note> 211 212 <para> 213 Install <application>Qt4</application> by running the following commands: 214 </para> 215 216 <screen><userinput>./configure -prefix $QT4PREFIX \ 217 -sysconfdir /etc/xdg \ 218 -confirm-license \ 219 -opensource \ 220 -release \ 221 -dbus-linked \ 222 -openssl-linked \ 223 -system-sqlite \ 224 -no-phonon \ 225 -no-phonon-backend \ 226 -no-openvg \ 227 -nomake demos \ 228 -nomake examples \ 229 -optimized-qmake && 229 230 make</userinput></screen> 230 231 … … 234 235 235 236 <para> 236 Remove references to the build directory from the 237 Now as the <systemitem class="username">root</systemitem> user: 238 </para> 239 240 <screen role="root"><userinput>make install && 241 rm -rf $QT4PREFIX/tests</userinput></screen> 242 243 <para> 244 Remove references to the build directory from the installed 237 245 <filename class="extension">.pc</filename> files by running 238 246 the following command: 239 247 </para> 240 248 241 <screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen> 242 243 <para>Now as the <systemitem class="username">root</systemitem> user:</para> 244 245 <screen role="root"><userinput>make install && 246 rm -rf /usr/tests</userinput></screen> 247 248 <para> 249 Remove references to the build directory from installed files by 250 running the following command as the 249 <screen><userinput>find $QT4PREFIX/lib/pkgconfig -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen> 250 251 <para> 252 Remove references to the build directory in the installed library dependency 253 (prl) files by running the following command as the 251 254 <systemitem class="username">root</systemitem> user: 252 255 </para> 253 256 254 <screen role="root"><userinput>for file in 3Support CLucene Core DBus Declarative DesignerComponents \ 255 Designer Gui Help Multimedia Network OpenGL Script \ 256 ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml phonon; do 257 258 [ -e /usr/lib/libQt${file}.prl ] && 259 sed -r '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' \ 260 -i /usr/lib/libQt${file}.prl 261 done 262 unset file</userinput></screen> 263 264 <para> 265 Install images and create the menu entries 266 for installed applications. Be sure that the <envar>QT4PREFIX</envar> 267 variable is defined in root's environment and 268 as the <systemitem class="username">root</systemitem> user: 269 </para> 270 271 <screen role="root"><userinput>install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \ 257 <screen role="root"><userinput>for file in $QT4PREFIX/lib/libQt*.prl; do 258 sed -r -e '/^QMAKE_PRL_BUILD_DIR/d' \ 259 -e 's/(QMAKE_PRL_LIBS =).*/\1/' \ 260 -i $file 261 done</userinput></screen> 262 263 <para> 264 Install images and create the menu entries for installed applications. 265 The <envar>QT4BINDIR</envar> variable is used here to point to the 266 directory for the executable programs. If you have changed the bindir 267 above, <envar>QT4BINDIR</envar> will need to be adjusted below. Be sure 268 that the <envar>QT4BINDIR</envar> variable is defined in root's 269 environment and as the <systemitem class="username">root</systemitem> 270 user: 271 </para> 272 273 <screen role="root"><userinput>QT4BINDIR=$QT4PREFIX/bin 274 275 install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \ 272 276 /usr/share/pixmaps/qt4logo.png && 273 277 … … 290 294 Name=Qt4 Assistant 291 295 Comment=Shows Qt4 documentation and examples 292 Exec=$QT4 PREFIX/bin/assistant296 Exec=$QT4BINDIR/assistant 293 297 Icon=assistant-qt4.png 294 298 Terminal=false … … 302 306 Name=Qt4 Designer 303 307 Comment=Design GUIs for Qt4 applications 304 Exec=$QT4 PREFIX/bin/designer308 Exec=$QT4BINDIR/designer 305 309 Icon=designer-qt4.png 306 310 MimeType=application/x-designer; … … 315 319 Name=Qt4 Linguist 316 320 Comment=Add translations to Qt4 applications 317 Exec=$QT4 PREFIX/bin/linguist321 Exec=$QT4BINDIR/linguist 318 322 Icon=linguist-qt4.png 319 323 MimeType=text/vnd.trolltech.linguist;application/x-linguist; … … 329 333 GenericName=D-Bus Debugger 330 334 Comment=Debug D-Bus applications 331 Exec=$QT4 PREFIX/bin/qdbusviewer335 Exec=$QT4BINDIR/qdbusviewer 332 336 Icon=qdbusviewer-qt4.png 333 337 Terminal=false … … 341 345 Name=Qt4 Config 342 346 Comment=Configure Qt4 behavior, styles, fonts 343 Exec=$QT4 PREFIX/bin/qtconfig347 Exec=$QT4BINDIR/qtconfig 344 348 Icon=qt4logo.png 345 349 Terminal=false … … 349 353 EOF</userinput></screen> 350 354 355 <para>Some packages such as <xref linkend='vlc'/> look for certain 356 executables with a -qt4 suffix. Run the following command as the root user 357 to create the necessary symlinks:</para> 358 359 <screen role="root"><userinput>for file in moc uic rcc qmake lconvert lrelease lupdate; do 360 ln -sfrvn $QT4BINDIR/$file /usr/bin/$file-qt4 361 done</userinput></screen> 362 351 363 </sect2> 352 364 … … 436 448 437 449 QT4DIR=/usr 438 export QT4DIR 450 QTDIR=$QT4DIR 451 export QT4DIR QTDIR 439 452 440 453 # End /etc/profile.d/qt4.sh</literal> … … 442 455 443 456 <para> 444 If you installed <application>Qt </application> in a location other457 If you installed <application>Qt4</application> in a location other 445 458 than /usr, you need to update the following configuration files so 446 459 that <application>Qt</application> is correctly found by other packages … … 475 488 476 489 QT4DIR=/opt/qt4 477 478 pathappend /opt/qt4/bin PATH 479 pathappend /opt/qt4/lib/pkgconfig PKG_CONFIG_PATH 480 481 export QT4DIR 490 QTDIR=$QT4DIR 491 492 pathappend $QT4DIR/bin PATH 493 pathappend $QT4DIR/lib/pkgconfig PKG_CONFIG_PATH 494 495 export QT4DIR QTDIR 482 496 483 497 # End /etc/profile.d/qt4.sh</literal>
Note:
See TracChangeset
for help on using the changeset viewer.