Adjust qca instructions to build with either qt4 or qt5 as

the user desires.


git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17063 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Bruce Dubbs 2016-03-04 20:19:47 +00:00
parent 0463551d1d
commit 37a853966e

View File

@ -94,17 +94,29 @@
<screen><userinput>sed -i 's/BSD/DEFAULT/' CMakeLists.txt</userinput></screen>
<para>This package can be built against <xref linkend="qt4"/> or <xref linkend="qt5"/>.
If using qt4, run:</para>
<screen><userinput>QT_DIR=&qt4-dir; &amp;&amp;
QT4_BUILD=ON</userinput></screen>
<para>If using qt5, run:</para>
<screen><userinput>QT_DIR=&qt5-dir; &amp;&amp;
QT4_BUILD=OFF</userinput></screen>
<para>Install <application>Qca</application> by running the following
commands:</para>
<screen><userinput>mkdir build &amp;&amp;
cd build &amp;&amp;
cmake -DCMAKE_INSTALL_PREFIX=&qt4-dir; \
cmake -DCMAKE_INSTALL_PREFIX=$QT_DIR \
-DCMAKE_BUILD_TYPE=Release \
-DQT4_BUILD=ON \
-DQT4_BUILD=$QT4_BUILD \
-DQCA_MAN_INSTALL_DIR:PATH=/usr/share/man \
.. &amp;&amp;
unset QT_DIR QT4_BUILD &amp;&amp;
make</userinput></screen>