Results 1 to 2 of 2

Thread: MSVC 2017 32-bit can't run qmake

  1. #1
    Join Date
    Sep 2020
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default MSVC 2017 32-bit can't run qmake

    Hi, i want to install a QtXlsx (to create excel files).
    I installed it on MinGW doing this:

    cd %directory%
    qmake
    And everything was ok.
    Now i want to use it on MSVC 2017 32-bit.

    I do:
    cd %directory%
    qmake
    It says:
    Project ERROR: Cannot run compiler 'cl'. Output:
    ===================
    ===================
    Maybe you forgot to setup the environment?

    How can i fix this? When i write just qmake, it gives me some tips how to use it.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: MSVC 2017 32-bit can't run qmake

    You need to open a Visual Studio Command Prompt window. Go to the Start -> Programs menu, find Visual Studio 2017 -> Visual Studio Tools -> MSBuild command prompt. From that command window, cd to your project and run qmake.

    The command prompt sets up the environment so build tools can find your compiler, linker, libraries, etc. If you have cross-compilers or other VS tools installed, you can find more specific environments under the Visual Studio Tools -> Windows Desktop Command Prompts menu.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 4
    Last Post: 9th September 2019, 00:42
  2. Migration from Qt 4.8 to Qt 5.12 Msvc 2017
    By aymenbest2 in forum Newbie
    Replies: 4
    Last Post: 18th June 2019, 10:04
  3. Problems after building Qt 5.11.2 open source 32 bit with MSVC 2017
    By ForestDweller2 in forum Installation and Deployment
    Replies: 3
    Last Post: 19th March 2019, 18:22
  4. qmake for both msvc/mingw ?
    By gfunk in forum Qt Programming
    Replies: 2
    Last Post: 24th November 2007, 13:06
  5. Qt4 with MSVC++ qmake issue
    By cb in forum Installation and Deployment
    Replies: 3
    Last Post: 13th September 2007, 07:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.