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. QtCreator not detecting android GCC
Forum Updated to NodeBB v4.3 + New Features

QtCreator not detecting android GCC

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
11 Posts 4 Posters 2.0k Views
  • 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.
  • K Offline
    K Offline
    kgregory
    wrote on last edited by
    #1

    I'm installing a fresh setup to build an Android App on my computer and it seems no matter what I try, Creator won't detect the GCC compiler for android. Below is my setup. I've tried NDK versions r10e, r15c, r16b, r17c, and r18b.

    I'm using QtCreator 4.8.0. I want to use Qt5.9.3, but tried 5.12.0 as well to see if that would work (it didn't).

    I'm willing to try Clang as well, but it hasn't been working for me in any configuration I've tried. I get this error: https://forum.qt.io/topic/91958/android-not-working-in-qt5-11-1

    0_1547617185535_66b16ed3-cbd6-4496-a821-1b47f2c7ee11-image.png

    0_1547617206412_bddc171f-7d7b-406a-b1d8-dacc3b196312-image.png

    jsulmJ J.HilkJ 2 Replies Last reply
    0
    • K kgregory

      I'm installing a fresh setup to build an Android App on my computer and it seems no matter what I try, Creator won't detect the GCC compiler for android. Below is my setup. I've tried NDK versions r10e, r15c, r16b, r17c, and r18b.

      I'm using QtCreator 4.8.0. I want to use Qt5.9.3, but tried 5.12.0 as well to see if that would work (it didn't).

      I'm willing to try Clang as well, but it hasn't been working for me in any configuration I've tried. I get this error: https://forum.qt.io/topic/91958/android-not-working-in-qt5-11-1

      0_1547617185535_66b16ed3-cbd6-4496-a821-1b47f2c7ee11-image.png

      0_1547617206412_bddc171f-7d7b-406a-b1d8-dacc3b196312-image.png

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @kgregory Why do you want to use GCC? If Google uses CLang in NDK then you have to use it as well.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply
      0
      • K kgregory

        I'm installing a fresh setup to build an Android App on my computer and it seems no matter what I try, Creator won't detect the GCC compiler for android. Below is my setup. I've tried NDK versions r10e, r15c, r16b, r17c, and r18b.

        I'm using QtCreator 4.8.0. I want to use Qt5.9.3, but tried 5.12.0 as well to see if that would work (it didn't).

        I'm willing to try Clang as well, but it hasn't been working for me in any configuration I've tried. I get this error: https://forum.qt.io/topic/91958/android-not-working-in-qt5-11-1

        0_1547617185535_66b16ed3-cbd6-4496-a821-1b47f2c7ee11-image.png

        0_1547617206412_bddc171f-7d7b-406a-b1d8-dacc3b196312-image.png

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by J.Hilk
        #3

        @kgregory
        as a rule of thumb, that works for me,

        r10e for Qt version < 5.12 , r18b for 5.12+

        You have to delete your build fodler for a clean rebuild after changing NDK-settings!


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        K 1 Reply Last reply
        3
        • jsulmJ jsulm

          @kgregory Why do you want to use GCC? If Google uses CLang in NDK then you have to use it as well.

          K Offline
          K Offline
          kgregory
          wrote on last edited by
          #4

          @jsulm like I said, when I try to use Clang, I get this error message about failing to copy files. I'm stumped on how to resolve that as well. (See the link to the other thread in my original post)

          I'm working on a project that is fairly mature, I just want to develop a few updates for it. I foolishly decided to update Qt and SDK and everything broke. Now I can't get anything working again.

          1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            @kgregory
            as a rule of thumb, that works for me,

            r10e for Qt version < 5.12 , r18b for 5.12+

            You have to delete your build fodler for a clean rebuild after changing NDK-settings!

            K Offline
            K Offline
            kgregory
            wrote on last edited by
            #5

            @J.Hilk did you use android studio or the command line tools only? what version?

            This is incredibly frustrating for me because I'm trying all of these things that other people say works for them and it's just not working for me. I tried 5.12 with r18b. I also wipe out my .pro.user file as well as the build folders and the QtCreator settings every time I try a new configuration just to make sure I'm starting fresh.

            Do I need to do something to install NDK besides extract it and point QtCreator to it? I must be fundamentally just not doing something correctly when I set this up...

            J.HilkJ 1 Reply Last reply
            0
            • K kgregory

              @J.Hilk did you use android studio or the command line tools only? what version?

              This is incredibly frustrating for me because I'm trying all of these things that other people say works for them and it's just not working for me. I tried 5.12 with r18b. I also wipe out my .pro.user file as well as the build folders and the QtCreator settings every time I try a new configuration just to make sure I'm starting fresh.

              Do I need to do something to install NDK besides extract it and point QtCreator to it? I must be fundamentally just not doing something correctly when I set this up...

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @kgregory

              I usually only install the command line tools, and I download them from the website linked inside QtCreator, when you click on the button next to the path selection.

              This is incredibly frustrating for me because I'm trying all of these things that other people say works for them and it's just not working for me.

              I hear you, been there multiple times myself!

              android studio or the command line tools

              be careful when you also have AndroidStudio installed, if you install ndk and sdk stuff via that program you may run into trouble. Because, IIRC than A-Studio creates system path variables that mess up your QtC compilation.
              I run into that when I first started with App-Development for android & Qt ended up completely removing Android Studio haven't installed it since then ;-)

              As a add on, I'm using the jdk1.8.0_192 compared to your 1.8.0_191, may be irrelevant or not.


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              1 Reply Last reply
              2
              • K Offline
                K Offline
                kgregory
                wrote on last edited by
                #7

                Tried the command line tools, same problem. I updated java again as well, to JDK 8 u202. Still the same problem.

                I'm about ready to give up on this.

                J.HilkJ 1 Reply Last reply
                0
                • K kgregory

                  Tried the command line tools, same problem. I updated java again as well, to JDK 8 u202. Still the same problem.

                  I'm about ready to give up on this.

                  J.HilkJ Offline
                  J.HilkJ Offline
                  J.Hilk
                  Moderators
                  wrote on last edited by
                  #8

                  @kgregory from the link and the pictures you posted, I don't think your problem is actually with nkd/sdk/jdk or the compiler.

                  set the ndk to 18b, qt version to 5.12 and make a clean new hello world application,
                  can you than post the actual error you have?


                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  K 1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    morte
                    wrote on last edited by morte
                    #9

                    Note that there is bug in QtCreator 4.8.0 (and looks like also in 4.8.1) with compiler name display https://bugreports.qt.io/browse/QTCREATORBUG-21644 (if you got that issue too please vote for issue at bugtracker because its reported but not opened)

                    K 1 Reply Last reply
                    2
                    • M morte

                      Note that there is bug in QtCreator 4.8.0 (and looks like also in 4.8.1) with compiler name display https://bugreports.qt.io/browse/QTCREATORBUG-21644 (if you got that issue too please vote for issue at bugtracker because its reported but not opened)

                      K Offline
                      K Offline
                      kgregory
                      wrote on last edited by
                      #10

                      @morte well that explains why there seems to be two copies of each kit. I was confused about that.

                      1 Reply Last reply
                      0
                      • J.HilkJ J.Hilk

                        @kgregory from the link and the pictures you posted, I don't think your problem is actually with nkd/sdk/jdk or the compiler.

                        set the ndk to 18b, qt version to 5.12 and make a clean new hello world application,
                        can you than post the actual error you have?

                        K Offline
                        K Offline
                        kgregory
                        wrote on last edited by
                        #11

                        @J.Hilk Here is that output:

                        09:30:03: Running steps for project hellotr...
                        09:30:03: Configuration unchanged, skipping qmake step.
                        09:30:03: Starting: "C:\Android\ndk-bundle\prebuilt\windows-x86_64\bin\make.exe" -j4
                        make: Nothing to be done for `first'.
                        09:30:04: The process "C:\Android\ndk-bundle\prebuilt\windows-x86_64\bin\make.exe" exited normally.
                        09:30:04: Starting: "C:\Android\ndk-bundle\prebuilt\windows-x86_64\bin\make.exe" "INSTALL_ROOT=C:/Qt/Examples/Qt-5.12.0/linguist/build-hellotr-Android_for_armeabi_v7a_Clang_Qt_5_12_0_for_Android_ARMv7-Debug/android-build" install
                        C:\Android\ndk-bundle\prebuilt\windows-x86_64\bin\make.exe: Interrupt/Exception caught (code = 0xc00000fd, addr = 0000000000420466)
                        09:30:06: The process "C:\Android\ndk-bundle\prebuilt\windows-x86_64\bin\make.exe" exited with code 255.
                        Error while building/deploying project hellotr (kit: Android for armeabi-v7a (Clang Qt 5.12.0 for Android ARMv7))
                        When executing step "Copy application data"
                        09:30:06: Elapsed time: 00:03.
                        
                        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