compiling for android

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

compiling for android

Mark Sibly
Hi,

I just encountered a problem trying to build the sqlite amalgamation
package for android with the latest NDK (v15.2.4203891) on windows 10.

The compiler couldn't find mmap, which was causing a ton of errors.

I solved it by sticking this at the top-ish of sqlite3.c

#if __ANDROID__
#include <sys/mman.h>
#endif

Bye!
Mark
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: compiling for android

Dan Kennedy-4
On 09/11/2017 05:20 AM, Mark Sibly wrote:

> Hi,
>
> I just encountered a problem trying to build the sqlite amalgamation
> package for android with the latest NDK (v15.2.4203891) on windows 10.
>
> The compiler couldn't find mmap, which was causing a ton of errors.
>
> I solved it by sticking this at the top-ish of sqlite3.c
>
> #if __ANDROID__
> #include <sys/mman.h>
> #endif

Thanks for reporting this. Which version are you trying to build?

Are you building with any special options - SQLITE_OMIT_WAL or similar?

When things are working right, sys/mman.h should be included if required
by the amalgamation equivalent of this line:

   http://www.sqlite.org/src/artifact/489aa972ccc34?ln=99

Can you post the first couple of compiler errors?

Dan.

_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: compiling for android

Christian Czech
Hi,

it guess it must be some special settings. We used sqlite quite some
time now and the last build problem we got with ndk is quite long time ago.

Regards,
Christian

---------------------------
derago e. K., Gartenstr. 4, D-79807 Lottstetten, Amtsgericht Freiburg/Br. HRA621012, weitere Informationen unter http://www.derago.com/Impressum. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

Am 11.09.2017 um 17:28 schrieb Dan Kennedy:

> On 09/11/2017 05:20 AM, Mark Sibly wrote:
>> Hi,
>>
>> I just encountered a problem trying to build the sqlite amalgamation
>> package for android with the latest NDK (v15.2.4203891) on windows 10.
>>
>> The compiler couldn't find mmap, which was causing a ton of errors.
>>
>> I solved it by sticking this at the top-ish of sqlite3.c
>>
>> #if __ANDROID__
>> #include <sys/mman.h>
>> #endif
>
> Thanks for reporting this. Which version are you trying to build?
>
> Are you building with any special options - SQLITE_OMIT_WAL or similar?
>
> When things are working right, sys/mman.h should be included if
> required by the amalgamation equivalent of this line:
>
>   http://www.sqlite.org/src/artifact/489aa972ccc34?ln=99
>
> Can you post the first couple of compiler errors?
>
> Dan.
>
> _______________________________________________
> sqlite-users mailing list
> [hidden email]
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users