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:
Tushar Teredesai 2005-07-20 06:01:17 +00:00
parent a1fd0f20b3
commit c52af0c357
3 changed files with 17 additions and 17 deletions

View File

@ -1,4 +1,4 @@
<!ENTITY day "19">
<!ENTITY day "20">
<!ENTITY month "07">
<!ENTITY year "2005">
<!ENTITY version "svn-&year;&month;&day;">

View File

@ -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>

View File

@ -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:&amp;/qt:' \
-e 's:$(QTDIR)/lib:&amp;/qt:' \
-e "s:cp -f:install:" \
mkspecs/linux*/qmake.conf &amp;&amp;
bash
export PATH=$PWD/bin:$PATH &amp;&amp;
@ -135,7 +137,8 @@ export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH &amp;&amp;
-no-exceptions -thread -plugin-imgfmt-png \
-system-libjpeg -system-libpng &amp;&amp;
find -type f -name Makefile | xargs sed -i "s@-Wl,-rpath,/usr/lib@@g" &amp;&amp;
make</userinput></screen>
make &amp;&amp;
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 &amp;&amp;
cp -v -r doc/man /usr/share &amp;&amp;
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 &amp;&amp;
cp -v -r doc/man /opt/qt/doc &amp;&amp;
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>