Skip to content

Commit

Permalink
Linux library path fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denvi committed Sep 5, 2015
1 parent a6fccee commit eb034f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions grbl_control.pro
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ win32: {
unix: {
INCLUDEPATH += "/usr/include/GL"
LIBS += -L"/usr/lib/i386-linux-gnu" -lGLU
QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN/libs\'"
}

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
Expand Down
10 changes: 10 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ int main(int argc, char *argv[])

a.setApplicationVersion(APP_VERSION);

#ifndef WIN32
foreach (QString str, QStyleFactory::keys()) {
qDebug() << str;
if (str.contains("GTK")) {
a.setStyle(QStyleFactory::create(str));
break;
}
}
#endif

frmMain w;

w.show();
Expand Down

0 comments on commit eb034f1

Please sign in to comment.