Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Windows 10 for Android Project
Forum Updated to NodeBB v4.3 + New Features

Windows 10 for Android Project

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    roscoe_x
    wrote on last edited by
    #1

    I develop a C++ project and want this project to run in Android. I use QT Creator 4.3.1, Window 10, Android Studio 3.2 (Mainly for setup the Android SDK tools and build tools).

    So after I setup JDK location, Android SDK and NDK location in Tools > Options > Devices > Android. And check Autmotically create kits for Android tool chains. Then I check Build & Run > Kits, but I cannot find the auto-detected kits there. Why QT Creator can't create the auto-detected kits?

    So I add a new kit for Android. The settings as picture below.
    0_1538022511563_QtCreator_Build&Run_KitsSettings_2.png

    I get the compiler from
    ...\ndk-bundle\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\bin

    When building the project I get "Cannot find the android build step." Error. When executing step "Deploy to Android device". Where can I change the step to set to an Android device?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Clang is not yet supported by Qt for Android, you need to use gcc.

      I suggest you update your Qt Creator and try adding NDK/SDK again to see if it will generate the kits automatically then.

      Also, make sure you have Qt for Android installed - check your Qt Maintenance Tool.

      (Z(:^

      R 1 Reply Last reply
      0
      • sierdzioS sierdzio

        Clang is not yet supported by Qt for Android, you need to use gcc.

        I suggest you update your Qt Creator and try adding NDK/SDK again to see if it will generate the kits automatically then.

        Also, make sure you have Qt for Android installed - check your Qt Maintenance Tool.

        R Offline
        R Offline
        roscoe_x
        wrote on last edited by
        #3

        @sierdzio If I use MinGW 5.3.0 for the compiler I get different compilation error. Can I use MinGW? The error I get is "Project ERROR: Unknown module(s) in QT: webenginewidgets". How to remove this error? I've tried changing *.pro file, add a line Qt+=webenginewidgets, but still getting same error.

        I already install QT with webenginewidgets module. I also install QT to support Android.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          You have to use the cross-compiler from Android NDK.

          (Z(:^

          R 1 Reply Last reply
          0
          • sierdzioS sierdzio

            You have to use the cross-compiler from Android NDK.

            R Offline
            R Offline
            roscoe_x
            wrote on last edited by
            #5

            @sierdzio Is there any guidance on how to do cross-compiling on Android?

            sierdzioS 1 Reply Last reply
            0
            • R roscoe_x

              @sierdzio Is there any guidance on how to do cross-compiling on Android?

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @roscoe_x said in Windows 10 for Android Project:

              @sierdzio Is there any guidance on how to do cross-compiling on Android?

              Yes, with Qt it's very simple.

              1. Install Java.
              2. Install Android SDK.
              3. Install Android NDK.
              4. Install Qt.
              5. Set up Qt Creator for Android development.
              6. Compile & run your apps - same way as on any other platform.

              Qt does all the heavy lifting for you.

              (Z(:^

              1 Reply Last reply
              0
              • R Offline
                R Offline
                roscoe_x
                wrote on last edited by
                #7

                I have found the problem. The auto-detect kits function only works using NDK 10, while before I was using NDK 18. So after selecting the kits, the project can be built. But this problem is hard to detect because there's no useful information.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved