trunk
Last change
on this file since 206a253d was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 4 years ago |
more SVN prop clean up
Remove "$LastChanged$" everywhere, and also some unused $Date$
|
-
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 |
|
---|
| 8 | <sect3>
|
---|
| 9 | <title>Choosing Qt Program Versions</title>
|
---|
| 10 |
|
---|
| 11 | <para>If you install both Qt4 and Qt5, you can use some simple
|
---|
[f3429309] | 12 | scripts to select the currently active set of Qt programs. As the
|
---|
[ec7940be] | 13 | <systemitem class="username">root</systemitem> user, create
|
---|
| 14 | the following scripts:</para>
|
---|
| 15 |
|
---|
| 16 | <screen role="root"><userinput>cat > /usr/bin/setqt4 << 'EOF'
|
---|
[1de357f4] | 17 | <literal>if [ "x$QT5DIR" != "x/usr" ] && [ "x$QT5DIR" != "x" ]; then pathremove $QT5DIR/bin; fi
|
---|
[49d3336] | 18 | if [ "x$QT4DIR" != "x/usr" ]; then pathprepend $QT4DIR/bin; fi
|
---|
[ec7940be] | 19 | echo $PATH</literal>
|
---|
| 20 | EOF</userinput></screen>
|
---|
| 21 |
|
---|
| 22 | <screen role="root"><userinput>cat > /usr/bin/setqt5 << 'EOF'
|
---|
[1de357f4] | 23 | <literal>if [ "x$QT4DIR" != "x/usr" ] && [ "x$QT4DIR" != "x" ]; then pathremove $QT4DIR/bin; fi
|
---|
[ec7940be] | 24 | if [ "x$QT5DIR" != "x/usr" ]; then pathprepend $QT5DIR/bin; fi
|
---|
| 25 | echo $PATH</literal>
|
---|
| 26 | EOF</userinput></screen>
|
---|
| 27 |
|
---|
| 28 | <para>You should now be able to use the appropriate Qt version by running
|
---|
[43bb741] | 29 | <command>source setqt4</command> or <command>source setqt5</command> as
|
---|
[ec7940be] | 30 | desired. (Setting the PATH wont work in a subshell.) Another technique that
|
---|
| 31 | can be used is to create appropriate alias additions to your ~/.bashrc like
|
---|
| 32 | <command>alias setqt4='source setqt4'</command>.</para>
|
---|
| 33 |
|
---|
| 34 | </sect3>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.