Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Project ERROR: Cannot run compiler 'cl'. Maybe you forgot to setup the environment?
QtWS25 Last Chance

Project ERROR: Cannot run compiler 'cl'. Maybe you forgot to setup the environment?

Scheduled Pinned Locked Moved Solved 3rd Party Software
qwt
4 Posts 2 Posters 22.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.
  • V Offline
    V Offline
    vassia
    wrote on last edited by A Former User
    #1

    Hello!
    I am facing this problem while trying to install qwt.
    The command "qmake qwt.pro" gives me the aforementioned error.
    I understood that it probably has to do with the environment, so I added to the environment variables the path to the qmake (C:\Qt\Qt5.9.1\5.9.1\msvc2015_64\bin) as well as the path to the vcvarsall.bat (C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC), but I still have this problem.

    Any help?
    Thanks a lot in advance!

    [Edit: moved to 3rd Party Software ~~ @Wieland]

    K 1 Reply Last reply
    0
    • V vassia

      Hello!
      I am facing this problem while trying to install qwt.
      The command "qmake qwt.pro" gives me the aforementioned error.
      I understood that it probably has to do with the environment, so I added to the environment variables the path to the qmake (C:\Qt\Qt5.9.1\5.9.1\msvc2015_64\bin) as well as the path to the vcvarsall.bat (C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC), but I still have this problem.

      Any help?
      Thanks a lot in advance!

      [Edit: moved to 3rd Party Software ~~ @Wieland]

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @vassia

      Hi and welcome to devnet forum

      @vassia said in Project ERROR: Cannot run compiler 'cl'. Maybe you forgot to setup the environment?:

      I understood that it probably has to do with the environment, so I added to the environment variables the path to the qmake (C:\Qt\Qt5.9.1\5.9.1\msvc2015_64\bin) as well as the path to the vcvarsall.bat (C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC), but I still have this problem.

      I might be wrong, but it looks to me that you are using a pre-compiled Qt version for MSVC 2015 64 bit.
      Based on the path you appear to have Visual Studio 2015 32 bit. Please verify, if those assumptions are correct.

      You cannot freely mix 32 bit and 64 bit versions. This could be the problem in your setup.

      Please ensure that compiler and pre-compiled Qt library version are for the same architecture. Either 32 or 64 bit.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      2
      • V Offline
        V Offline
        vassia
        wrote on last edited by
        #3

        Thank you very much for the reply!
        Everything you wrote was correct. Indeed I have Qt for both MSVC 2015 64 bit and MSVC 2015 (32 bit). I finally succeeded to install qwt.
        So, the steps I followed in order to install qwt-6.1.3 (in case someone faces the same problem) are:

        1. extracted Qwt source zip file to: C:\Qwt-6.1.3
        2. ran as administrator "Qt 5.7 64-bit for Desktop (MSVC 2015)"
        3. moved into: cd C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
        4. then executed: vcvarsall.bat amd64
        5. then moved into Qwt folder: cd C:\Qwt-6.1.3
        6. ran: qmake qwt.pro
        7. then ran: nmake
        8. and finally ran: nmake install

        Thanks again!

        K 1 Reply Last reply
        6
        • V vassia

          Thank you very much for the reply!
          Everything you wrote was correct. Indeed I have Qt for both MSVC 2015 64 bit and MSVC 2015 (32 bit). I finally succeeded to install qwt.
          So, the steps I followed in order to install qwt-6.1.3 (in case someone faces the same problem) are:

          1. extracted Qwt source zip file to: C:\Qwt-6.1.3
          2. ran as administrator "Qt 5.7 64-bit for Desktop (MSVC 2015)"
          3. moved into: cd C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
          4. then executed: vcvarsall.bat amd64
          5. then moved into Qwt folder: cd C:\Qwt-6.1.3
          6. ran: qmake qwt.pro
          7. then ran: nmake
          8. and finally ran: nmake install

          Thanks again!

          K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          @vassia

          Thanks for reply and good to know that I could help.

          Since the issue has been solved for you, please mark also your post as solved. This helps others to see that there might be a solution.

          In order to mark as solved, go to the compobox named "Topic Tools" after your first post or after the last post in the thread and select "Mark as Solved".

          Vote the answer(s) that helped you to solve your issue(s)

          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