[PATCH] WIP: use kirigami plugin instead of embedding in qrc

Rick Walsh rickmwalsh at gmail.com
Fri Jul 8 01:55:05 PDT 2016


Marco,

On 29 June 2016 at 23:35, Marco Martin <notmart at gmail.com> wrote:

> The branch has been merged in master,
> the attanched patch to subsurface makes it correctly load with
> kirigami built in static mode
>
> With your patch, and a few changes to packacking/android/build.sh (see
attached), I can build an apk for Subsurface-mobile.  Unfortunately, it
crashes on loading:
07-08 18:18:00.381  6420  6449 W Subsurface: (null):0 ((null)):
QQmlApplicationEngine failed to load component
07-08 18:18:00.381  6420  6449 W Subsurface: (null):0 ((null)):
qrc:///qml/main.qml:15 Type Kirigami.ApplicationHeader unavailable
07-08 18:18:00.381  6420  6449 W Subsurface: qrc:/ApplicationHeader.qml:-1
File not found
07-08 18:18:00.381  6420  6449 W Subsurface:
07-08 18:18:00.641  3485  4750 I WindowState: WIN DEATH: Window{ee2cd59 u0
d0
org.subsurfacedivelog.mobile/org.qtproject.qt5.android.bindings.QtActivity}

If I build subsurface-mobile to run on my desktop by running
'./subsurface/scripts/build.sh -mobile', I also get an error saying some
qml file (it notes a different file each time I try to run) can't be found:
[rick at myapartment build-mobile]$ ./subsurface-mobile
QQmlApplicationEngine failed to load component
qrc:///qml/main.qml:306 Type Kirigami.ContextDrawer unavailable
qrc:/ContextDrawer.qml:-1 File not found

can't create window object
[rick at myapartment build-mobile]$ ./subsurface-mobile
QQmlApplicationEngine failed to load component
qrc:///qml/main.qml:324 Type DiveList unavailable
qrc:///qml/DiveList.qml:61 Type Kirigami.Label unavailable
qrc:/Label.qml:-1 File not found

can't create window object
[rick at myapartment build-mobile]$ ./subsurface-mobile
QQmlApplicationEngine failed to load component
qrc:///qml/main.qml:340 Type Preferences unavailable
qrc:///qml/Preferences.qml:9 Type Kirigami.Page unavailable
qrc:/Page.qml:-1 File not found

can't create window object



Am I building it wrong?  One line I removed from the build script was the
Kirigami 'make install'.  If I keep it in, I get:
make: *** No rule to make target 'install'.  Stop.

Cheers,

Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20160708/42bc85dd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Update-packaging-android-build.sh.patch
Type: text/x-patch
Size: 2237 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20160708/42bc85dd/attachment.bin>


More information about the subsurface mailing list