Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    How to integrate QT with novint falcon?

    Mobile and Embedded
    2
    8
    2015
    Loading More Posts
    • 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
      sunil.nair last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • S
          sunil.nair last edited by

          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 Reply Quote 0
          • S
            sunil.nair last edited by

            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 Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              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 Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • S
                  sunil.nair last edited by

                  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 Reply Quote 0
                  • S
                    sunil.nair last edited by

                    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 Reply Quote 0
                    • First post
                      Last post