Hi. I`ve written this code :
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
env.insert("LD_LIBRARY_PATH", "/home/khoros2200/lib");
myProcess->setProcessEnvironment(env);
myProcess->execute("/home/khoros2200/bin/karith1")
QProcess *myProcess = new QProcess();
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
env.insert("LD_LIBRARY_PATH", "/home/khoros2200/lib");
myProcess->setProcessEnvironment(env);
myProcess->execute("/home/khoros2200/bin/karith1")
To copy to clipboard, switch view to plain text mode
;
and i have this error :
/home/khoros2200/bin/karith1: error while loading shared libraries: libkdmanip.so: cannot open shared object file: No such file or directory
when I execute the program in console , it works properly . When I unset the LD_LIBRARY_PATH variable I get the same mistake as in Qt Creator. So what`s the problem ? Why is QProcess doesn`t see envioronment variables ?
Bookmarks