swamyonline
29th June 2009, 14:06
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
#!/bin/bash
export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
export PATH=$PWD:$PATH
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.
#export export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
#export PATH=$PWD:$PATH
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
int main(..)
{
.....
QApplication::addLibraryPath("$PWD");
......
}
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.
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
#!/bin/bash
export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
export PATH=$PWD:$PATH
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.
#export export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
#export PATH=$PWD:$PATH
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
int main(..)
{
.....
QApplication::addLibraryPath("$PWD");
......
}
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.