Changeset 0dd2bc6 for x/lib/qt5.xml
- Timestamp:
- 06/19/2015 07:25:49 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:
- 06da9a6
- Parents:
- a5a776af
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
x/lib/qt5.xml
ra5a776af r0dd2bc6 136 136 href="../../xincludes/qt-alternatives.xml"/> 137 137 138 <sect2 role="qt5-prefix"> 139 <title>Setting the installation prefix</title> 140 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 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 directory 155 other than <filename class="directory">/usr</filename>, ie <filename 156 class="directory">/opt/qt4</filename>, set the following environment 157 variable: 158 </para> 159 160 <screen><userinput>export QT5PREFIX=/opt/qt5</userinput></screen> 161 162 <tip> 163 <para> 164 Sometimes, the installation paths are hardcoded into installed files. 165 This is the reason why <filename class="directory">/opt/qt5</filename> 166 is used as installation prefix instead of <filename 167 class="directory">/opt/qt-&qt5-version;</filename>. To create a 168 versioned <application>Qt5</application> directory, you may rename 169 the directory and create a symlink: 170 </para> 171 172 <screen role="root"><userinput>mkdir /opt/qt-&qt5-version; 173 ln -sfnv qt-&qt5-version; /opt/qt5</userinput></screen> 174 175 <para> 176 Later on, you may want to install other versions of 177 <application>Qt4</application>. To do that, just remove the symlink 178 and use <filename class="directory">/opt/qt5</filename> as the 179 prefix again. Which version of <application>Qt5</application> you 180 use depends only on where the symlink points. 181 </para> 182 </tip> 183 184 </sect2> 185 138 186 <sect2 role="installation"> 139 187 <title>Installation of Qt5</title> … … 158 206 </warning> 159 207 160 <!-- ==== Method 1 ====== -->161 <bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead>162 163 208 <para> 164 209 Install <application>Qt5</application> by running the … … 166 211 </para> 167 212 168 <!-- This is rather a bad idea. Most apps that I've seen using Qt5 look for 169 -qt5 suffixed programs. On the other hand, the developer is used to 170 running qmake, linguist, etc from the command line. 171 172 <note> 173 <para> 174 If <emphasis>not</emphasis> also installing <application>Qt4</application> 175 into the /usr directory, change the entry for -bindir below to /usr/bin. 176 </para> 177 </note> --> 178 179 <screen><userinput>export QT5LINK=/usr 180 181 ./configure -prefix /usr \ 182 -sysconfdir /etc/xdg \ 183 -bindir /usr/bin \ 184 -headerdir /usr/include/qt5 \ 185 -archdatadir /usr/lib/qt5 \ 186 -datadir /usr/share/qt5 \ 187 -docdir /usr/share/doc/qt5 \ 188 -translationdir /usr/share/qt5/translations \ 189 -examplesdir /usr/share/doc/qt5/examples \ 190 -confirm-license \ 191 -opensource \ 192 -dbus-linked \ 193 -openssl-linked \<!-- 194 -system-harfbuzz \--> 195 -system-sqlite \ 196 -no-nis \ 197 -skip qtwebengine \ 198 -nomake examples \ 199 -nomake tests \ 200 -optimized-qmake && 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 && 233 201 234 make</userinput></screen> 202 235 … … 231 264 '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' {} \;</userinput></screen> 232 265 233 <!-- ==== Method 2 ====== --> 234 235 <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt5-version;</bridgehead> 236 237 <para> 238 This section provides instructions for installing Qt5 in the 239 <filename class="directory">/opt</filename> directory. 240 </para> 241 242 <screen><userinput>export QT5DIR=/opt/qt-&qt5-version; && 243 export QT5LINK=/opt/qt5 && 244 245 ./configure -prefix $QT5DIR \ 246 -sysconfdir /etc/xdg \ 247 -confirm-license \ 248 -opensource \ 249 -dbus-linked \ 250 -openssl-linked \<!-- 251 -system-harfbuzz \--> 252 -system-sqlite \ 253 -no-nis \ 254 -nomake examples \ 255 -nomake tests \ 256 -skip qtwebengine \ 257 -optimized-qmake && 258 make</userinput></screen> 259 260 <para> 261 Now, as the <systemitem class="username">root</systemitem> user: 262 </para> 263 264 <screen role="root"><userinput>make install && 265 ln -svfn $QT5DIR /opt/qt5</userinput></screen> 266 267 <para> 268 Remove references to the build directory from installed files by 269 running the following commands as the 270 <systemitem class="username">root</systemitem> user: 271 </para> 272 273 <screen role="root"><userinput>find $QT5DIR -name qt_lib_bootstrap_private.pri \ 274 -exec sed -i -e "s:$PWD/qtbase:/$QT5DIR/lib/:g" {} \; && 275 276 find $QT5DIR -name \*.prl \ 277 -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen> 278 279 <!-- This is useful for packages looking explicitly for Qt apps with -qt5 suffix. 280 281 <para> 282 Symlink the <application>Qt5</application> executables into 283 <filename class="directory">/usr/bin</filename> by running the 284 following commands as the 285 <systemitem class="username">root</systemitem> user: 286 </para> 287 288 <screen role="root"><userinput>ln -svf $QT5DIR /opt/qt5 && 289 290 for file in /opt/qt5/bin/*; do 291 ln -sfv $file /usr/bin/$(basename $file)-qt5 292 done</userinput></screen> --> 293 294 <!-- ==== Common ====== --> 295 <bridgehead renderas="sect3">Continuing for Both Methods</bridgehead> 296 297 <para> 298 For all methods, install images and create the menu entries 299 for installed applications. Be sure that the <envar>QT5LINK</envar> 266 <para> 267 Install images and create the menu entries 268 for installed applications. Be sure that the <envar>QT5PREFIX</envar> 300 269 variable is defined in root's environment and 301 270 as the <systemitem class="username">root</systemitem> user: … … 322 291 Name=Qt5 Assistant 323 292 Comment=Shows Qt5 documentation and examples 324 Exec=$QT5 LINK/bin/assistant293 Exec=$QT5PREFIX/bin/assistant 325 294 Icon=assistant-qt5.png 326 295 Terminal=false … … 335 304 GenericName=Interface Designer 336 305 Comment=Design GUIs for Qt5 applications 337 Exec=$QT5 LINK/bin/designer306 Exec=$QT5PREFIX/bin/designer 338 307 Icon=designer-qt5.png 339 308 MimeType=application/x-designer; … … 348 317 Name=Qt5 Linguist 349 318 Comment=Add translations to Qt5 applications 350 Exec=$QT5 LINK/bin/linguist319 Exec=$QT5PREFIX/bin/linguist 351 320 Icon=linguist-qt5.png 352 321 MimeType=text/vnd.trolltech.linguist;application/x-linguist; … … 362 331 GenericName=D-Bus Debugger 363 332 Comment=Debug D-Bus applications 364 Exec=$QT5 LINK/bin/qdbusviewer333 Exec=$QT5PREFIX/bin/qdbusviewer 365 334 Icon=qdbusviewer-qt5.png 366 335 Terminal=false
Note:
See TracChangeset
for help on using the changeset viewer.