On 31/08/2013 janI wrote:
I am pleased to inform you, that I have reached a major milestone with
genLang.

Thanks a lot for the achievement. I'm quite enthusiastic about it, but I waited to comment until I could play a bit with it.

1) run "build --all --genPO" or "build --genPO"

Unfortunately, my gcc/g++ stops here. Here's a (shortened) output:

$ g++ --version
g++ (GCC) 4.8.1 20130603
$ build --all  --genPO
build -- version: 275224 ...
=============
Building module l10ntools
============= ...
Entering .../l10n40/main/l10ntools/source

Compiling: l10ntools/source/gCon.cxx
.../l10n40/main/l10ntools/source/gCon.cxx: In static member function 'static bool convert_gen::checkAccess(std::string&)': .../l10n40/main/l10ntools/source/gCon.cxx:182:33: error: 'access' was not declared in this scope
   return (OS_ACCESS(sFile.c_str(), 0) == 0);

So it seems my compiler sees your define for OS_ACCESS(x,y) and OS_MKDIR(x) but does not know about access(x,y).

On my system I can get past this with

--- gCon.cxx
+++ gCon.cxx
@@ -37,6 +37,7 @@
 #else
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <unistd.h>
 #define OS_ACCESS(x,y) access(x,y)
 #define OS_MKDIR(x)    mkdir(x,0777)
 #endif

but then the build breaks further in l10ntools, so I'm absolutely not sure that this workaround is correct.

If someone could review the branch, it would be real nice. Also I need to
check build on windows/mac.

Do you mean that this works for you on Linux? Maybe the issue is with my gcc/g++? I can try with another version.

In the meantime I will integrate "genLang convert" so we can get all
current translations into the new system.
and finally integrate "genLang merge" that generates sources with languages.

Looks like an excellent plan!

Regards,
  Andrea.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to