[PyQt] Error when cross-compiling Python for android-32, using pyqtdeploy

Costin Caraivan costincaraivan at gmail.com
Fri Oct 16 20:30:26 BST 2015


Hello,

Ubuntu 15.04, Python 3.4.3 (and 3.4.2), pyqtdeploy 1.1.
Linux ubuntu 3.19.0-30-generic #34-Ubuntu SMP Fri Oct 2 22:08:41 UTC 2015
x86_64 x86_64 x86_64 GNU/Linux


~/.local/bin/pyqtdeploycli --package python --target android-32 configure
[output deleted]
qmake SYSROOT=$SYSROOT
make
gcc -c -m64 -pipe -fwrapv -O3 -fPIC -w -DNDEBUG -DPy_BUILD_CORE
-DPLATFORM=\"linux\" -I. -I. -IInclude
-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o .obj/getbuildinfo.o
Modules/getbuildinfo.c
In file included from Include/Python.h:50:0,
                 from Modules/getbuildinfo.c:1:
Include/pyport.h:814:2: error: #error "LONG_BIT definition appears wrong
for platform (bad gcc/glibc config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
config?)."
  ^
Makefile:787: recipe for target '.obj/getbuildinfo.o' failed
make: *** [.obj/getbuildinfo.o] Error 1

I deleted the Python folder, recreated it from the tar.gz (according to
advice from:
https://riverbankcomputing.com/pipermail/pyqt/2015-February/035482.html),
same error.

gcc & co are all installed from the repositories.

_____________
Costin Caraivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20151016/a8b04e17/attachment.html>


More information about the PyQt mailing list