Developing UBPorts apps with Python and PinePhone (questions
-
Hey All,
New to development/open source and kinda confused. I'm working on a "book" to outline the steps for developing an app for UBPorts with Clickable and Python. Thing is now I am utterly stuck. I've gotten as far as being able to start and build my app with clickable but now I'm trying to move on to running it to preview/debug it and everything is stopping making sense.
so I guess my top 3 Questions are:
*First and perhaps most importantly, is python even a good choice to persue right now or are most of the tools in a state that make approaching a native app through QML/C a better option?
*We can't use ADB with PinePhone which is what 90% of the documentation references. So what do you do now to send an app to the pine phone to test? I have a suspicion you do this with SSH Somehow based off what I'm reading. See
https://forums.ubports.com/topic/4280/how-do-i-install-openssh-server
https://forums.ubports.com/topic/4004/ssh-into-oneplus-3t?_=1589310095260*How do you get access to QT Creator? If I understand correctly, you need QT Creator to build your interface and in some cases code logic, however, I tried to download the evaluation and they revoked it the next day cause I'm not a "Viable Business"?
any help our guidance would be MUCH Appreciated.
-
@djkemmet said in Developing UBPorts apps with Python and PinePhone (questions:
*We can't use ADB with PinePhone which is what 90% of the documentation references. So what do you do now to send an app to the pine phone to test? I have a suspicion you do this with SSH Somehow based off what I'm reading. See
clickable --ssh ip
-
@djkemmet said in Developing UBPorts apps with Python and PinePhone (questions:
New to development/open source and kinda confused. I'm working on a "[book](https://github.com/djkemmet
*We can't use ADB with PinePhone
*How do you get access to QT Creator? If I understand correctly, you need QT Creator to build your interface and in some cases code logic, however, I tried to download the evaluation and they revoked it the next day cause I'm not a "Viable Business"?If you want to use QT stack to develop open source software, it's available for downloading here: https://www.qt.io/download-open-source?hsCtaTracking=9f6a2170-a938-42df-a8e2-a9f0b1d6cdce|6cb0de4f-9bb5-4778-ab02-bfb62735f3e5
With Ubuntu,
sudo apt install qtcreator
is an other way. -
@djkemmet quick answering:
- Python is as good as any other language to app
- As you discovered, no adb (the PinePhone doesn't use Android drivers, just mainline kernel) so as pointed above, shh
- Even of there is work to make Qt Creator work again, we use clickable for developement: https://clickable-ut.dev/
Maybe you want to join forces with MiMeCar https://qt-programming-course-sphinx.readthedocs.io/en/latest/
-
@djkemmet said in Developing UBPorts apps with Python and PinePhone (questions:
... If I understand correctly, you need QT Creator to build your interface and in some cases code logic ...
You don't need qtcreator at all. But it might be useful to get code completion/navigation for example. Therefor it needs to be configured/setup correctly. @lduboeuf and @jonius are working on that currently. (See latest Q&A: https://www.youtube.com/watch?v=ir4hqfayd7w)
Regarding python for the app backend/logic you may want to have a look at:
-
@djkemmet hello, once you have clickable up and running, if you want to preview your app on your PC/laptop you (this can aid quick development) can do:
clickable desktop
Clickable docs: https://clickable-ut.dev/en/latest/index.html
Good luck.
-
@Bolly said in Developing UBPorts apps with Python and PinePhone (questions:
@djkemmet said in Developing UBPorts apps with Python and PinePhone (questions:
*We can't use ADB with PinePhone which is what 90% of the documentation references. So what do you do now to send an app to the pine phone to test? I have a suspicion you do this with SSH Somehow based off what I'm reading. See
clickable --ssh ip
Does any additional set up need to be done on the PinePhone or clickable sign into the device and do everything to make it work?