How to integrate QT with novint falcon?
-
Novint falcon is integrated using the HDAL SDK on Visual Studio. I could not find any documentation online to install the SDK on QT. I tried to include the HDAl library and header files in my QT project. The .pro file looks like this.The error is
:-1: error: No rule to make target '../imagesegment/hdl.h', needed by 'debug/main.o'. Stop.
@
#-------------------------------------------------Project created by QtCreator 2014-11-04T14:24:33
#-------------------------------------------------
QT += core
QT -= gui
TARGET = imagesegment
CONFIG += console
CONFIG -= app_bundleTEMPLATE = app
SOURCES += main.cpp
haptics.cpp
gshaptics.cpp
main_dx9.cpp
main_opengl.cpp
StdAfx.cppHEADERS +=
hdl.h
hdlConstants.h
hdlErrors.h
hdlExports.h
hdlu.h
hdluExports.h
adll.h
afuncs.h
atypes.h
avars.h
glut.h
haptics.h
StdAfx.h
Widget.hwin32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/lib/ -lhdl
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/lib/ -lhdldINCLUDEPATH += $$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/include
DEPENDPATH += $$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/include
@[edit: corrected coding tags use SGaist]
-
Hi and welcome to devnet,
You have spaces in your paths, you have to quote them. e.g.
@$$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/include")@
-
Hi, I included the path in the quotes but it still says that icannot find the specifies file.
@TEMPLATE = app
TARGET = cube4
QT += 3d
SOURCES = cubeview.cpp main.cpp
haptics.cpp
HEADERS = cubeview.h
HEADERS +=
hdl.h
hdlConstants.h
hdlErrors.h
hdlExports.h
hdlu.h
hdluExports.h
adll.h
afuncs.h
atypes.h
avars.h
glut.h
haptics.h
StdAfx.h
Widget.h
RESOURCES = cube.qrcwin32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/lib/ -lhdl
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/lib/ -lhdldINCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/include/hdl")
INCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/include/hdlu")
INCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/examples/Basic/src")@C:\Qt\qt-qt3d\tutorials\qt3d\cube4\haptics.cpp:1: error: haptics.h: No such file or directory
#include "haptics.h" -
Hi, I included the path in the quotes but it still says that icannot find the specifies file.
@TEMPLATE = app
TARGET = cube4
QT += 3d
SOURCES = cubeview.cpp main.cpp
haptics.cpp
HEADERS = cubeview.h
HEADERS +=
hdl.h
hdlConstants.h
hdlErrors.h
hdlExports.h
hdlu.h
hdluExports.h
adll.h
afuncs.h
atypes.h
avars.h
glut.h
haptics.h
StdAfx.h
Widget.h
RESOURCES = cube.qrcwin32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/lib/ -lhdl
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/lib/ -lhdldINCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/include/hdl")
INCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/include/hdlu")
INCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/examples/Basic/src")@C:\Qt\qt-qt3d\tutorials\qt3d\cube4\haptics.cpp:1: error: haptics.h: No such file or directory
#include "haptics.h" -
It's not the same error, are you sure that file currently exists ?
-
It's not the same error, are you sure that file currently exists ?
-
Yes, the file exists. I had to copy all the header files into the same folder.* However, it recognises the library files.
*
@TEMPLATE = app
TARGET = cube4
QT += 3d
SOURCES = cubeview.cpp main.cpp
haptics.cpp
HEADERS = cubeview.h
haptics.h
src/haptics.h
src/adll.h
src/afuncs.h
src/atypes.h
src/avars.h
src/glut.h
src/StdAfx.h
hdl/hdl.h
hdl/hdlConstants.h
hdl/hdlErrors.h
hdl/hdlExports.h
hdlu/hdlu.h
hdlu/hdluExports.h
HEADERS +=
Widget.h
RESOURCES = cube.qrcwin32:LIBS += $$quote(C:/Program Files/Novint/HDAL_SDK_2.1.3/lib/hdl.lib)
INCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/include/hdl")
INCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/include/hdlu")
INCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/examples/Basic/src")INCLUDEPATH +="C:/Program Files/Novint/HDAL_SDK_2.1.3/include"
@ -
Yes, the file exists. I had to copy all the header files into the same folder.* However, it recognises the library files.
*
@TEMPLATE = app
TARGET = cube4
QT += 3d
SOURCES = cubeview.cpp main.cpp
haptics.cpp
HEADERS = cubeview.h
haptics.h
src/haptics.h
src/adll.h
src/afuncs.h
src/atypes.h
src/avars.h
src/glut.h
src/StdAfx.h
hdl/hdl.h
hdl/hdlConstants.h
hdl/hdlErrors.h
hdl/hdlExports.h
hdlu/hdlu.h
hdlu/hdluExports.h
HEADERS +=
Widget.h
RESOURCES = cube.qrcwin32:LIBS += $$quote(C:/Program Files/Novint/HDAL_SDK_2.1.3/lib/hdl.lib)
INCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/include/hdl")
INCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/include/hdlu")
INCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/examples/Basic/src")INCLUDEPATH +="C:/Program Files/Novint/HDAL_SDK_2.1.3/include"
@