hi,
In the process of deploying Qt-4.5.1 application on RHEL5 built with bitrock install builder, the installer is executing a script to change environment variables. the script looks like this.

script file name : myscript.sh

Qt Code:
  1. #!/bin/bash
  2. export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
  3. export PATH=$PWD:$PATH
To copy to clipboard, switch view to plain text mode 

As compiler related and Qt library files are also present the application directory, I am trying to set library and executable path to application directory.
when i ran that script, even from console externally, I not getting any error, but the environment variables are not at all changed. But when i do the following at the prompt, its getting set for the session and vanishing after i close the console and reopen it again.

Qt Code:
  1. #export export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
  2. #export PATH=$PWD:$PATH
To copy to clipboard, switch view to plain text mode 

where is the problem?
how can i set/ change environment variables through my Qt application permanently?

I have also tried the following in my Qt application

Qt Code:
  1. int main(..)
  2. {
  3. .....
  4. QApplication::addLibraryPath("$PWD");
  5. ......
  6. }
To copy to clipboard, switch view to plain text mode 

Im not successful with any of those option.. pls suggest your valuable points.

my Qt application will run on Linux as well as on Windows (with mingw compiler).

thank u very much in advance.. pls post ur suggestions.