[PC-BSD Commits] r14705 - pcbsd-projects/EasyPBI

svn at pcbsd.org svn at pcbsd.org
Mon Jan 9 11:43:31 PST 2012


Author: kenmoore
Date: 2012-01-09 19:43:31 +0000 (Mon, 09 Jan 2012)
New Revision: 14705

Modified:
   pcbsd-projects/EasyPBI/Makefile
   pcbsd-projects/EasyPBI/mainwindow.cpp
Log:
unset the LD_LIBRARY_PATH variable within the pbi build qprocess environement. This should make the build process use the system environment variables, rather than the special pbi paths.



Modified: pcbsd-projects/EasyPBI/Makefile
===================================================================
--- pcbsd-projects/EasyPBI/Makefile	2012-01-09 19:26:07 UTC (rev 14704)
+++ pcbsd-projects/EasyPBI/Makefile	2012-01-09 19:43:31 UTC (rev 14705)
@@ -1,6 +1,6 @@
 #############################################################################
 # Makefile for building: EasyPBI
-# Generated by qmake (2.01a) (Qt 4.7.4) on: Fri Jan 6 09:23:15 2012
+# Generated by qmake (2.01a) (Qt 4.7.4) on: Mon Jan 9 13:49:54 2012
 # Project:  EasyPBI.pro
 # Template: app
 # Command: /usr/local/bin/qmake-qt4 -o Makefile EasyPBI.pro

Modified: pcbsd-projects/EasyPBI/mainwindow.cpp
===================================================================
--- pcbsd-projects/EasyPBI/mainwindow.cpp	2012-01-09 19:26:07 UTC (rev 14704)
+++ pcbsd-projects/EasyPBI/mainwindow.cpp	2012-01-09 19:43:31 UTC (rev 14705)
@@ -479,6 +479,11 @@
   //Setup Process connections
   p = new QProcess(this);
   p->setProcessChannelMode(QProcess::MergedChannels);
+  //Remove the LD_LIBRARY_PATH environment variable (use system environment) for this process
+  QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
+  env.remove("LD_LIBRARY_PATH");
+  //env.insert ("LD_LIBRARY_PATH",""); //alternate method
+  p->setProcessEnvironment(env);
   connect(p,SIGNAL(readyReadStandardOutput()),this,SLOT(updatePBIBuild()) );
   connect(ui->pushKillBuild,SIGNAL(clicked()),this,SLOT(killPBIBuild()) );
   connect(p,SIGNAL(finished(int,QProcess::ExitStatus)),this,SLOT(PBIbuildFinished(int,QProcess::ExitStatus)) );



More information about the Commits mailing list