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. Can't create a qt project with qmake
Forum Updated to NodeBB v4.3 + New Features

Can't create a qt project with qmake

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 3 Posters 2.4k Views 1 Watching
  • 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.
  • G Offline
    G Offline
    Gabriele
    wrote on 2 Mar 2021, 10:02 last edited by
    #1

    Hi, i have a big problem when i create or open a project in Qt Creator. I installed several times qt but nothing seems changing. Right now i'm working with Qt 5.15.2 and basically when i create a new project, in the project window appears only the .pro file, but the source files are not included. When i run the qmake or try to build, several errors appear:

    C:/Qt/5.15.2/mingw81_64/mkspecs/features/toolchain.prf:76: Variable QMAKE_CXX.COMPILER_MACROS is not defined.
    Project ERROR: failed to parse default search paths from compiler output
    10:31:20: The process "C:\Qt\5.15.2\mingw81_64\bin\qmake.exe" exited with code 3.
    Error while building/deploying project TEST (kit: Desktop Qt 5.15.2 MinGW 64-bit)
    When executing step "qmake"

    In manage kits, Kits, Qt Versions and Compilers aren't giving any problems. Can someone help me?
    Thanks

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 2 Mar 2021, 10:07 last edited by
      #2

      Hi
      I guess you are on windows. ?

      Anyway, does this also happens for the exsamples ?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Gabriele
        wrote on 2 Mar 2021, 10:12 last edited by
        #3

        HI,
        Yes i'm working with windows 10 and yes it happens also for the examples

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 2 Mar 2021, 10:25 last edited by
          #4

          Hi
          And you configure project to use mingw and mingw was installed together
          with Qt (for mingw)
          Do you have visual studio installed?

          Plenty of other people seems to have had this bug but that's for 5.9 version. not in 5.15.2
          so i do wonder

          1 Reply Last reply
          0
          • G Offline
            G Offline
            Gabriele
            wrote on 2 Mar 2021, 10:36 last edited by
            #5

            Yes i configure the project to work with mingw and i install it togheter with qt .
            No i don't have visual studio installed

            M 1 Reply Last reply 2 Mar 2021, 10:42
            0
            • G Gabriele
              2 Mar 2021, 10:36

              Yes i configure the project to work with mingw and i install it togheter with qt .
              No i don't have visual studio installed

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 2 Mar 2021, 10:42 last edited by
              #6

              @Gabriele
              Hi
              Ok.
              I think you are experiencing this bug
              https://bugreports.qt.io/browse/QTCREATORBUG-22240

              You could try older Qt if its not critical to use 5.15

              Make sure to uninstall the 5.15.2 one first. reboot and then
              install a bit older version.

              1 Reply Last reply
              1
              • G Offline
                G Offline
                Gabriele
                wrote on 2 Mar 2021, 10:48 last edited by
                #7

                OK, it's not a problem to change version, which one do you suggest to install?

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  Gabriele
                  wrote on 2 Mar 2021, 13:58 last edited by
                  #8

                  Right now i'm using the 5.13.2 version but i still have the same problem

                  J 1 Reply Last reply 2 Mar 2021, 14:57
                  0
                  • G Gabriele
                    2 Mar 2021, 13:58

                    Right now i'm using the 5.13.2 version but i still have the same problem

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 2 Mar 2021, 14:57 last edited by
                    #9

                    @Gabriele @mrjj Suggested 5.15.2 which is the latest stable Qt5 release.

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

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      Gabriele
                      wrote on 2 Mar 2021, 15:23 last edited by
                      #10

                      the 5.15.2 is the one that i used

                      J 1 Reply Last reply 2 Mar 2021, 15:26
                      0
                      • G Gabriele
                        2 Mar 2021, 15:23

                        the 5.15.2 is the one that i used

                        J Offline
                        J Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on 2 Mar 2021, 15:26 last edited by
                        #11

                        @Gabriele Sorry, I completely misunderstood the post from @mrjj

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

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on 3 Mar 2021, 06:42 last edited by
                          #12

                          Hi
                          Thank you.
                          Well, any other version would do to test but i
                          was thinking like 5.9.9 just to see with very other version.
                          but after googling around I guess it will happen to any version.

                          From what i understand, this can come from

                          1: having a stale .qmake.stash in project folder or in search path.
                          --It sounds like its first time you try to use Qt so why would have such file around.
                          --Also the examples does the same, so cant be your project.

                          2: The virus scanner was the reason as it would do silly stuff during installation/and or compile.
                          --So do you have something special installed besides Windows Defender ?

                          3: Broken Qt installation.
                          --But you reinstalled many times so cant be that.

                          1 Reply Last reply
                          0
                          • G Offline
                            G Offline
                            Gabriele
                            wrote on 3 Mar 2021, 09:57 last edited by
                            #13

                            Yes, it can be the virus scanner, but i don't have the permissions to disable it.

                            1 Reply Last reply
                            0

                            1/13

                            2 Mar 2021, 10:02

                            • Login

                            • Login or register to search.
                            1 out of 13
                            • First post
                              1/13
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved