Skip to content

Commit fe7c849

Browse files
committed
fix compilation of the sqlite3 extension + add a FAQ entry for it.
1 parent f07919b commit fe7c849

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

distribute.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,8 @@ while getopts ":hvlfxm:d:s" opt; do
623623
list_modules
624624
;;
625625
s)
626+
run_prepare
627+
run_source_modules
626628
push_arm
627629
bash
628630
pop_arm

docs/source/faq.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,20 @@ arm-linux-androideabi-gcc: Internal error: Killed (program cc1)
66

77
This could happen if you are not using a validated SDK/NDK with Python for
88
Android. Go to :doc:`prerequisites.rst` to see which one are working.
9+
10+
_sqlite3.so not found
11+
---------------------
12+
13+
We recently fixed sqlite3 compilation. In case of, you must:
14+
15+
* Compile the distribution with (sqlite3 must be the first argument)::
16+
17+
./distribute.sh -m 'sqlite3 kivy'
18+
19+
* Go into your distribution at `dist/default`
20+
* Edit blacklist.txt, and remove all the lines concerning sqlite3::
21+
22+
sqlite3/*
23+
lib-dynload/_sqlite3.so
24+
25+
And then, sqlite3 will be compiled, and included in your APK.

recipes/python/recipe.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ function build_python() {
6363
export LDFLAGS="$LDFLAGS -L$BUILD_openssl/"
6464
fi
6565

66+
# sqlite3 activated ?
67+
if [ "X$BUILD_sqlite3" != "X" ]; then
68+
debug "Activate flags for sqlite3"
69+
export CFLAGS="$CFLAGS -I$BUILD_sqlite3"
70+
export LDFLAGS="$LDFLAGS -L$SRC_PATH/obj/local/$ARCH/"
71+
fi
72+
6673
try ./configure --host=arm-eabi --prefix="$BUILD_PATH/python-install" --enable-shared --disable-toolbox-glue --disable-framework
6774
echo ./configure --host=arm-eabi --prefix="$BUILD_PATH/python-install" --enable-shared --disable-toolbox-glue --disable-framework
6875
echo $MAKE HOSTPYTHON=$BUILD_python/hostpython HOSTPGEN=$BUILD_python/hostpgen CROSS_COMPILE_TARGET=yes INSTSONAME=libpython2.7.so

src/blacklist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ os2emxpath.pyo
7676
multiprocessing/dummy*
7777

7878
# unused binaries python modules
79+
lib-dynload/_sqlite3.so
7980
lib-dynload/termios.so
8081
lib-dynload/_lsprof.so
8182
lib-dynload/*audioop.so

0 commit comments

Comments
 (0)