Changeset 1b0d0188 for x/lib/qt5.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/qt5.xml
r233a4949 r1b0d0188 4 4 <!ENTITY % general-entities SYSTEM "../../general.ent"> 5 5 %general-entities; 6 7 <!-- Change for new minor releases !!! -->8 6 9 7 <!ENTITY qt5-major "5.4"> … … 36 34 37 35 <para> 38 <application>Qt5</application> is a cross-platform application 39 framework that is widely used for developing application software 40 with a graphical user interface (GUI) (in which cases 41 <application>Qt5</application> is classified as a widget toolkit), and 42 also used for developing non-GUI programs such as command-line tools 43 and consoles for servers. 36 <application>Qt5</application> is a cross-platform application framework 37 that is widely used for developing application software with a graphical 38 user interface (GUI) (in which cases <application>Qt5</application> is 39 classified as a widget toolkit), and also used for developing non-GUI 40 programs such as command-line tools and consoles for servers. One of the 41 major users of <application>Qt</application> is <application>KDE 42 Frameworks 5 (KF5)</application>. 44 43 </para> 45 44 … … 139 138 <title>Setting the installation prefix</title> 140 139 141 <bridgehead renderas="sect3">Installing in /usr</bridgehead> 142 143 <para> 144 If you want to install <application>Qt5</application> 145 in <filename class="directory">/usr</filename>, set the 140 <bridgehead renderas="sect3">Installing in /opt/qt5</bridgehead> 141 142 <para> 143 The BLFS editors recommend installing <application>Qt5</application> in a 144 directory other than <filename class="directory">/usr</filename>, ie 145 <filename class="directory">/opt/qt5</filename>. To do this, set the 146 146 following environment variable: 147 </para>148 149 <screen><userinput>export QT5PREFIX=/usr</userinput></screen>150 151 <bridgehead renderas="sect3">Installing in /opt/qt5</bridgehead>152 153 <para>154 If you want to install <application>Qt5</application> in a directory155 other than <filename class="directory">/usr</filename>, ie <filename156 class="directory">/opt/qt4</filename>, set the following environment157 variable:158 147 </para> 159 148 … … 175 164 <para> 176 165 Later on, you may want to install other versions of 177 <application>Qt 4</application>. To do that, just remove the symlink166 <application>Qt5</application>. To do that, just remove the symlink 178 167 and use <filename class="directory">/opt/qt5</filename> as the 179 168 prefix again. Which version of <application>Qt5</application> you … … 186 175 <sect2 role="installation"> 187 176 <title>Installation of Qt5</title> 188 189 <caution>190 <para>191 If you did not install some of the recommended dependencies, examine192 <command>./configure --help</command> output to check how to disable193 them or use internal versions bundled in the source tarball.194 </para>195 </caution>196 177 197 178 <warning> … … 206 187 </warning> 207 188 208 <para> 209 Install <application>Qt5</application> by running the 210 following commands: 211 </para> 212 213 <screen><userinput>./configure -prefix $QT5PREFIX \ 214 -sysconfdir /etc/xdg \ 215 -bindir $QT5BINDIR \ 216 -headerdir $QT5PREFIX/include/qt5 \ 217 -archdatadir $QT5PREFIX/lib/qt5 \ 218 -datadir $QT5PREFIX/share/qt5 \ 219 -docdir $QT5PREFIX/share/doc/qt5 \ 220 -translationdir $QT5PREFIX/share/qt5/translations \ 221 -examplesdir $QT5PREFIX/share/doc/qt5/examples \ 222 -confirm-license \ 223 -opensource \ 224 -dbus-linked \ 225 -openssl-linked \ 226 -journald \ 227 -system-harfbuzz \ 228 -system-sqlite \ 229 -nomake examples \ 230 -no-rpath \ 231 -optimized-qmake \ 232 -skip qtwebengine && 189 <caution> 190 <para> 191 If you did not install some of the recommended dependencies, examine 192 <command>./configure --help</command> output to check how to disable 193 them or use internal versions bundled in the source tarball. 194 </para> 195 </caution> 196 197 <note> 198 <para> 199 The build time and space required for the full 200 <application>Qt5</application> is quite long. The instructions below 201 do not build the tutorials and examples. Removing the 202 <parameter>-nomake</parameter> line will create a complete build. 203 </para> 204 </note> 205 206 <note> 207 <para> 208 The BLFS editors do not recommend installing <application>Qt5</application> 209 into the /usr hierarchy because it becomes difficult to find 210 components and to update to a new version. If you do want to install 211 <application>Qt5</application> in /usr, the directories need to 212 be specified explicitly. In this case, set QT5PREFIX=/usr and add 213 the following to the configure arguments below:</para> 214 215 <screen><userinput>-bindir /usr/bin/qt4 \ 216 -plugindir /usr/lib/qt5/plugins \ 217 -importdir /usr/lib/qt5/imports \ 218 -headerdir /usr/include/qt5 \ 219 -datadir /usr/share/qt5 \ 220 -docdir /usr/share/doc/qt5 \ 221 -translationdir /usr/share/qt5/translations \ 222 -demosdir /usr/share/doc/qt5/demos \ 223 -examplesdir /usr/share/doc/qt5/examples </userinput></screen> 224 </note> 225 226 <para> 227 Install <application>Qt5</application> by running the following commands: 228 </para> 229 230 <screen><userinput>./configure -prefix $QT5PREFIX \ 231 -sysconfdir /etc/xdg \ 232 -confirm-license \ 233 -opensource \ 234 -dbus-linked \ 235 -openssl-linked \ 236 -journald \ 237 -system-harfbuzz \ 238 -system-sqlite \ 239 -nomake examples \ 240 -no-rpath \ 241 -optimized-qmake \ 242 -skip qtwebengine && 233 243 234 244 make</userinput></screen> … … 239 249 240 250 <para> 241 Remove references to the build directory from the 251 Now, as the <systemitem class="username">root</systemitem> user: 252 </para> 253 254 <screen role="root"><userinput>make install</userinput></screen> 255 256 <para> 257 Remove references to the build directory from the installed 242 258 <filename class="extension">.pc</filename> files by running 243 259 the following command: 244 260 </para> 245 261 246 <screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen> 247 248 <para> 249 Now, as the <systemitem class="username">root</systemitem> user: 250 </para> 251 252 <screen role="root"><userinput>make install</userinput></screen> 253 254 <para> 255 Remove references to the build directory from installed files by 256 running the following commands as the 257 <systemitem class="username">root</systemitem> user: 262 <screen><userinput>find $QT5PREFIX/lib/pkgconfig -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen> 263 264 <para> 265 Remove references to the build directory from installed library dependency 266 (prl) and profile include (pri) files by running the following commands as 267 the <systemitem class="username">root</systemitem> user: 258 268 </para> 259 269 260 270 <screen role="root"><userinput>sed -e "s:$PWD/qtbase:/usr/lib/qt5:g" \ 261 -i /usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri &&262 263 find /usr/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -r \271 -i $QT5PREFIX/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri && 272 273 find $QT5PREFIX/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -r \ 264 274 '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' {} \;</userinput></screen> 265 275 266 276 <para> 267 Install images and create the menu entries 268 for installed applications. Be sure that the <envar>QT5PREFIX</envar> 269 variable is defined in root's environment and 270 as the <systemitem class="username">root</systemitem> user: 271 </para> 272 273 <screen role="root"><userinput>install -v -dm755 /usr/share/pixmaps/ && 277 Install images and create the menu entries for installed applications. 278 The <envar>QT4BINDIR</envar> variable is used here to point to the 279 directory for the executable programs. If you have changed the bindir 280 above, <envar>QT4BINDIR</envar> will need to be adjusted below. Be sure 281 that the <envar>QT5BINDIR</envar> variable is defined in root's 282 environment and as the <systemitem class="username">root</systemitem> 283 user: 284 </para> 285 286 <screen role="root"><userinput>QT5BINDIR=$QT5PREFIX/bin 287 288 install -v -dm755 /usr/share/pixmaps/ && 274 289 275 290 install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \ … … 291 306 Name=Qt5 Assistant 292 307 Comment=Shows Qt5 documentation and examples 293 Exec=$QT5 PREFIX/bin/assistant308 Exec=$QT5BINDIR/assistant 294 309 Icon=assistant-qt5.png 295 310 Terminal=false … … 304 319 GenericName=Interface Designer 305 320 Comment=Design GUIs for Qt5 applications 306 Exec=$QT5 PREFIX/bin/designer321 Exec=$QT5BINDIR/designer 307 322 Icon=designer-qt5.png 308 323 MimeType=application/x-designer; … … 317 332 Name=Qt5 Linguist 318 333 Comment=Add translations to Qt5 applications 319 Exec=$QT5 PREFIX/bin/linguist334 Exec=$QT5BINDOR/linguist 320 335 Icon=linguist-qt5.png 321 336 MimeType=text/vnd.trolltech.linguist;application/x-linguist; … … 331 346 GenericName=D-Bus Debugger 332 347 Comment=Debug D-Bus applications 333 Exec=$QT5 PREFIX/bin/qdbusviewer348 Exec=$QT5BINDIR/qdbusviewer 334 349 Icon=qdbusviewer-qt5.png 335 350 Terminal=false … … 339 354 EOF</userinput></screen> 340 355 356 <para>Some packages such as <xref linkend='vlc'/> look for certain 357 executables with a -qt5 suffix. Run the following command as the root user 358 to create the necessary symlinks:</para> 359 360 <screen role="root"><userinput>for file in moc uic rcc qmake lconvert lrelease lupdate; do 361 ln -sfrvn $QT5BINDIR/$file /usr/bin/$file-qt5 362 done</userinput></screen> 363 341 364 </sect2> 342 365 … … 362 385 <parameter>-nomake examples</parameter>: This switch 363 386 disables building of the example programs included 364 in the source tarball. Remove it if you want to build365 them.366 </para>367 368 <para>369 <parameter>-nomake tests</parameter>: This switch370 disables building of the test programs included371 387 in the source tarball. Remove it if you want to build 372 388 them. … … 474 490 QT5DIR=/opt/qt5 475 491 476 pathappend /opt/qt5/bin PATH477 pathappend /opt/qt5/lib/pkgconfig PKG_CONFIG_PATH492 pathappend $QT5DIR/bin PATH 493 pathappend $QT5DIR/lib/pkgconfig PKG_CONFIG_PATH 478 494 479 495 export QT5DIR
Note:
See TracChangeset
for help on using the changeset viewer.