Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


On Fri, Dec 17, 2010 at 09:27:40AM +0100, Rene Engelhard wrote:
On Fri, Dec 17, 2010 at 07:27:12AM +0100, David Tardon wrote:
On Fri, Dec 17, 2010 at 02:18:04PM +0800, imacat wrote:
Dear all,

    Hi.  This is imacat from Taiwan.  I tried to compile LibreOffice
3.3.0.1 on my Debian Lenny x86_64 5.0.6, gcc 4.3.2, glibc 2.7.  It
failed at the "slideshow" module, and when I digged inside as suggested,
it complainted "‘class KFileDialog’ has no member named
‘setConfirmOverwrite’".


Your KDE is too old--the setConfirmOverwrite function was added in 4.2
(http://api.kde.org/4.5-api/kdelibs-apidocs/kio/html/classKFileDialog.html#558b1932c57dfd55e278e17fc4a34dd8).

Then configure should check for that.

Please someone review and sign-off for libreoffice-3-3 (probably we should
check for the function and not for the version, but anyways ;)):

diff --git a/configure.in b/configure.in
index 1537b4d..1df6b5f 100644
--- a/configure.in
+++ b/configure.in
@@ -6992,6 +6992,21 @@ the root of your Qt installation by exporting QT4DIR befo
    KDE4_CFLAGS="`pkg-config --cflags QtCore` `pkg-config --cflags QtGui` -I$kde
    KDE4_LIBS="-L$kde_libdir -L$qt_lib_dir -lkdeui -lkdecore -lQtCore -lQtGui"
 
+   AC_LANG_PUSH([C++])
+   save_CXXFLAGS=$CXXFLAGS
+   CXXFLAGS="$CXXFLAGS $KDE4_CFLAGS"
+   AC_MSG_CHECKING([whether KDE is >= 4.2])
+       AC_TRY_RUN([
+#include <kdeversion.h>
+
+int main(int argc, char **argv) {
+       if (KDE_VERSION_MAJOR == 4 && KDE_VERSION_MINOR >= 2) return 0;
+       else return 1;
+}
+       ], [AC_MSG_RESULT([yes])], [AC_MSG_ERROR([KDE version too old])])
+   CXXFLAGS=$save_CXXFLAGS
+   AC_LANG_POP([C++])
+
    # Glib is needed for properly handling Qt event loop with Qt's Glib integrat
    PKG_CHECK_MODULES(KDE_GLIB,[glib-2.0 >= 2.4],
     [KDE_HAVE_GLIB=1],

(cut'n'pasted and adapted from the check for KDE3s kab)

Grüße/Regards,

René
-- 
 .''`.  René Engelhard -- Debian GNU/Linux Developer
 : :' : http://www.debian.org | http://people.debian.org/~rene/
 `. `'  rene@debian.org | GnuPG-Key ID: D03E3E70
   `-   Fingerprint: E12D EA46 7506 70CF A960 801D 0AA0 4571 D03E 3E70

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.