Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Choose NDK version for Qmake



  • How do I force choose a specific NDK version for QMake? (21.1.6352462 instead of 21.3.6528147)
    The error I get:

    :-1: warning: "C:\Users\user\AppData\Local\Android\Sdk\ndk\21.3.6528147\toolchains\llvm\prebuilt\windows-x86_64\bin\clang" is used by qmake, but "C:\Users\user\AppData\Local\Android\Sdk\ndk\21.1.6352462\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe" is configured in the kit.
    Please update your kit (Huawei) or choose a mkspec for qmake that matches your target environment better.
    

  • Lifetime Qt Champion

    @Vega4 As the warning suggests do that in the Kit.
    Afterwards do a complete rebuild: delete build folder, run qmake and build.



  • @jsulm To my understanding: The warning suggests that one is supposed to modify kit's settings (presumably that's what you suggest also) OR to choose 'mkspec for qmake' (whatever it means) which at least to me implies modification of a certain qmake related variable/input data (wherever it is, that is my question).

    The reported by the warning Kit's settings are 'fine' i.e. 21.1.6352462, the settings used by Qmake are wrong. (the discrepancy is there, yes, was the compiler setting supposed to affect how qmake operates by itself?)

    I've visited the Kit's settings tab where's the variable for Qmake? the compiller settings are fine (CLang 21.1.6352462).

    We do not want to recompile the entire internal toolchain(libraries) just because Qt suddenly feels like doing so (after being re-installed it wanted to auto-download two seperate NDKs).

    At the bottom of the tab there are 'CMake Configuration settings' which accepts a string-literal would you please advise on its additional to-be-provided content? Is that The Field?


  • Lifetime Qt Champion

    @Vega4 said in Choose NDK version for Qmake:

    We do not want to recompile the entire internal toolchain(libraries) just because Qt suddenly feels like doing so

    I did not say you have to rebuild the tool chain, rebuild your Android app.


Log in to reply