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")))
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice