Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using qbs on android #298

Closed
raphaelcotty opened this issue Oct 10, 2019 · 6 comments
Closed

Using qbs on android #298

raphaelcotty opened this issue Oct 10, 2019 · 6 comments

Comments

@raphaelcotty
Copy link
Contributor

With qbs 1.14 android support has improved.
Is there any plan to support qbs now?
I tried it but I get this error:
W Test: QQmlApplicationEngine failed to load component
W Test: qrc:/MemoVache.qml:9 module "Fluid.Controls" is not installed

But I see that the apk file has the module installed.

@plfiorini
Copy link
Member

plfiorini commented Oct 10, 2019

I love Qbs, it's far superior than any other build system out there.
However I don't see a clear leadership emerging from the mailing list and there is no concrete roadmap for the post TQtC life. For this reason I don't think it's safe to try again, at least not just yet.

The .qbs files in this repository are no longer being updated.
They were not deleted merely because, in case Qbs will be a viable option in the future, we don't have to start from scratch again.

That being said, I think that CMake supports Android and it's integrated with QtCreator.
I'm not sure how to do that yet (there are toolchain files) but it's possible, so it's a matter of reading some docs and doing it.

@raphaelcotty
Copy link
Contributor Author

Me too I love qbs. And i am not willing to come back to cmake. I've used it enough in past to hate it.
Anyway, I just managed to make it work.
I had to do a couple of things:

  1. Remove the Android.ndk.appStl: "gnustl_shared" properties as qt 5.13 builds with clang++

  2. Remove the AbstractCard 1.0 AbstractCard.qml and ContactChip 1.1 ContactChip.qml line in imports/controls/qmldir

Are you interesting in updating the files?

@plfiorini
Copy link
Member

plfiorini commented Oct 10, 2019

If you can help maintaining .qbs files I would gladly keep Qbs around as an option even though the officially supported build system is CMake.

This means that I will accept PRs but I will focus my energy on CMake. Qbs is best effort and not the main build system.

@raphaelcotty
Copy link
Contributor Author

ok,
Trying to build the demo but getting this error in demo.qbs:
fluid/src/demo/demo.qbs:7: avertissement : Item 'bundle' is not declared. Did you forget to add a Depends item?

When using the repository as a SubProject it works.

@plfiorini
Copy link
Member

The bundle module is for Core Found bundle support: https://doc.qt.io/qbs/qml-qbsmodules-bundle.html
It didn't need any Depends back in qbs 1.9.x it should be available everywhere but useful on macOS
That what this line is for: https://github.com/lirios/fluid/blob/develop/src/demo/demo.qbs#L117
On macOS it creates a bundle instead of a normal executable

@plfiorini
Copy link
Member

Since it's a module I guess Depends will work, probably for some obscure bug it was possible to use it without Depends before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants