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

Costin Caraivan costincaraivan at gmail.com
Thu Oct 22 18:45:56 BST 2015


Hello,

I've tried this again on a clean Ubuntu installation. Downloaded Python
3.4.3 (same version as the system version), installed qt5-default,
python3-pip, pyqtdeploy.

Same error. Cross compiling Python using pyqtdeploycli from Ubuntu ->
Android does not work.

Any recommendations for doing this? Should I try from another distribution?
Another OS?

Thanks,
Costin.



_____________
Costin Caraivan

On Fri, Oct 16, 2015 at 9:30 PM, 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.
>
> _____________
> Costin Caraivan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20151022/53cf1719/attachment.html>


More information about the PyQt mailing list