Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to correctly add include path?
Forum Updated to NodeBB v4.3 + New Features

How to correctly add include path?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 8.0k 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.
  • R Offline
    R Offline
    romeo.rbw
    wrote on last edited by
    #1

    Hi...
    I am using Qt Creator,
    Recently I am using a webcam and openCV, it works well. Now, it will add a depth camera. After installing the SDK, I want to add it on the .pro file.. But I could not use the new class from the depth camera.
    Please help.

    This is the previous .pro:
    @
    :
    FORMS += dialogapplication.ui
    dialogsetup.ui

    INCLUDEPATH += C:\opencv2.2\include

    LIBS +=-LC:\opencv2.2\lib
    -lopencv_core220
    -lopencv_highgui220
    -lopencv_imgproc220
    -lopencv_features2d220
    -lopencv_calib3d220
    -lopencv_video220
    @

    This is after adding the include path:
    @
    :
    FORMS += dialogapplication.ui
    dialogsetup.ui

    INCLUDEPATH += C:\opencv2.2\include
    INCLUDEPATH += C:\Program Files\SoftKinetic\DepthSenseSDK\include

    LIBS +=-LC:\opencv2.2\lib
    -lopencv_core220
    -lopencv_highgui220
    -lopencv_imgproc220
    -lopencv_features2d220
    -lopencv_calib3d220
    -lopencv_video220
    @

    Thanks.

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

      Hi,

      You should always $$quote("Your path with spaces") especially on Windows

      Also, you don't link to any additional library that is in your additional SDK

      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
      • P Offline
        P Offline
        puksec
        wrote on last edited by
        #3

        And insted of "" inside your path use "/"

        1 Reply Last reply
        0
        • R Offline
          R Offline
          romeo.rbw
          wrote on last edited by
          #4

          Hi..Thank for reply:

          I have modified, now using $$ and add additional LIB, but there is an error message:
          LNK1181: cannot open input file 'DepthSense.lib'

          Few days I cannot solve it, I'm sure that the path is right because I copied it from windows explorer, is there any suggestion?

          @
          :
          INCLUDEPATH += C:\opencv2.2\include
          INCLUDEPATH += C:\Program$$Files\SoftKinetic\DepthSenseSDK\include

          LIBS +=-LC:\opencv2.2\lib
          -lopencv_core220
          -lopencv_highgui220
          -lopencv_imgproc220
          -lopencv_features2d220
          -lopencv_calib3d220
          -lopencv_video220

          LIBS +=-LC:\Program$$Files\SoftKinetic\DepthSenseSDK\lib
          -lDepthSense
          -lDepthSensePlugins
          @

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

            I didn't say replace space with $$, here:
            @
            INCLUDEPATH += $$quote("C:/Program Files/SoftKinetic/DepthSenseSDK/include")
            LIBS +=-L$$quote("C:/Program Files/SoftKinetic/DepthSenseSDK/lib")
            @

            And as puksec wrote, use forward slashes in your paths

            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

            • Login

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