Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cmake project configuration failed. Expert help please.
Qt 6.11 is out! See what's new in the release blog

Cmake project configuration failed. Expert help please.

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 3 Posters 2.8k 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.
  • M Offline
    M Offline
    MT34
    wrote on last edited by
    #1

    I install qt creater a few times to make clean installation. I intalled all depencecies. I try the example application to test the qt. It works android but does not work on android device connected USB . I had used the same device a few times it had worked. But I does not work. I could not find the solution. It gives cmake configuration fail. Every setting seems to normal. I need an expert help.
    Thanks in advance.

    1.png
    2.png 3.png
    4-selecting android.png
    5.png
    6.png 7.png 8.png 9.png 91.png

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MT34
      wrote on last edited by
      #2

      Rest of the images

      991.png
      92.png
      93.png

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MT34
        wrote on last edited by
        #3

        94.png
        95.png
        96.png
        97.png

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MT34
          wrote on last edited by
          #4

          98.png
          99.png

          When I clean CMake directory current configuration works but gives "-DCMAKE_C_COMPILER:FILEPATH=C:/Users/user/AppData/Local/Android/Sdk/ndk/27.3.13750724/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe" erorr as red color.

          jsulmJ 1 Reply Last reply
          0
          • M MT34

            98.png
            99.png

            When I clean CMake directory current configuration works but gives "-DCMAKE_C_COMPILER:FILEPATH=C:/Users/user/AppData/Local/Android/Sdk/ndk/27.3.13750724/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe" erorr as red color.

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

            @MT34 In your Kit C++ compiler is not set

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

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MT34
              wrote on last edited by
              #6

              Thank you for your reply Jsulm. When I choose android device on kit management window C++ path disapperas. I tried the different option . I tried it with auto detected compiler and manual compiler. But It does not work unfortunatelly.

              003.png

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MT34
                wrote on last edited by
                #7

                stack1.png

                1 Reply Last reply
                0
                • J.HilkJ Offline
                  J.HilkJ Offline
                  J.Hilk
                  Moderators
                  wrote on last edited by
                  #8

                  Close your project
                  delete your *.user file of your CMakeLists
                  open the project new
                  make sure to select during project configuration Debug as well as Release

                  That fixed it for me, when I had a similar issue

                  Also check the general tab (bottom of QtCreator right side) and see what it says


                  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
                  0
                  • M Offline
                    M Offline
                    MT34
                    wrote on last edited by
                    #9

                    Thanks J.Hilk. It was a usefull info. I think QT is problematic when choosing a device.

                    image.png

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MT34
                      wrote on last edited by
                      #10

                      This is the ture device after deleting *.user file. but It gives error: can not reach the project directory. I changed the directory manually. I tried to build and gives another probems. Thanks

                      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