[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Error when cross-compiling Python for android-32, using pyqtdeploy
From:       Costin Caraivan <costincaraivan () gmail ! com>
Date:       2015-10-22 17:45:56
Message-ID: CAEYw_qkfgoq79oEP3j7tmj3=CBxO04fKUkHuAk6N+12tnm-OeA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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
>

[Attachment #5 (text/html)]

<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>I&#39;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.<br><br></div><div>Same \
error. Cross compiling Python using pyqtdeploycli from Ubuntu -&gt; Android does not \
work.<br></div><br></div>Any recommendations for doing this? Should I try from \
another distribution? Another \
OS?<br><br></div>Thanks,<br></div>Costin.<br><div><div><br><br></div></div></div><div \
class="gmail_extra"><br clear="all"><div><div \
class="gmail_signature">_____________<br>Costin Caraivan<br></div></div> <br><div \
class="gmail_quote">On Fri, Oct 16, 2015 at 9:30 PM, Costin Caraivan <span \
dir="ltr">&lt;<a href="mailto:costincaraivan@gmail.com" \
target="_blank">costincaraivan@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hello,<br><br>Ubuntu 15.04, Python 3.4.3 (and \
3.4.2), pyqtdeploy 1.1.<br>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<br><br><br>~/.local/bin/pyqtdeploycli --package python --target android-32 \
configure<br>[output deleted]<br>qmake SYSROOT=$SYSROOT<br>make<br>gcc -c -m64 -pipe \
-fwrapv -O3 -fPIC -w -DNDEBUG -DPy_BUILD_CORE -DPLATFORM=\&quot;linux\&quot; -I. -I. \
-IInclude -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o .obj/getbuildinfo.o \
Modules/getbuildinfo.c<br>In file included from Include/Python.h:50:0,<br>            \
from Modules/getbuildinfo.c:1:<br>Include/pyport.h:814:2: error: #error \
&quot;LONG_BIT definition appears wrong for platform (bad gcc/glibc \
config?).&quot;<br>  #error &quot;LONG_BIT definition appears wrong for platform (bad \
gcc/glibc config?).&quot;<br>   ^<br>Makefile:787: recipe for target \
&#39;.obj/getbuildinfo.o&#39; failed<br>make: *** [.obj/getbuildinfo.o] Error \
1<br><br>I deleted the Python folder, recreated it from the tar.gz (according to \
advice from: <a href="https://riverbankcomputing.com/pipermail/pyqt/2015-February/035482.html" \
target="_blank">https://riverbankcomputing.com/pipermail/pyqt/2015-February/035482.html</a>), \
same error.<br><br>gcc &amp; co are all installed from the repositories.<br><br \
clear="all"><div><div>_____________<span class="HOEnZb"><font \
color="#888888"><br>Costin Caraivan<br></font></span></div></div> </div>
</blockquote></div><br></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic