I'm developing an application under Debian 8 using QtCreator 3.4.0. The app uses some shared libraries, that I don't want to place in standard paths, like /usr/local/lib.
QtCreator adds paths to these to LD_LIBRARY_PATH environment variable. It works ok when running the app (ctrl+R) without debugger attached, but not when starting with debugger (F5). It also works if "run in terminal" checkbox is selected.
The question is: Is is possible to configure the creator to export LD_LIBRARY_PATH when debugging and not running in terminal and how to do it?
Project/Build & Run/System Environment, then you need to set manual environment variables separately for each build configuration. - AmartelProject/Build & RunI switched toRun, openedRun Environment, selectedSystem Environmentin combobox and editedLD_LIBRARY_PATH(removed needed path). It took expected effect both with and withoutRun in terminalcheckbox. Try to do the same thing. - Amartel