Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Which QtCreator variables contain platform and CPU architecture?
Forum Updated to NodeBB v4.3 + New Features

Which QtCreator variables contain platform and CPU architecture?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 206 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.
  • R Offline
    R Offline
    RodrigoCanellas
    wrote on 12 Feb 2021, 13:20 last edited by RodrigoCanellas 2 Dec 2021, 17:12
    #1

    In QtCreator, if you want to modify the Build Directory, in Projects/Build Setttings/General, you can set a fixed path, like /var/tmp/some-dir, or you can use the A->B button to use QtCreator internal variables.

    I am trying to get the value of the platform (win, mac, unix...), and architecture (x86, x64, arm...) defined in the current Kit from these internal variables, and use them to set the path to Build Directory.

    Does anyone know from which QtCreator internal variables, like %Compiler:Name, can I get the platform and architecture?

    I suspect %CurrentRun:Env:<value> or less likely $Compile:Name:<value>, could be the one, but I could not find the possible values for the <value> parameter anywhere.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andr
      wrote on 17 Feb 2021, 07:19 last edited by
      #2

      The possible values in %{Compile:Name:<value>} are the languanges in the toolchain, i.e. C, Cxx, Nim

      I am not aware of variables for the platform and architecture there, if they are needed they could be added. You could consider filing a feature request at bugreports@qt.io.

      On a more general note: Not many Qt Creator developer read this forum here on a regular base. Better channels for questions are the #qt-creator channel on FreeNode IRC (no registration needed there) or the qt-creator@qt-project.org mailing list.

      1 Reply Last reply
      1

      1/2

      12 Feb 2021, 13:20

      • 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