systemd-13485
Last change
on this file since f080ae0e was 3acf108, checked in by DJ Lucas <dj@…>, 9 years ago |
Removed svn:mime-type property on all files, set svn:keywords for 'LastChangedBy' and 'Date' on all files, excluding kde, kde5, and gnome sections
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16883 af4574ff-66df-0310-9fd7-8a98e5e911e0
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <!-- $LastChangedBy$
|
---|
9 | $Date$ -->
|
---|
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
|
---|
15 | scripts to select the currently active set of Qt programs. As the
|
---|
16 | <systemitem class="username">root</systemitem> user, create
|
---|
17 | the following scripts:</para>
|
---|
18 |
|
---|
19 | <screen role="root"><userinput>cat > /usr/bin/setqt4 << 'EOF'
|
---|
20 | <literal>if [ "x$QT5DIR" != "x/usr" ]; then pathremove $QT5DIR/bin; fi
|
---|
21 | if [ "x$QT4DIR" != "x/usr" ]; then pathprepend $QT4DIR/bin; fi
|
---|
22 | echo $PATH</literal>
|
---|
23 | EOF</userinput></screen>
|
---|
24 |
|
---|
25 | <screen role="root"><userinput>cat > /usr/bin/setqt5 << 'EOF'
|
---|
26 | <literal>if [ "x$QT4DIR" != "x/usr" ]; then pathremove $QT4DIR/bin; fi
|
---|
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
|
---|
32 | <command>source setqt4</command> or <command>source setqt5</command> as
|
---|
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.