[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: 5.2 on android
- From: Doug <douglas.linder@...>
- Date: Mon, 13 Aug 2012 15:39:54 +0800
Anyone got 5.2 compiling on android correctly?
Using the ndk I get:
make[3]: *** [obj/local/armeabi/objs/lua//projects/lua-base/deps/lua/lua-5.2.1/src/llex.o]
Error 1
make[2]: *** [deps/lua/liblua.so] Error 2
make[1]: *** [deps/lua/CMakeFiles/lua.dir/all] Error 2
make: *** [all] Error 2
It's easy enough to hack a fix in:
doug@shadowmint:~/projects/lua-base/build$ git diff ../deps/lua/lua-5.2.1/src/
diff --git a/deps/lua/lua-5.2.1/src/llex.c b/deps/lua/lua-5.2.1/src/llex.c
index c4d8c65..a15a39e 100644
--- a/deps/lua/lua-5.2.1/src/llex.c
+++ b/deps/lua/lua-5.2.1/src/llex.c
@@ -211,7 +211,7 @@ static void buffreplace (LexState *ls, char from, char to) {
*/
static void trydecpoint (LexState *ls, SemInfo *seminfo) {
char old = ls->decpoint;
- ls->decpoint = getlocaledecpoint();
+ ls->decpoint = '.';
buffreplace(ls, old, ls->decpoint); /* try new decimal separator */
if (!buff2d(ls->buff, &seminfo->r)) {
/* format error with correct decimal point: no more options */
Just wondered if anyone's done this before, and I'm just invoking the NDK wrong?
(yeah, I saw online there are complaints about the locale on android
being broken; but far fewer than I'd expect if 5.2 just didn't work on
it at all...)
~
Doug.