10.0
10.1
11.0
11.1
11.2
11.3
12.0
12.1
12.2
7.10
8.0
8.1
8.2
8.3
8.4
9.0
9.1
basic
bdubbs/svn
elogind
gimp3
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/for-12.3
xry111/intltool
xry111/llvm18
xry111/soup3
xry111/spidermonkey128
xry111/test-20220226
xry111/xf86-video-removal
Last change
on this file since f9fb8ed was f3429309, checked in by Fernando de Oliveira <fernando@…>, 9 years ago |
- mupdf-1.8: minor reformat.
- removing spaces from EOL, from Denis Mugnier.
- BLFS/trunk/BOOK/kde/add/kdepim-runtime.xml: needed to fix to validate
the book. One chunck had been removed. Bruce, please check if it is
OK, now.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16645 af4574ff-66df-0310-9fd7-8a98e5e911e0
|
-
Property mode
set to
100644
|
File size:
1.5 KB
|
Rev | Line | |
---|
[ec7940be] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
[f3429309] | 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[ec7940be] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[d027410] | 8 | <!-- $LastChangedBy$
|
---|
| 9 | $Date$ -->
|
---|
[ec7940be] | 10 |
|
---|
| 11 | <sect3>
|
---|
| 12 | <title>Choosing Qt Program Versions</title>
|
---|
| 13 |
|
---|
| 14 | <para>If you install both Qt4 and Qt5, you can use some simple
|
---|
[f3429309] | 15 | scripts to select the currently active set of Qt programs. As the
|
---|
[ec7940be] | 16 | <systemitem class="username">root</systemitem> user, create
|
---|
| 17 | the following scripts:</para>
|
---|
| 18 |
|
---|
| 19 | <screen role="root"><userinput>cat > /usr/bin/setqt4 << 'EOF'
|
---|
[1de357f4] | 20 | <literal>if [ "x$QT5DIR" != "x/usr" ] && [ "x$QT5DIR" != "x" ]; then pathremove $QT5DIR/bin; fi
|
---|
[49d3336] | 21 | if [ "x$QT4DIR" != "x/usr" ]; then pathprepend $QT4DIR/bin; fi
|
---|
[ec7940be] | 22 | echo $PATH</literal>
|
---|
| 23 | EOF</userinput></screen>
|
---|
| 24 |
|
---|
| 25 | <screen role="root"><userinput>cat > /usr/bin/setqt5 << 'EOF'
|
---|
[1de357f4] | 26 | <literal>if [ "x$QT4DIR" != "x/usr" ] && [ "x$QT4DIR" != "x" ]; then pathremove $QT4DIR/bin; fi
|
---|
[ec7940be] | 27 | if [ "x$QT5DIR" != "x/usr" ]; then pathprepend $QT5DIR/bin; fi
|
---|
| 28 | echo $PATH</literal>
|
---|
| 29 | EOF</userinput></screen>
|
---|
| 30 |
|
---|
| 31 | <para>You should now be able to use the appropriate Qt version by running
|
---|
[43bb741] | 32 | <command>source setqt4</command> or <command>source setqt5</command> as
|
---|
[ec7940be] | 33 | desired. (Setting the PATH wont work in a subshell.) Another technique that
|
---|
| 34 | can be used is to create appropriate alias additions to your ~/.bashrc like
|
---|
| 35 | <command>alias setqt4='source setqt4'</command>.</para>
|
---|
| 36 |
|
---|
| 37 | </sect3>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.