Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Problems running qmake on W10
Forum Updated to NodeBB v4.3 + New Features

Problems running qmake on W10

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 1.5k 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.
  • J Offline
    J Offline
    joejoo
    wrote on last edited by
    #1

    Hi, I just started with QT, and I did install V5 on Windows 10.

    So far, everything seems to work fine when I run demos and applications using the included IDE QT Creator; but if I run in the command promt "qmake", I get an error.

    I am trying to build an external library for QT; so the instruction say to use Qmake first, and I can't go further since I get this error:

    "Cannot run compiler 'cl'. Maybe you forgot to setup the environment?".

    How do I progress further? I did search for "configure Qmake on windows" but I didn't get any good match.

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #2

      Hi, you need to include the search path to 'cl' in your command prompt, easiest is to use vcvarsall.bat, you need to find the correct path to VS, in my case I'm using Visual Studio 2015::

      Setting up environment for Qt usage...
      Remember to call vcvarsall.bat to complete environment setup!
      
      C:\Qt\5.9.1\msvc2015>cl
      cl är inte ett internt kommando, externt kommando,
      program eller kommandofil.
      
      C:\Qt\5.9.1\msvc2015>"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
      
      C:\Qt\5.9.1\msvc2015>cl
      Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
      usage: cl [ option... ] filename... [ /link linkoption... ]
      
      1 Reply Last reply
      2

      • Login

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