added locally the LD_LIBRARY_PATH. This is needed for macOS 10.12 if ROOT is installed in a local user directory.
This commit is contained in:
parent
f7834aaead
commit
a361c7f7bb
@ -62,6 +62,10 @@ PFitOutputHandler::PFitOutputHandler(QString workingDirectory, QVector<QString>
|
|||||||
// QProcess related code
|
// QProcess related code
|
||||||
fProc = new QProcess( this );
|
fProc = new QProcess( this );
|
||||||
|
|
||||||
|
// make sure that the system environment variables are properly set
|
||||||
|
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
|
||||||
|
env.insert("LD_LIBRARY_PATH", env.value("ROOTSYS") + "/lib:" + env.value("LD_LIBRARY_PATH"));
|
||||||
|
fProc->setProcessEnvironment(env);
|
||||||
fProc->setWorkingDirectory(workingDirectory);
|
fProc->setWorkingDirectory(workingDirectory);
|
||||||
|
|
||||||
// Set up the command and arguments.
|
// Set up the command and arguments.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user