QtCreator: Build environment variables from script? ...
-
wrote on 9 Nov 2021, 10:35 last edited by
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? -
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?@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.
-
@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.
wrote on 9 Nov 2021, 11:05 last edited by idlefrog 11 Sept 2021, 11:10@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/3