[Librem-5-dev] A few questions about development
David Boddie
david.boddie at puri.sm
Thu Jan 24 13:06:29 PST 2019
On Thursday, 24 January 2019 17:08:43 CET David Boddie wrote:
> A minimal QML example would be useful here, so that the issue can be
> reproduced easily.
Just following up my own message with a bit more information.
I went looking for something to use and found this page, which we also link
to in the Librem 5 developer documentation:
https://docs.plasma-mobile.org/AppDevelopment.html
In particular, the "Using the Kirigami application template" section was
useful for providing a simple app to work with:
https://docs.plasma-mobile.org/AppDevelopment.html#using-the-kirigami-application-template
The "Local building and testing using the SDK" subsection contains the
commands needed to set up the build environment and build the app:
https://docs.plasma-mobile.org/AppDevelopment.html#local-building-and-testing-using-the-sdk
I also needed to install the Platform runtime as well as the Sdk runtime:
flatpak install flathub org.kde.Platform//5.12
I needed to change the version number in the manifest to use 5.12 instead of
5.11 - this fixed a bug with the window size which could be related to what
you see. I have attached the diff for this.
The app runs in the X11 hosted environment on my desktop machine - see the
attached screenshot. It doesn't have any window decorations and runs as a
maximized window. I don't know how the Component and Kirigame.Page elements
are implemented, so I can't say anything about how they get this behavior.
To build this app for the Librem 5 emulator or hardware, you will need to use
the aarch64 runtimes:
org.kde.Platform/aarch64/5.12
org.kde.Sdk/aarch64/5.12
I ran into problems with the Flathub service at this point. You might have
more luck!
Regards,
David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello-kirigami-phosh.png
Type: image/png
Size: 11103 bytes
Desc: not available
URL: <http://lists.community.puri.sm/pipermail/librem-5-dev/attachments/20190124/d8375cc3/attachment.png>
-------------- next part --------------
diff --git a/org.kde.hellokirigami.json b/org.kde.hellokirigami.json
index 945dd23..0062fe2 100644
--- a/org.kde.hellokirigami.json
+++ b/org.kde.hellokirigami.json
@@ -1,7 +1,7 @@
{
"id": "org.kde.hellokirigami",
"runtime": "org.kde.Platform",
- "runtime-version": "5.11",
+ "runtime-version": "5.12",
"sdk": "org.kde.Sdk",
"command": "hellokirigami",
"tags": ["nightly"],
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.community.puri.sm/pipermail/librem-5-dev/attachments/20190124/d8375cc3/attachment.sig>
More information about the Librem-5-dev
mailing list