[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: LMDB and Android
- To: Kristoffer Sjögren <stoffe@gmail.com>
- Subject: Re: LMDB and Android
- From: Howard Chu <hyc@symas.com>
- Date: Sun, 18 Jan 2015 21:18:11 +0000
- Cc: openldap-technical@openldap.org
- In-reply-to: <CADSBNAgoJRPMBo_+OZ8Au1mzAg=YCEE-iPzDMbwh3N=V4nRZXA@mail.gmail.com>
- References: <CADSBNAh=X9Gs9rNQNXLOXWiu=1i6TNHbi1Uv3P31wQ8Mf614gw@mail.gmail.com> <54BC0777.9030101@symas.com> <CADSBNAgoJRPMBo_+OZ8Au1mzAg=YCEE-iPzDMbwh3N=V4nRZXA@mail.gmail.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0 SeaMonkey/2.34a1
Kristoffer Sjögren wrote:
Do you have an example of agcc? I tried arm-linux-androideabi-gcc with
--sysroot android-19 but the build fails.
mdb.c: In function 'mdb_env_open':
mdb.c:327:20: error: 'O_DSYNC' undeclared (first use in this function)
# define MDB_DSYNC O_DSYNC
Read the comments in mdb.c about MDB_DSYNC.
^
mdb.c:4502:39: note: in expansion of macro 'MDB_DSYNC'
env->me_mfd = open(dpath, oflags | MDB_DSYNC, mode);
^
mdb.c:327:20: note: each undeclared identifier is reported only once for
each function it appears in
# define MDB_DSYNC O_DSYNC
^
mdb.c:4502:39: note: in expansion of macro 'MDB_DSYNC'
env->me_mfd = open(dpath, oflags | MDB_DSYNC, mode);
^
make: *** [mdb.o] Error 1
On Sun, Jan 18, 2015 at 8:20 PM, Howard Chu <hyc@symas.com
<mailto:hyc@symas.com>> wrote:
Kristoffer Sjögren wrote:
Hi
I'm a Android noob and need to build LMDB for Android. Is
Android NDK
the way to go?
Yep.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/