Hello ,
I am facing issue building QtLeapMotionLibrary.
I am building using below configuration.
TEMPLATE = lib
TARGET = QtLeapMotion
DEFINES += QTLEAPMOTION_LIBRARY
CONFIG += dll
QT += qml quick
OBJECTS_DIR = tmp
MOC_DIR = tmp
INCLUDEPATH += $$PWD/Leap/include
INCLUDEPATH +=C:\04_Qt\QtLeapMotionLibrary-master\QtLeapMotion\Leap\include
INCLUDEPATH += $$PWD/lib/x64
DEPENDPATH += $$PWD/lib/x64
INCLUDEPATH += $$PWD/lib/x86
DEPENDPATH += $$PWD/lib/x86
include (./QtLeapGlobal/QtLeapGlobal.pri)
include (./QtLeapDevice/QtLeapDevice.pri)
include (./QtLeapGestures/QtLeapGestures.pri)
include (./QtLeapTouch/QtLeapTouch.pri)
WORKS ONLY WITH QT COMPILED FOR MSVC
win32: {
!contains(QMAKE_HOST.arch, x86_64) {
message("x86 build")
LIBS += $$PWD/Leap/x86/Leap.dll
} else {
message("x86_64 build")
LIBS += $$PWD/Leap/x64/Leap.dll
}
}
win32: {
!contains(QMAKE_HOST.arch, x86_64) {
message("x86 build")
install_folder.files += $$PWD/Leap/x86/Leap.dll
LIBS += -L$$PWD/lib/x86/ -lLeap
} else {
message("x86_64 build")
LIBS += ./Leap/x64/Leapd.lib
install_folder.files += $$PWD/Leap/x64/Leap.dll
install_folder.files += ./Leap/x64/Leapd.dll
LIBS += -L$$PWD/lib/x64/ -lLeap
}
}
win32:DESTDIR = ./
Am always facing Undefined reference to all leap lib classes like hand, circle etc. Basically the library is not linking with above configuration. I have proper libs and header files placed in proper path.
Can you suggest any solution using LeapMotion with QT. ?
Thanks for help.