mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 06:52:14 +08:00
Avoid qt reinstallation problems
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4740 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
a1fd0f20b3
commit
c52af0c357
@ -1,4 +1,4 @@
|
||||
<!ENTITY day "19">
|
||||
<!ENTITY day "20">
|
||||
<!ENTITY month "07">
|
||||
<!ENTITY year "2005">
|
||||
<!ENTITY version "svn-&year;&month;&day;">
|
||||
|
@ -24,6 +24,11 @@
|
||||
|
||||
<itemizedlist>
|
||||
|
||||
<listitem>
|
||||
<para>July 20th 2005 [tushar]: For qt, replace cp by install
|
||||
to allow installation even if the libraries are in use.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>July 19th 2005 [randy]: Updated to Doxygen-1.4.3.</para>
|
||||
</listitem>
|
||||
|
27
x/lib/qt.xml
27
x/lib/qt.xml
@ -116,14 +116,16 @@
|
||||
This is the method that most commercial distributions use.</para>
|
||||
|
||||
<note>
|
||||
<para>If <application>Qt</application> is being reinstalled, run the
|
||||
following commands from a console or non-Qt based window manager.
|
||||
It overwrites <application>Qt</application> libraries that should not
|
||||
be in use during the install process.</para>
|
||||
<para>The installation incorrectly uses cp to install the files.
|
||||
This causes problems if the <application>Qt</application> libraries
|
||||
are already in use (e.g. you are logged in into your
|
||||
<application>KDE</application> desktop environment). To avoid problems,
|
||||
"cp -f" is replaced by "install" in <filename>qmake.conf</filename>.</para>
|
||||
</note>
|
||||
|
||||
<screen><userinput>sed -i -e 's:$(QTDIR)/include:&/qt:' \
|
||||
-e 's:$(QTDIR)/lib:&/qt:' \
|
||||
-e "s:cp -f:install:" \
|
||||
mkspecs/linux*/qmake.conf &&
|
||||
bash
|
||||
export PATH=$PWD/bin:$PATH &&
|
||||
@ -135,7 +137,8 @@ export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH &&
|
||||
-no-exceptions -thread -plugin-imgfmt-png \
|
||||
-system-libjpeg -system-libpng &&
|
||||
find -type f -name Makefile | xargs sed -i "s@-Wl,-rpath,/usr/lib@@g" &&
|
||||
make</userinput></screen>
|
||||
make &&
|
||||
exit</userinput></screen>
|
||||
|
||||
<para>Now, as the <systemitem class="username">root</systemitem>
|
||||
user:</para>
|
||||
@ -145,10 +148,6 @@ ln -v -sf libqt-mt.so /usr/lib/libqt.so &&
|
||||
cp -v -r doc/man /usr/share &&
|
||||
cp -v -r examples /usr/share/doc/qt</userinput></screen>
|
||||
|
||||
<para>And finally back as the regular user:</para>
|
||||
|
||||
<screen><userinput>exit</userinput></screen>
|
||||
|
||||
</sect3>
|
||||
|
||||
<sect3>
|
||||
@ -158,8 +157,7 @@ cp -v -r examples /usr/share/doc/qt</userinput></screen>
|
||||
developers. It has the advantage of keeping all the package files
|
||||
consolidated in a dedicated directory hierarchy. By using this method,
|
||||
an update can be made without overwriting a previous installation and
|
||||
users can easily revert to a previous version by changing one symbolic l
|
||||
ink.</para>
|
||||
users can easily revert to a previous version by changing one symbolic link.</para>
|
||||
|
||||
<para>The <application>Qt</application> developers use a default location
|
||||
of <filename class='directory'>/usr/local/qt/</filename>, however this
|
||||
@ -185,10 +183,6 @@ ln -v -s libqt-mt.so /opt/qt/lib/libqt.so &&
|
||||
cp -v -r doc/man /opt/qt/doc &&
|
||||
cp -v -r examples /opt/qt/doc</userinput></screen>
|
||||
|
||||
<para>And finally back as the regular user:</para>
|
||||
|
||||
<screen><userinput>exit</userinput></screen>
|
||||
|
||||
<note>
|
||||
<para>If you pass the
|
||||
<option>-plugin-sql-<replaceable>[driver]</replaceable></option>
|
||||
@ -276,7 +270,8 @@ cp -v -r examples /opt/qt/doc</userinput></screen>
|
||||
libraries. Alternatively, the variable can be set in the system wide
|
||||
<filename>/etc/profile</filename> file.</para>
|
||||
|
||||
<para>For Method 1:</para>
|
||||
<para>For Method 1 (This is optional, only set this if an application is
|
||||
unable to find the installed libraries):</para>
|
||||
|
||||
<screen><literal>export QTDIR=/usr</literal></screen>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user