About Monkey 2 › Forums › Monkey 2 Development › sqlite does not buld for android
This topic contains 1 reply, has 2 voices, and was last updated by
Mark Sibly
1 year, 7 months ago.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
September 10, 2017 at 8:16 pm #10390
This is what i get when trying to build anroid version of sqlite module (release)
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374Mx2cc version 1.1.06***** Making module 'sqlite' *****Parsing...Semanting...Translating...Compiling...[armeabi-v7a] Compile thumb : mx2_sqlite <= sqlite3.cBuild error: System command 'ndk-build' failed.ndk-buildjni/../../../sqlite-amalgamation-3150000/sqlite3.c:29836:42: error: use of undeclared identifier 'mmap'{ "mmap", (sqlite3_syscall_ptr)mmap, 0 },^jni/../../../sqlite-amalgamation-3150000/sqlite3.c:29913:22: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){^~~~~~~~~~jni/../../../sqlite-amalgamation-3150000/sqlite3.c:29922:22: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){^~~~~~~~~~jni/../../../sqlite-amalgamation-3150000/sqlite3.c:29949:20: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){^~~~~~~~~~jni/../../../sqlite-amalgamation-3150000/sqlite3.c:29966:16: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'for(i=0; i<ArraySize(aSyscall)-1; i++){^~~~~~~~~~~~~~~~~~~jni/../../../sqlite-amalgamation-3150000/sqlite3.c:11894:38: note: expanded from macro 'ArraySize'#define ArraySize(X) ((int)(sizeof(X)/sizeof(X[0])))^~~jni/../../../sqlite-amalgamation-3150000/sqlite3.c:29970:14: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'for(i++; i<ArraySize(aSyscall); i++){^~~~~~~~~~~~~~~~~~~jni/../../../sqlite-amalgamation-3150000/sqlite3.c:11894:38: note: expanded from macro 'ArraySize'#define ArraySize(X) ((int)(sizeof(X)/sizeof(X[0])))^~~6 errors generated.make: *** [obj/local/armeabi-v7a/objs/mx2_sqlite/__/__/__/sqlite-amalgamation-3150000/sqlite3.o] Error 1***** Fatal mx2cc error *****Internal mx2cc build errorUpdate modules failed.Total time elapsed: 0 m 15 s.September 10, 2017 at 10:28 pm #10392You’re right, the latest version of the NDK (v15.2.4203891) breaks the sqlite module.
A fix for this has just been pushed to the develop branch, plus I updated to the latest version of sqlite.
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.