Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › Emulators In Felgo

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #12059

    Benas

    Hello,
    I have built Felgo application. How can I configure to run on Android emulator?
    I have properly installed Ant, Java, NDK, Android SDK, but I can’t seem to launch my application on Android emulator. Can you help me?

    #12060

    Günther
    Felgo Team

    Hi Benas!

    Here’s the official Qt link about deploying to android devices or emulators: Connecting Android Devices

    You should see the available Android emulators in the Qt Creator options/preferences in the Android section.
    Just create, configure and start the emulators there. You can also use the Android Studio AVD Manager if you prefer that.
    You then should be able to select the emulator when running an Android build. It appears in the list of available devices just like a real connected Android device.

    Best,
    Günther

    #12065

    Benas

    I’m sorry but I can’t seem to find options/preferences in qt android section.
    This is what steps I take:
    1)  configure Tools->Options->Android window like this:
    (set JDK, SDK, NDK locations, mark “Automatically create kits for Android tool chains”)
    then in same window I press “Start AVD Manager…” add Virtual (emulator ) device – it says – “AVD_For_Nexus_4_By_google” avd target – API 10, CPU/ABI – armeabi
    this is what it looks like:
    http://s19.postimg.org/s8u13n0cz/android_COnfig.png
    ohh. and it says that i have 11 toolchains for this NDK.
    Then I press apply.

    2) Go to Tools ->Options -> Qt build And Run -> Kits -> Add manaual kit
    I select device type as “Android device”
    device – “Run on Android (Default for Android)”
    And I make it this kit as “Default”
    like this:
    http://s19.postimg.org/twxrw13mb/create_New_Kit.png
    Press Apply

    3) Go to “Projects”->”My kit name”->”Run”

    and all I can see is
    http://s19.postimg.org/j7k33rrtf/run_Config.png
    4) Press “Build “-> “Run”
    And window appears which asks for executable

    http://s19.postimg.org/dxf4ch7kj/Run.png

    I don;t know what to do next .

    These tutorials doesn’t help much

    #12069

    Benas
    #12070

    Günther
    Felgo Team

    I did mean the Android section in the options/preferences – maybe I didn’t write that clear enough 😉

    Actually, it shouldn’t be necessary to manually add a Qt Kit for Android. After everything is installed, it should be auto-detected.
    Did you maybe miss the installation of the Qt packages for Android? They are also required besides the Android SDK/NDK.
    You can install them with the MaintenanceTool in your Felgo installation folder. Choose “Add or remove components” and select “Android armv7” in the Qt/Qt 5.5 section.

    #12071

    Benas

    GT said:

    I did mean the Android section in the options/preferences – maybe I didn’t write that clear enough 😉

    Actually, it shouldn’t be necessary to manually add a Qt Kit for Android. After everything is installed, it should be auto-detected.
    Did you maybe miss the installation of the Qt packages for Android? They are also required besides the Android SDK/NDK.
    You can install them with the MaintenanceTool in your Felgo installation folder. Choose “Add or remove components” and select “Android armv7” in the Qt/Qt 5.5 section.

    Yes it did the job. After installing “Android armv7” in the Qt/Qt 5.5 section I was able to choose Android for armeabi-v7a kit in “Projects”. In “manage kits” I also choose this kit as default, then started the game, everything built successfully , when emulator showed up, I swithched it on and waited until the deployment finished (took me about 18 mins). I’m very grateful for your help! Thank you very much!

    #12074

    Günther
    Felgo Team

    Glad to hear it works!
    Have fun developing 😉

Viewing 7 posts - 1 through 7 (of 7 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded