summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-03 21:34:49 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-03 21:34:49 +0100
commitbbaefce3a90b3c45f23e494f76ed15fa9a00d5e8 (patch)
tree28ef5677081348be4a3addf8e28028990245cd4b /facetracknoir
parentcc9b496e2de68b983dbc5fde27a1379cc9602a35 (diff)
fix apple build
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp
index e643bcd3..23703ef3 100644
--- a/facetracknoir/main.cpp
+++ b/facetracknoir/main.cpp
@@ -28,6 +28,8 @@
#include <QDesktopWidget>
#include <QDebug>
#include <QList>
+#include <QDir>
+#include <QStringList>
#if defined(_WIN32) && defined(_MSC_VER)
# include <windows.h>
@@ -59,6 +61,10 @@ int main(int argc, char** argv)
#endif
QApplication::setAttribute(Qt::AA_X11InitThreads, true);
QApplication app(argc, argv);
+#ifdef __APPLE__
+ QDir dir(QCoreApplication::applicationDirPath());
+ QCoreApplication::setLibraryPaths(QStringList(dir.absolutePath()));
+#endif
FaceTrackNoIR w;
QDesktopWidget desktop;