Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator: can't leave empty `sysroot` for CLang compiler
Forum Update on Monday, May 27th 2025

QtCreator: can't leave empty `sysroot` for CLang compiler

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 2 Posters 880 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.
  • Please_Help_me_DP Offline
    Please_Help_me_DP Offline
    Please_Help_me_D
    wrote on last edited by
    #1

    Hi,

    I'm trying to build app for desktop using CLang.

    I can see tooltip that tells me that I need to leave empty sysroot if I build for desktop but whenever I remove everything from this line and open kits again I can see that it is still set to C:\Qt\Tools\mingw810_64.

    I ve tried to remove build dir, delete .user file but nothing helped.

    Similar problem was described here but it doesn't completely fit my needs

    31027601-8983-400b-b31b-51c33e6100fb-image.png

    jsulmJ 1 Reply Last reply
    0
    • Please_Help_me_DP Please_Help_me_D

      Hi,

      I'm trying to build app for desktop using CLang.

      I can see tooltip that tells me that I need to leave empty sysroot if I build for desktop but whenever I remove everything from this line and open kits again I can see that it is still set to C:\Qt\Tools\mingw810_64.

      I ve tried to remove build dir, delete .user file but nothing helped.

      Similar problem was described here but it doesn't completely fit my needs

      31027601-8983-400b-b31b-51c33e6100fb-image.png

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

      @Please_Help_me_D Why do you want to use Clang with MSVC2019 Qt?!

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

      Please_Help_me_DP 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Please_Help_me_D Why do you want to use Clang with MSVC2019 Qt?!

        Please_Help_me_DP Offline
        Please_Help_me_DP Offline
        Please_Help_me_D
        wrote on last edited by
        #3

        @jsulm just trying. I want to test whether I can compile my app with clang

        jsulmJ 1 Reply Last reply
        0
        • Please_Help_me_DP Please_Help_me_D

          @jsulm just trying. I want to test whether I can compile my app with clang

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

          @Please_Help_me_D Since Qt you're using was build with MSVC2019 compiler you can't (you can't mix binaries built with different C++ compilers)...
          You would need to build Qt also with same compiler.

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

          Please_Help_me_DP 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Please_Help_me_D Since Qt you're using was build with MSVC2019 compiler you can't (you can't mix binaries built with different C++ compilers)...
            You would need to build Qt also with same compiler.

            Please_Help_me_DP Offline
            Please_Help_me_DP Offline
            Please_Help_me_D
            wrote on last edited by
            #5

            @jsulm I forgot to tell that for now I don't use Qt in my app. Project is based on CMake and there is no any Qt dependancy.
            For this app I use Qt creator as editor

            jsulmJ 1 Reply Last reply
            0
            • Please_Help_me_DP Please_Help_me_D

              @jsulm I forgot to tell that for now I don't use Qt in my app. Project is based on CMake and there is no any Qt dependancy.
              For this app I use Qt creator as editor

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

              @Please_Help_me_D Try to unset Qt version in that Kit

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

              Please_Help_me_DP 1 Reply Last reply
              0
              • jsulmJ jsulm

                @Please_Help_me_D Try to unset Qt version in that Kit

                Please_Help_me_DP Offline
                Please_Help_me_DP Offline
                Please_Help_me_D
                wrote on last edited by Please_Help_me_D
                #7

                @jsulm didn't help
                By the way, when using Clang-cl doesn't have such problem:
                18f09f1d-f6cf-42f2-a1d0-2543e08b0d6c-image.png

                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