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. Choose NDK version for Qmake
Forum Updated to NodeBB v4.3 + New Features

Choose NDK version for Qmake

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 638 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.
  • V Offline
    V Offline
    Vega4
    wrote on last edited by
    #1

    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.
    
    jsulmJ 1 Reply Last reply
    0
    • V Vega4

      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.
      
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

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

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

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Vega4
        wrote on last edited by Vega4
        #3

        @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?

        jsulmJ 1 Reply Last reply
        0
        • V Vega4

          @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?

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

          @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.

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

          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