Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtCreator: Build environment variables from script? ...
Forum Updated to NodeBB v4.3 + New Features

QtCreator: Build environment variables from script? ...

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 389 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.
  • idlefrogI Offline
    idlefrogI Offline
    idlefrog
    wrote on last edited by
    #1

    I have various versions of the same project, each has it's own unique set of environment variables.

    Is there a way to just point the build to a 'environment variable' script?

    Or do I have to shutdown QtCreator, set the environment, and then re-launch QtCreator from the new environment each time I want to change version?! Surely not! There must be a better way!

    I've searched high and low to find a solution but alas have advanced no further.
    Is there anyone out there with a easy solution?

    jsulmJ 1 Reply Last reply
    0
    • idlefrogI idlefrog

      I have various versions of the same project, each has it's own unique set of environment variables.

      Is there a way to just point the build to a 'environment variable' script?

      Or do I have to shutdown QtCreator, set the environment, and then re-launch QtCreator from the new environment each time I want to change version?! Surely not! There must be a better way!

      I've searched high and low to find a solution but alas have advanced no further.
      Is there anyone out there with a easy solution?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @idlefrog What you can do is to go to Build Environment in QtCreator and click on "Batch Edit..." there you can put all your environment vartiables at once.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      idlefrogI 1 Reply Last reply
      1
      • jsulmJ jsulm

        @idlefrog What you can do is to go to Build Environment in QtCreator and click on "Batch Edit..." there you can put all your environment vartiables at once.

        idlefrogI Offline
        idlefrogI Offline
        idlefrog
        wrote on last edited by idlefrog
        #3

        @jsulm Didn't notice that option. It's a possibility, thanks.
        I have a bash file scripts that set only 40 variables for each project version. Although, I don't want to have to do that for every project version. e.g. v1.03.51r, v2.0.5b, and so on..

        Many thanks @jsulm ...looks like that's as good an option I'm going to find, although I may just create QtCreator launch scripts for each version. e.g. qt_launch_v1.03r.sh qt_launch_v2.0b.sh

        I appreciate your help!

        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