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. "'cl' is not recognized as an internal or external command" error after VS2019 update?
Forum Updated to NodeBB v4.3 + New Features

"'cl' is not recognized as an internal or external command" error after VS2019 update?

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 3 Posters 3.1k 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.
  • B Offline
    B Offline
    Bonnie
    wrote on last edited by
    #6

    Go to "Compilers" and click Re-detect, then Apply.

    MucipM 1 Reply Last reply
    0
    • B Bonnie

      Go to "Compilers" and click Re-detect, then Apply.

      MucipM Offline
      MucipM Offline
      Mucip
      wrote on last edited by
      #7

      @Bonnie ,
      I did it many times. :(
      Same problem.

      Regards,
      Mucip:)

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Bonnie
        wrote on last edited by
        #8

        If you start command prompt from "x64 Native Tools Command Prompt for VS 2019" in the start menu, can you run cl?

        MucipM 1 Reply Last reply
        0
        • B Bonnie

          If you start command prompt from "x64 Native Tools Command Prompt for VS 2019" in the start menu, can you run cl?

          MucipM Offline
          MucipM Offline
          Mucip
          wrote on last edited by
          #9

          @Bonnie
          Looks lik OK.

          6092bdab-08df-497d-8747-487fd7b98ce7-resim.png

          Regards,
          Mucip:)

          1 Reply Last reply
          0
          • B Offline
            B Offline
            Bonnie
            wrote on last edited by
            #10

            Hmm...I'm out of ideas, had you change the Path in your project's Build Environment?

            MucipM 2 Replies Last reply
            0
            • B Bonnie

              Hmm...I'm out of ideas, had you change the Path in your project's Build Environment?

              MucipM Offline
              MucipM Offline
              Mucip
              wrote on last edited by
              #11

              @Bonnie ,
              Yes, I added PostgreSQL driver paths only.

              But everythig wa OK before then VS2019 update.:(

              Regards,
              Mucip:)

              B 1 Reply Last reply
              0
              • MucipM Mucip

                @Bonnie ,
                Yes, I added PostgreSQL driver paths only.

                But everythig wa OK before then VS2019 update.:(

                Regards,
                Mucip:)

                B Offline
                B Offline
                Bonnie
                wrote on last edited by Bonnie
                #12

                @Mucip Then try to reset the Path first, and add your driver paths back after that.

                1 Reply Last reply
                0
                • B Bonnie

                  Hmm...I'm out of ideas, had you change the Path in your project's Build Environment?

                  MucipM Offline
                  MucipM Offline
                  Mucip
                  wrote on last edited by
                  #13

                  @Bonnie
                  I think I found a solution with your helps.

                  I deleted pro.user file in the project directory and recreated with Qt Creator.
                  I added PostgreSQL ODBC paths in Build Environment path.

                  Than all is fine now.

                  But I don't know why it is happened like this?!

                  Thank you all guys. :)

                  Regards,
                  Mucip:)

                  1 Reply Last reply
                  1
                  • B Offline
                    B Offline
                    Bonnie
                    wrote on last edited by
                    #14

                    I think it is because after the update, the full path of cl.exe has changed.
                    Normally Qt uses vcvarsall.bat to set the enviroment, so there won't be any problem.
                    But when you set the Path of the project, it saved in the pro.user with the old Path.

                    MucipM 1 Reply Last reply
                    1
                    • B Bonnie

                      I think it is because after the update, the full path of cl.exe has changed.
                      Normally Qt uses vcvarsall.bat to set the enviroment, so there won't be any problem.
                      But when you set the Path of the project, it saved in the pro.user with the old Path.

                      MucipM Offline
                      MucipM Offline
                      Mucip
                      wrote on last edited by
                      #15

                      @Bonnie
                      You may be right.
                      But I use like this more than 1 year and I made many VS2019 update in this period.
                      This was the first time. Interesting?!...

                      Regards,
                      Mucip:)

                      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