Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. how to set system environment variables for Visual Studio 2022 C++ compiler
Forum Updated to NodeBB v4.3 + New Features

how to set system environment variables for Visual Studio 2022 C++ compiler

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 2.9k 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.
  • N Offline
    N Offline
    naroo
    wrote on 20 Jul 2023, 07:18 last edited by naroo
    #1

    I set System Environment variable for C++ compiler as

    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build;
    

    I expected to call "vcvarsall.bat" to compile.
    and I got this result to make me believe the location is shared.
    de412787-7cd3-44b6-bf91-93458cb0dcbd-image.png

    however cmake on the QT terminal produces an error as below

    error.PNG
    Do I need to fix some value?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SimonSchroeder
      wrote on 21 Jul 2023, 06:58 last edited by
      #2

      You first screenshot says: [ERROR: vcvarsall.bat] Error in script usage. You need to specify the arch for this script to do anything at all. Most likely you want to call vcvarsall.bat amd64 to compile for 64-bit.

      1 Reply Last reply
      1

      1/2

      20 Jul 2023, 07:18

      • Login

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