[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"><<a href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>></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 <<a \
href="mailto:viktorvector@gmail.com">viktorvector@gmail.com</a>> wrote:<br> > \
<br> > Hello,<br>
> <br>
> I'm trying to build my application using pyqtdeploy 2.1, ndk r10e with \
android platform 21.<br> > Building sysroot succeeds but building the application \
fails, the error I get is<br> > <br>
> grpmodule.o:grpmodule.c:<wbr>function grp_getgrall: error: undefined reference \
to 'setgrent'<br> > grpmodule.o:grpmodule.c:<wbr>function grp_getgrall: \
error: undefined reference to 'getgrent'<br> > \
grpmodule.o:grpmodule.c:<wbr>function grp_getgrall: error: undefined reference to \
'endgrent'<br> > grpmodule.o:grpmodule.c:<wbr>function grp_getgrall: \
error: undefined reference to 'endgrent'<br> > <br>
> 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.<br> > <br>
> <br>
> My json file I used to build my sysroot<br>
> <br>
> {<br>
> "Description": "A skeleton sysroot \
specification.",<br> > <br>
> "qt5": {<br>
> "android#qt_dir": \
"/home/name/Qt/*/android_<wbr>armv7"<br> > },<br>
> "python": {<br>
> "build_host_from_source":true,<br>
> "build_target_from_source": true,<br>
> "source": "Python-3.6.4.tar.xz"<br>
> },<br>
> <br>
> "sip": {<br>
> "source": "sip-4.19.8.tar.gz"<br>
> },<br>
> <br>
> "pyqt5": {<br>
> "android#disabled_features": [<br>
> "PyQt_Desktop_OpenGL", \
"PyQt_Printer", "PyQt_PrintDialog",<br> > \
"PyQt_PrintPreviewDialog", "PyQt_PrintPreviewWidget"<br> > \
],<br> > "source": "PyQt5_gpl-5.10.1.tar.gz",<br>
> "android#modules": [<br>
> "QtCore", "QtGui", \
"QtNetwork", "QtQml", "QtQuick", "QtSvg", \
"QtWidgets",<br> > \
"QtAndroidExtras"<br> > ]<br>
> }<br>
> }<br>
<br>
</div></div>The meta-data for the 'grp' module may be incorrect for Android. \
Edit the 'grp' entry in pyqtdeploy/metadata/python_<wbr>metadata.py and \
change target='!win' to target='linux|ios|macos'<br> <span \
class=""><br> > 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'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