Bug 396068 - Make qml-module-qt-labs-platform a build dependency
Summary: Make qml-module-qt-labs-platform a build dependency
Status: RESOLVED INTENTIONAL
Alias: None
Product: Elisa
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-01 23:59 UTC by Nate Graham
Modified: 2019-08-05 16:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2018-07-01 23:59:04 UTC
If you build Elisa from source but don't have qml-module-qt-labs-platform installed from something else, Elisa won't launch:

$ elisa
[...]
QQmlApplicationEngine failed to load component
qrc:/qml/ElisaMainWindow.qml:259 Type ContentView unavailable
qrc:/qml/ContentView.qml:427 Type MediaPlayListView unavailable
qrc:/qml/MediaPlayListView.qml:26 module "Qt.labs.platform" is not installed

Now technically it's a runtime dependency and not a build dependency, but it would be nice if this dependency were expressed in CMakeLists.txt so that build-from-source users would get all the requisite dependencies.

Or if that's not the right way to express runtime dependencies for build-from-source users... it would be nice if whatever right way to do it may be got done. :)
Comment 1 Matthieu Gallien 2018-07-03 19:40:35 UTC
Unfortunately, I do not think there is a way to test with find_package for pure qml modules from cmake. This is the reason we have documented such dependencies in the community Elisa wiki page and the README.packagers file.
Comment 2 Matthieu Gallien 2018-09-05 19:30:45 UTC
There is one thing that Elisa could do better is handling nicely (from a user point of view) errors when setting up its qml UI.
Can I modify a bit your report to reflect that ?
Comment 3 Nate Graham 2019-08-05 16:26:50 UTC
Probably not worth it TBH. People building from source should be able to read the docs and figure it out.