Fix up install paths - Remove backtrace function

This commit is contained in:
Justin Hammond 2019-12-29 14:46:35 +08:00
parent 450bc17b2b
commit d6634e833e
3 changed files with 9 additions and 19 deletions

View file

@ -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
}

View file

@ -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);

View file

@ -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