mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-23 22:42:14 +08:00
Clarify qt5 setup when installing in /usr
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16493 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
1f84fb4c44
commit
5652a81e21
@ -44,27 +44,36 @@
|
||||
|
||||
<para>
|
||||
It is a good idea to add the following variables to your
|
||||
system or personal profile:
|
||||
system or personal profiles:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>cat > /etc/profile.d/kf5.sh << "EOF"
|
||||
<literal># Begin /etc/profile.d/kf5.sh
|
||||
<screen role="root"><userinput>cat >> /etc/profile.d/qt5.sh << "EOF"
|
||||
<literal># Begin kf5 extention for /etc/profile.d/qt5.sh
|
||||
|
||||
. /etc/profile.d/qt5.sh
|
||||
pathappend /usr/lib/qt5/plugins QT_PLUGIN_PATH
|
||||
pathappend $QT5DIR/lib/plugins QT_PLUGIN_PATH
|
||||
|
||||
pathappend /usr/lib/qt5/qml QML_IMPORT_PATH
|
||||
pathappend $QT5DIR/lib/qml QML_IMPORT_PATH
|
||||
|
||||
pathappend /usr/lib/qt5/qml QML2_IMPORT_PATH
|
||||
pathappend $QT5DIR/lib/qml QML2_IMPORT_PATH
|
||||
|
||||
# End extention for /etc/profile.d/qt5.sh</literal>
|
||||
EOF
|
||||
|
||||
cat > /etc/profile.d/kf5.sh << "EOF"
|
||||
<literal># Begin /etc/profile.d/kf5.sh
|
||||
|
||||
export KF5_PREFIX=/usr
|
||||
|
||||
pathappend /usr/lib/qt5/plugins QT_PLUGIN_PATH
|
||||
pathappend $QT5DIR/lib/qt5/plugins QT_PLUGIN_PATH
|
||||
|
||||
pathappend /usr/lib/qt5/qml QML_IMPORT_PATH
|
||||
pathappend $QT5DIR/lib/qt5/qml QML_IMPORT_PATH
|
||||
|
||||
pathappend /usr/lib/qt5/qml QML2_IMPORT_PATH
|
||||
pathappend $QT5DIR/lib/qt5/qml QML2_IMPORT_PATH
|
||||
|
||||
# End /etc/profile.d/kf5.sh</literal>
|
||||
EOF</userinput></screen>
|
||||
|
||||
<note><para>If <application>qt5</application> was installed in /usr, the
|
||||
$QT5DIR/lib/ portions of the above paths may need to be changed to
|
||||
$QT5DIR/lib/qt5/.</para></note>
|
||||
|
||||
<warning>
|
||||
<para>
|
||||
If <application>KDE4</application> is installed in
|
||||
|
Loading…
Reference in New Issue
Block a user