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. QtLeapMotion Library not building
Forum Updated to NodeBB v4.3 + New Features

QtLeapMotion Library not building

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 411 Views 2 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.
  • R Offline
    R Offline
    RohitIti
    wrote on last edited by
    #1

    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)

    #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 Leap Motion with QT. ?

    Thanks for help.

    Pablo J. RoginaP 1 Reply Last reply
    0
    • R RohitIti

      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)

      #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 Leap Motion with QT. ?

      Thanks for help.

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @RohitIti said in QtLeapMotion Library not building:

      QtLeapMotionLibrary

      Are you following the README.md instructions from such library? Especially:

      In order to run the examples, you have to download the Leap SDK. Then in QtLeapMotion create a Leap directory in which you'll copy the following directories from the LeapSDK : include x64 -> if on 64 bits architecture x86 -> if on 32 bits architecture

      and this step as well:

      Open QtLeapMotionLibrary.pro in QtCreator.

      I don't know why you're creating another .pro file of your own, which seems to be mixing architectures...

      INCLUDEPATH += $$PWD/lib/x64
      DEPENDPATH += $$PWD/lib/x64
      
      INCLUDEPATH += $$PWD/lib/x86
      DEPENDPATH += $$PWD/lib/x86
      

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • R Offline
        R Offline
        RohitIti
        wrote on last edited by
        #3

        Hello Pablo J. Rogina,

        Thank you for your response. Yes i followed exact steps that is mentioned in "README.md instructions " .
        But still i see linker error and there is always error while building .

        I added below lines just to make sure it will try to refer or link without skipping.

        INCLUDEPATH += $$PWD/lib/x64
        DEPENDPATH += $$PWD/lib/x64

        INCLUDEPATH += $$PWD/lib/x86
        DEPENDPATH += $$PWD/lib/x86

        Even without these lines the error remains same. not able to build the library.
        I was having 1 doubt here. Do we have to build this only with MSVC compiler or Minfw will also work ?
        Currently i am using Mingw.

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

          Hi,

          If it's a C++ library you can't mix and match MSVC and MinGW.

          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
          1
          • R Offline
            R Offline
            RohitIti
            wrote on last edited by
            #5

            Thank you SGaist . Let me try configuring MSVC for QT . I will update this topic after trying out.

            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