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


Dear LibreOffice developers,

I've checked out the LibreOffice git repository and followed the build instructions. This revealed two problems:

1) Compile error in l10ntools/source/lngex.cxx (see below)
2) There is no build-dep on doxygen (ppa libreoffice), but LibreOffice won't build without it

The compile error:

Compiling: l10ntools/source/lngex.cxx
/home/gert/tmp/libreoffice-core/l10ntools/source/lngex.cxx: In function 'sal_Bool ParseCommandLine(int, char**)': /home/gert/tmp/libreoffice-core/l10ntools/source/lngex.cxx:77: error: parameter may not have variably modified type 'rtl::OString [(((unsigned int)(((int)i) + -0x00000000000000001)) + 1)]'
dmake:  Error code 1, while making '../unxlngi6.pro/obj/lngex.obj'

I've attached a patch that fixes the symptom (it does an explicit type cast). You may prefer a different fix. After this the build was successful.

Best wishes,

Gert van Valkenhoef
diff --git a/l10ntools/source/lngex.cxx b/l10ntools/source/lngex.cxx
index e921a74..b4cfb18 100644
--- a/l10ntools/source/lngex.cxx
+++ b/l10ntools/source/lngex.cxx
@@ -74,7 +74,7 @@ sal_Bool ParseCommandLine( int argc, char* argv[])
 
     // parse command line
     for( int i = 1; i < argc; i++ ) {
-        rtl::OString sSwitch(rtl::OString(argv[i]).toAsciiUpperCase());
+        rtl::OString sSwitch((rtl::OString)rtl::OString(argv[i]).toAsciiUpperCase());
         if (sSwitch.equalsL(RTL_CONSTASCII_STRINGPARAM("-I")))
             nState = STATE_INPUT; // next tokens specifies source files
         else if (sSwitch.equalsL(RTL_CONSTASCII_STRINGPARAM("-O")))

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.