What is the EASIEST/QUICKIEST way to generate an android APK using Felgo Qt Creator?

388 Views Asked by At

There is no such android options and menus here: https://stackoverflow.com/a/28292048/5648245 :(

Duplicate? Issues to build apk with qt creator why there is no answer there after one year!?

At menu "Tools/Options/Kits" the only auto detected is felgo desktop gcc.

Obs.: I can't stand watching videos with instructions in case there is any...

ps.: I am using Qt Creator 4.11.2 on Ubuntu 18.04


update:

I tried gradle as specified here: https://developer.android.com/studio/build/building-cmdline#DebugMode
with: gradle assembleDebug
but there is no such task as I confirm with gradle tasks --all.

also there is an android path with these files:

AndroidManifest.xml
build.gradle

and gradle tasks there outputs this error:
Could not get unknown property 'androidCompileSdkVersion' for extension 'android' of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension.

I think I need to install android compiler? I will research more later...

2

There are 2 best solutions below

5
TSG On

I suggest you start with pure Qt Creator (implement a simple game in QML). Qt Creator has excellent online instructions and support on various forums. If you need physics for 2d game consider adding QML-BOX2D. (An open source add-on).

Felgo has wrapped some functions to save you a few steps, but their claim of 90% less code then other platforms is due to QML (little to do with Felgo). Felgo forum posts from users are unanswered and the Felgo Slack channel shows unanswered questions going back months! But it doesn't matter if Felgo is dying, you should still start with pure Qt / QML

The Qt site offers instructions for compiling to APK (see Qt Android Instructions), they even have helper classes for placing the executable in the app stores/selling. Once you master QML (and possible QML-box2d) then you can look at some add-ons to make life a bit simpler.

I would however suggest you move to Qt5 - Qt4 is getting pretty old. I'm not saying QML is the "best" game dev platform, but if Qt/QML/C++ checks your boxes then it is great and you should be able to build for Android fairly easily using the link above (instructions too long to copy into this answer)

1
Miguel Rodrguez On

You should be fine following the steps in this guide https://felgo.com/doc/felgo-deployment-android/#add-felgo-packages-for-android-platform

There is also Felgo Cloud Builds, you don't have to setup anything on your machine https://felgo.com/cloud-builds, even you can skip any install by using the WebIDE http://ide.felgo.com/