<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p><br>
</p>
<p>I am trying to build Python 3.6 statically to cross-compile from
linux to android (finale target API 25).</p>
<p>I am following the instructions in
<a class="moz-txt-link-freetext" href="http://pyqt.sourceforge.net/Docs/pyqtdeploy/static_builds.html#python">http://pyqt.sourceforge.net/Docs/pyqtdeploy/static_builds.html#python</a>.</p>
<p>I've set SYSROOT to point my app folder (export
SYSROOT=${SYSROOT}:/home/umberto/Documents/apps/testApp/sysroot-android).</p>
<p>I've created a symlink to android Qt installation in the root of
my folder this way:</p>
<ul>
<li>cd /home/umberto/Documents/apps/testApp/sysroot-android/</li>
<li>ln -s /home/umberto/Qt5.9.1/5.9.1/android_armv7/</li>
</ul>
<p>I downloaded the binary from python.org (the gzipped source
tarball).</p>
<p>I extracted it in a folder and then ran these commands:</p>
<ul>
<li>cd /folder/where/I/extracted/Python-3.6.2</li>
<li>pyqtdeploycli --package python --target android-32 configure</li>
<li>/home/umberto/Documents/apps/testApp/sysroot-android/android_armv7/bin/qmake
SYSROOT=$SYSROOT</li>
<li>make</li>
</ul>
<p>At the 'make' command I receive an error, which does not let me
ho on with 'make install'.</p>
<p><br>
</p>
<p><i>Python/pystrtod.c:181:32: error: 'struct lconv' has no member
named 'decimal_point'</i><i><br>
</i><i> decimal_point = locale_data->decimal_point;</i><i><br>
</i><i> ^</i><i><br>
</i><i>Python/pystrtod.c: In function
'change_decimal_from_locale_to_dot':</i><i><br>
</i><i>Python/pystrtod.c:448:44: error: 'struct lconv' has no
member named 'decimal_point'</i><i><br>
</i><i> const char *decimal_point =
locale_data->decimal_point;</i><i><br>
</i><i> ^</i><i><br>
</i><i>Makefile:14373: recipe for target '.obj/pystrtod.o' failed</i><i><br>
</i><i>make: *** [.obj/pystrtod.o] Error 1</i></p>
<p><br>
</p>
<p>I attached the output of the 'make' command as it is very long,
in order to give someone the possibility to hopefully helping me
trying to figure out what's going on.</p>
<p>Is it something related to (quoting the documentation) "It may
also be necessary to set the <span class="target" id="index-2"></span><code
class="xref std std-envvar docutils literal"><span class="pre">ANDROID_NDK_TOOLCHAIN_VERSION</span></code>
if
Qt and the Android NDK disagree on which version of the toolchain
to use."?</p>
<p><br>
</p>
<p>Thanks in advance,</p>
<p><br>
</p>
<p>Umberto<br>
</p>
</body>
</html>