mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-03-15 19:41:24 +00:00
Fix up install paths - Remove backtrace function
This commit is contained in:
parent
450bc17b2b
commit
d6634e833e
3 changed files with 9 additions and 19 deletions
|
@ -27,4 +27,9 @@ ozwconfig.commands=cp -R ../../open-zwave/config config/ && cd config && $$[QT_I
|
|||
|
||||
INCLUDEPATH += include/
|
||||
QMAKE_CXXFLAGS += -g1
|
||||
target.path = /usr/local/lib/
|
||||
INSTALLS += target
|
||||
QMAKE_CXXFLAGS += -g1
|
||||
QMAKE_LFLAGS += -rdynamic
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#include <execinfo.h>
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
@ -12,22 +11,9 @@
|
|||
#include "mqttpublisher.h"
|
||||
#endif
|
||||
|
||||
void handler(int sig) {
|
||||
void *array[10];
|
||||
size_t size;
|
||||
|
||||
// get void*'s for all entries on the stack
|
||||
size = backtrace(array, 10);
|
||||
|
||||
// print out all the frames to stderr
|
||||
fprintf(stderr, "Error: signal %d:\n", sig);
|
||||
backtrace_symbols_fd(array, size, STDERR_FILENO);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
//signal(SIGSEGV, handler); // install our handler
|
||||
|
||||
|
||||
QCoreApplication a(argc, argv);
|
||||
|
|
|
@ -117,11 +117,6 @@ SOURCES += main.cpp \
|
|||
qtozwdaemon.cpp
|
||||
|
||||
|
||||
# Default rules for deployment.
|
||||
qnx: target.path = /tmp/$${TARGET}/bin
|
||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||
!isEmpty(target.path): INSTALLS += target
|
||||
|
||||
HEADERS += \
|
||||
qtozwdaemon.h \
|
||||
|
||||
|
@ -132,6 +127,10 @@ include(../qt-openzwave.pri)
|
|||
INCLUDEPATH += ../qt-openzwave/include/
|
||||
|
||||
unix {
|
||||
# Default rules for deployment.
|
||||
target.path = /usr/local/bin
|
||||
INSTALLS += target
|
||||
|
||||
LIBS += -lresolv -L../qt-openzwave/ -lqt-openzwave -L../qt-openzwavedatabase/ -lqt-openzwavedatabase
|
||||
INCLUDEPATH += ../qt-openzwavedatabase/include/
|
||||
QMAKE_CXXFLAGS += -g1
|
||||
|
|
Loading…
Add table
Reference in a new issue