Setting environment variables in Qt Creator by searching for shell script

I am trying to configure "Run Settings" in Qt Creator 3.0.1.

I would like to set the value of many environment variables by looking for the shell script 'myScript'. However, the user deployment process step does not seem to accept the "source" as a command.

If I run the script instead of its source, it sets the environment variables of the shell process in which it runs, which is not the same when Qt Creator runs the executable.

Can I use "myScript" to set environment variables? What should I call it?

+7
shell environment-variables qt-creator
source share
1 answer

Ofcorse, you can run qt through scrypt. It is very simple. My script is below. Ofcorse you need the environment variables in the concret file. In my case, this file is environment setup

#!/bin/bash echo "ustawienie zmiennej /usr/local/angstrom/arm/environment-setup" # set concret variables important is . / . /usr/local/angstrom/arm/environment-setup echo "Uruchomienie qtCreator" # lunched qtcreator $HOME/Qt/Tools/QtCreator/bin/qtcreator 

You can also set this script as tied to the main qt icon in your start menu. After that, all you need to run qt is just click on your shortcut in the menu

+1
source share

All Articles