Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to integrate QT with novint falcon?
Forum Updated to NodeBB v4.3 + New Features

How to integrate QT with novint falcon?

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 2 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sunil.nair
    wrote on last edited by
    #1

    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_bundle

    TEMPLATE = app

    SOURCES += main.cpp
    haptics.cpp
    gshaptics.cpp
    main_dx9.cpp
    main_opengl.cpp
    StdAfx.cpp

    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

    win32: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/ -lhdld

    INCLUDEPATH += $$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]

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sunil.nair
        wrote on last edited by
        #3

        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.qrc

        win32: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/ -lhdld

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

        C:\Qt\qt-qt3d\tutorials\qt3d\cube4\haptics.cpp:1: error: haptics.h: No such file or directory
        #include "haptics.h"

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sunil.nair
          wrote on last edited by
          #4

          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.qrc

          win32: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/ -lhdld

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

          C:\Qt\qt-qt3d\tutorials\qt3d\cube4\haptics.cpp:1: error: haptics.h: No such file or directory
          #include "haptics.h"

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            It's not the same error, are you sure that file currently exists ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              It's not the same error, are you sure that file currently exists ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sunil.nair
                wrote on last edited by
                #7

                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.qrc

                win32: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"
                @

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  sunil.nair
                  wrote on last edited by
                  #8

                  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.qrc

                  win32: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"
                  @

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved