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

List:       pykde
Subject:    Re: [PyQt] Android build failing with Python 3.6.4
From:       Kálmán Viktor <viktorvector () gmail ! com>
Date:       2018-06-22 19:19:07
Message-ID: CA+sJfQyVBo=RgMG17L0tsaLqGuxm22CvBnH1g1vVQWwJosNSJQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


That indeed fixed issue, thank you.

2018-06-22 9:59 GMT+02:00 Phil Thompson <phil@riverbankcomputing.com>:

> On 21 Jun 2018, at 11:08 pm, Kálmán Viktor <viktorvector@gmail.com> wrote:
> >
> > Hello,
> >
> > I'm trying to build my application using pyqtdeploy 2.1, ndk r10e with
> android platform 21.
> > Building sysroot succeeds but building the application fails, the error
> I get is
> >
> > grpmodule.o:grpmodule.c:function grp_getgrall: error: undefined
> reference to 'setgrent'
> > grpmodule.o:grpmodule.c:function grp_getgrall: error: undefined
> reference to 'getgrent'
> > grpmodule.o:grpmodule.c:function grp_getgrall: error: undefined
> reference to 'endgrent'
> > grpmodule.o:grpmodule.c:function grp_getgrall: error: undefined
> reference to 'endgrent'
> >
> > If I manually "empty" the function (so it just creates a PyObject and
> returns it) things seem to work but it might bite me back later in a form
> of some weird errors.
> >
> >
> > My json file I used to build my sysroot
> >
> > {
> >     "Description": "A skeleton sysroot specification.",
> >
> >     "qt5": {
> >         "android#qt_dir":           "/home/name/Qt/*/android_armv7"
> >     },
> >     "python": {
> >         "build_host_from_source":true,
> >         "build_target_from_source": true,
> >         "source": "Python-3.6.4.tar.xz"
> >     },
> >
> >     "sip": {
> >         "source": "sip-4.19.8.tar.gz"
> >     },
> >
> >     "pyqt5": {
> >         "android#disabled_features":    [
> >                 "PyQt_Desktop_OpenGL", "PyQt_Printer",
> "PyQt_PrintDialog",
> >                 "PyQt_PrintPreviewDialog", "PyQt_PrintPreviewWidget"
> >         ],
> >         "source": "PyQt5_gpl-5.10.1.tar.gz",
> >         "android#modules":              [
> >                 "QtCore", "QtGui", "QtNetwork", "QtQml", "QtQuick",
> "QtSvg", "QtWidgets",
> >                 "QtAndroidExtras"
> >         ]
> >     }
> > }
>
> The meta-data for the 'grp' module may be incorrect for Android. Edit the
> 'grp' entry in pyqtdeploy/metadata/python_metadata.py and change
> target='!win' to target='linux|ios|macos'
>
> > Also somewhat not relevant question but when is the next PyPi release
> expected? The current one does not support Python 3.6.5 but as I saw the
> pyqtdeploy source it already does.
>
> I'm waiting for the release of Python v3.7.
>
> Phil
>

[Attachment #5 (text/html)]

<div dir="ltr">That indeed fixed issue, thank you.</div><div \
class="gmail_extra"><br><div class="gmail_quote">2018-06-22 9:59 GMT+02:00 Phil \
Thompson <span dir="ltr">&lt;<a href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 21 Jun 2018, at 11:08 \
pm, Kálmán Viktor &lt;<a \
href="mailto:viktorvector@gmail.com">viktorvector@gmail.com</a>&gt; wrote:<br> &gt; \
<br> &gt; Hello,<br>
&gt; <br>
&gt; I&#39;m trying to build my application using pyqtdeploy 2.1, ndk r10e with \
android platform 21.<br> &gt; Building sysroot succeeds but building the application \
fails, the error I get is<br> &gt; <br>
&gt; grpmodule.o:grpmodule.c:<wbr>function grp_getgrall: error: undefined reference \
to &#39;setgrent&#39;<br> &gt; grpmodule.o:grpmodule.c:<wbr>function grp_getgrall: \
error: undefined reference to &#39;getgrent&#39;<br> &gt; \
grpmodule.o:grpmodule.c:<wbr>function grp_getgrall: error: undefined reference to \
&#39;endgrent&#39;<br> &gt; grpmodule.o:grpmodule.c:<wbr>function grp_getgrall: \
error: undefined reference to &#39;endgrent&#39;<br> &gt; <br>
&gt; If I manually &quot;empty&quot; the function (so it just creates a PyObject and \
returns it) things seem to work but it might bite me back later in a form of some \
weird errors.<br> &gt; <br>
&gt; <br>
&gt; My json file I used to build my sysroot<br>
&gt; <br>
&gt; {<br>
&gt;        &quot;Description&quot;: &quot;A skeleton sysroot \
specification.&quot;,<br> &gt; <br>
&gt;        &quot;qt5&quot;: {<br>
&gt;              &quot;android#qt_dir&quot;:                 \
&quot;/home/name/Qt/*/android_<wbr>armv7&quot;<br> &gt;        },<br>
&gt;        &quot;python&quot;: {<br>
&gt;              &quot;build_host_from_source&quot;:true,<br>
&gt;              &quot;build_target_from_source&quot;: true,<br>
&gt;              &quot;source&quot;: &quot;Python-3.6.4.tar.xz&quot;<br>
&gt;        },<br>
&gt; <br>
&gt;        &quot;sip&quot;: {<br>
&gt;              &quot;source&quot;: &quot;sip-4.19.8.tar.gz&quot;<br>
&gt;        },<br>
&gt; <br>
&gt;        &quot;pyqt5&quot;: {<br>
&gt;              &quot;android#disabled_features&quot;:      [<br>
&gt;                          &quot;PyQt_Desktop_OpenGL&quot;, \
&quot;PyQt_Printer&quot;, &quot;PyQt_PrintDialog&quot;,<br> &gt;                      \
&quot;PyQt_PrintPreviewDialog&quot;, &quot;PyQt_PrintPreviewWidget&quot;<br> &gt;     \
],<br> &gt;              &quot;source&quot;: &quot;PyQt5_gpl-5.10.1.tar.gz&quot;,<br>
&gt;              &quot;android#modules&quot;:                     [<br>
&gt;                          &quot;QtCore&quot;, &quot;QtGui&quot;, \
&quot;QtNetwork&quot;, &quot;QtQml&quot;, &quot;QtQuick&quot;, &quot;QtSvg&quot;, \
&quot;QtWidgets&quot;,<br> &gt;                          \
&quot;QtAndroidExtras&quot;<br> &gt;              ]<br>
&gt;        }<br>
&gt; }<br>
<br>
</div></div>The meta-data for the &#39;grp&#39; module may be incorrect for Android. \
Edit the &#39;grp&#39; entry in pyqtdeploy/metadata/python_<wbr>metadata.py and \
change target=&#39;!win&#39; to target=&#39;linux|ios|macos&#39;<br> <span \
class=""><br> &gt; Also somewhat not relevant question but when is the next PyPi \
release expected? The current one does not support Python 3.6.5 but as I saw the \
pyqtdeploy source it already does.<br> <br>
</span>I&#39;m waiting for the release of Python v3.7.<br>
<span class="HOEnZb"><font color="#888888"><br>
Phil<br>
</font></span></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