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

Phil Thompson phil at riverbankcomputing.com
Sun Nov 1 15:46:51 GMT 2015


On 16 Oct 2015, at 8:30 p.m., Costin Caraivan <costincaraivan at gmail.com> wrote:
> 
> 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.

It doesn't look like you are using the Android cross-compilers. Are you running the right qmake?

Phil


More information about the PyQt mailing list