Hi,

I am having problems building sqlite with the android NDK for macos.
Weirdly, it *does* build fine on windows ndk.

The errors I am getting are shown below.

Bye,
Mark

'-------------- errors building sqlite on macOS android ndk
--------------------

jni/../../../sqlite-amalgamation/sqlite3.c:31006:43: error: address of
overloaded function 'ioctl' is ambiguous
  { "ioctl",         (sqlite3_syscall_ptr)ioctl,          0 },
                                          ^~~~~
/Users/marksibly/Library/Android/sdk/ndk-bundle/sysroot/usr/include/bits/ioctl.h:57:5:
note: candidate function has different number of parameters (expected 0 but
has 2)
int ioctl(int __fd, unsigned __request, ...) __overloadable __enable_if(1,
"") __RENAME(ioctl);
    ^
/Users/marksibly/Library/Android/sdk/ndk-bundle/sysroot/usr/include/bits/ioctl.h:36:5:
note: candidate function has different number of parameters (expected 0 but
has 2)
int ioctl(int __fd, int __request, ...);
    ^
jni/../../../sqlite-amalgamation/sqlite3.c:31006:22: error: initializer
element is not a compile-time constant
  { "ioctl",         (sqlite3_syscall_ptr)ioctl,          0 },
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
make: ***
[obj/local/armeabi-v7a/objs/mx2_sqlite/__/__/__/sqlite-amalgamation/sqlite3.o]
Error 1
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to