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

List:       pykde
Subject:    Re: [PyQt] Debugging PyQt application on Android
From:       Alexander_Rössler <machinekoder () gmail ! com>
Date:       2019-01-21 10:48:53
Message-ID: CAMQ_J10tSqz1mGjaFZQupiK3_XPpKFVP-rAOmJTegReYHamDmQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I can confirm that the version of Qt version I tested with works perfectly
fine on Android using Qt/C++. Debugging a Qt/C++ application from Qt
Creator also works great via gdb.

As for PyQt, there is no mentioning of any specific version being supported
or tested with Android:
http://pyqt.sourceforge.net/Docs/pyqtdeploy/overview.html It only says
android-32 is supported (I guess this means 32bit arm?). This doesn't
really help as there are many different Android API versions for both SDK
and NDK. I know from other projects that choosing the right NDK and SDK
versions makes a project run or not. Therefore, it would be great if the
guide would mention the versions pyqtdeploy has been tested with.

I also tried adb logcat for debugging, but unfortunately, that's only
helpful if the application is already started and not if exiting during
start. It looks like it's exiting cleanly as neither logcat nor the phone
UI shows an error message.

Am Mo., 21. Jan. 2019 um 00:06 Uhr schrieb K=C3=A1lm=C3=A1n Viktor <
viktorvector@gmail.com>:

> The QT documentation states which versions are supported:
> http://doc.qt.io/qt-5/android-getting-started.html as for Python/PyQt
> afaik all recent versions should be.
>
> For debug you can check the Android logs with `adb logcat` also the
> Android debugger somewhat works with the the apk that pyqtdeploy produces
> however I haven't used it much.
>
> Alexander R=C3=B6ssler <machinekoder@gmail.com> ezt =C3=ADrta (id=C5=91po=
nt: 2019. jan.
> 16., Sze, 20:17):
>
>> I succeeded in building the PyQt-demo application for Android using
>> pyqtdeploy. However, the app instantly closes (no crash notification) af=
ter
>> opening. What is the best way to debug the problem?
>>
>>
>> The documentation for pyqtdeploy does not state which version of Android
>> NDK/SDK, Python and PyQt it has been tested against, it would be great t=
o
>> include this information.
>>
>>
>> Thanks,
>>
>> Alex
>>
>>
>>
>> _______________________________________________
>> PyQt mailing list    PyQt@riverbankcomputing.com
>> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>

[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr"><div>I can confirm that the version of Qt version I \
tested with works perfectly fine on Android using Qt/C++. Debugging a Qt/C++ \
application from Qt Creator also works great via gdb.</div><div><br></div><div>As for \
PyQt, there is no mentioning of any specific version being supported or tested with \
Android:  <a href="http://pyqt.sourceforge.net/Docs/pyqtdeploy/overview.html">http://pyqt.sourceforge.net/Docs/pyqtdeploy/overview.html</a> \
It only says android-32 is supported (I guess this means 32bit arm?). This \
doesn&#39;t really help as there are many different Android API versions for both SDK \
and NDK. I know from other projects that choosing the right NDK and SDK versions \
makes a project run or not. Therefore, it would be great if the guide would mention \
the versions pyqtdeploy has been tested with.</div><div><br></div><div>I also tried \
adb logcat for debugging, but unfortunately, that&#39;s only helpful if the \
application is already started and not if exiting during start. It looks like \
it&#39;s exiting cleanly as neither logcat  nor the phone UI shows an error \
message.</div></div></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">Am Mo., 21. Jan. 2019 um 00:06  Uhr schrieb Kálmán Viktor &lt;<a \
href="mailto:viktorvector@gmail.com">viktorvector@gmail.com</a>&gt;:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">The QT documentation \
states which versions are supported:  <a \
href="http://doc.qt.io/qt-5/android-getting-started.html" \
target="_blank">http://doc.qt.io/qt-5/android-getting-started.html</a> as for \
Python/PyQt afaik all recent versions should be.</div><div \
dir="ltr"><br></div><div>For debug you can check the Android logs with `adb logcat` \
also the Android debugger somewhat works with the the apk that pyqtdeploy produces \
however I haven&#39;t used it much.  </div></div><br><div class="gmail_quote"><div \
dir="ltr" class="gmail-m_-1670269772080234647gmail_attr">Alexander Rössler &lt;<a \
href="mailto:machinekoder@gmail.com" target="_blank">machinekoder@gmail.com</a>&gt; \
ezt írta (időpont: 2019. jan. 16., Sze, 20:17):<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p \
style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">I \
succeeded in building the PyQt-demo application for Android using pyqtdeploy. \
However, the app instantly closes (no crash notification) after opening. What is the \
best way to debug the problem?</p><p \
style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px"><br></p><p \
style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">The \
documentation for pyqtdeploy  does not state which version of Android NDK/SDK, Python \
and PyQt it has been tested against, it would be great to include this \
information.</p><p style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px"><br></p><p \
style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">Thanks,</p><p \
style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">Alex</p><p \
style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px"><br></p><div \
id="gmail-m_-1670269772080234647gmail-m_4183672296539501654gmail-x_Signature" \
style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px"><div \
id="gmail-m_-1670269772080234647gmail-m_4183672296539501654gmail-x_divtagdefaultwrapper" \
dir="ltr" style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif,EmojiFont,&quot;Apple \
Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI \
Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols"><p \
style="margin-top:0px;margin-bottom:0px"></p><br></div></div></div> \
_______________________________________________<br> PyQt mailing list      <a \
href="mailto:PyQt@riverbankcomputing.com" \
target="_blank">PyQt@riverbankcomputing.com</a><br> <a \
href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" \
target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br> \
</blockquote></div> _______________________________________________<br>
PyQt mailing list      <a href="mailto:PyQt@riverbankcomputing.com" \
target="_blank">PyQt@riverbankcomputing.com</a><br> <a \
href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" \
target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br> \
</blockquote></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