Bear with me here, I only get the chance to occasionally tinker with app development for the phone.
I've seen it stated in numerous places that qmlscene is essentially a debugging and/or prototyping tool, and shouldn't be in the Exec line of your app's .desktop file for running on the phone. Instead we should write a C++ app launcher. I've also seen it stated that cmake is the way to build cross-compiled native apps.
Now, I've seen examples of the C++ launcher approach, and I've seen many projects using cmake. Great! But of the examples I've seen, most seem to have to"hunt" for the main QML file to build the QQuickView - they iterate over a bunch of common directories (standard data locations, the app's current working directory, the location of the executable) and see if the QML file exists there, and if so declare success. This surely can't be the recommended approach?
I'm new to all of this - cmake, QML, Qt - but all I really want is a tidy working tree - `po` and `src` and the Click files at the top level; `app` and `backend` under `src`; `.cpp` files and `qml` and `graphics` directories under `app`. And a separate build directory, out of the way. And then Build and Run and not be told "file:///home/jtait/src/QtCreator/.build/macrocosm-Desktop-Default/src/app/qml/Main.qml: File not found". And then to package it as a Click and run it on my phone.
Where can I find the resources I need to understand this stuff?