On 10/11/2014 8:27 PM, Bruce Dubbs wrote:
Alan Feuerbacher wrote:
##################################
Compiling LibreOffice in systemd
There were two basic problems that caused me problems compiling
LibreOffice-4.3.1.2 last week, and having solved them, to a lesser
extent compiling LibreOffice-4.3.2.2 today. . .
. . . So if you install Epydocs, the build commands should be:
########
mkdir python2 &&
pushd python2 &&
PYTHON=/usr/bin/python \
../configure --prefix=/usr --docdir=/usr/share/doc/dbus-python-1.2.0 \
--enable-api-docs=no &&
make &&
popd
########
Having this in the mail logs will help anyone having the same problem.
Thanks. I don't think it goes into the book though since we don't do
epydoc.
Ok. I searched the "nochunks" BLFS books for "epydoc" and found that
it's used only in D-BUS Python if you want to build the API and HTML
documentation. The related docutils is also used only there and in
Mercurial.
. . .
Ensure that you have:
export QTDIR=$QT4PREFIX/include/qt4
executed somewhere, where QT4PREFIX=/opt/qt4 is as defined in the
BLFS book (systemd edition), Version 2014-10-10, Chapter 25.
X Libraries, Setting the installation prefix, under
"Installing in /opt/qt4".
Execute:
sed -i 's@qt_incdirs="$QTDIR/include@qt_incdirs="$QTDIR@' configure.ac
Without this sed, the configure script sets
qt_incdirs=/opt/qt4/include/qt4/include which is wrong because the
final "include" directory does not exist, assuming you've followed the
BLFS installation instructions for Qt4. The configure script wants to
check for the existence of some Qt4 header files, which actually are in
/opt/qt4/include/qt4/Qt . The script takes qt_incdirs and appends "Qt"
and then looks for the header files there.
As a side note, the above applies to the latest LibreOffice version,
LibreOffice-4.3.2.2. The earlier one that I tried to install last
week, LibreOffice-4.3.1.2, has a configure script that looks for
KDE4DIR and QT4DIR, and will not configure properly without them. These
variables appear to be defined generally the same as KDEDIR and QTDIR.
They are not necessary with 4.3.2.2.
With KDEDIR defined as above, but without QTDIR defined, configure
gives this error:
######
checking for Qt4 headers... no
configure: error: Qt4 headers not found. Please specify the root of
your Qt4 installation by exporting QT4DIR before running "configure".
Error running configure at ./autogen.sh line 257.
######
The error is confusing because it mentions QT4DIR, whereas QTDIR
appears to be more fundamental. I suspect that the LibreOffice people
have a bit more work to do on the configure script.
We use QT4DIR. Why didn't you have that set?
It turns out that QT4DIR is set in the NON-systemd BLFS book, but not in
the systemd book.
Actually there are a number of differences between the books for
installing QT-4. I have not gone over them line by line, but the
non-systemd instructions seem more complete.
You did a lot of good debugging, but I think the issue really was that
you overlooked some things that are already in the book.
I certainly did, and hopefully that's now corrected.
However, the above-mentioned sed script is definitely necessary with the
systemd book's current instructions. Again I have not tried anything
with the non-systemd book's instructions.
Alan
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page