QtCreator not detecting android GCC
-
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
-
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
-
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
-
@kgregory Why do you want to use GCC? If Google uses CLang in NDK then you have to use it as well.
@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.
-
@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!
@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.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...
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.
-
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.
@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? -
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)
-
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)
-
@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?@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.