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
#!/bin/bash
export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
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.
#export export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
#export PATH=$PWD:$PATH
#export export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
#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
int main(..)
{
.....
......
}
int main(..)
{
.....
QApplication::addLibraryPath("$PWD");
......
}
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.
Bookmarks