Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. how to add "include" path in QtCreator?
Forum Updated to NodeBB v4.3 + New Features

how to add "include" path in QtCreator?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 3 Posters 841 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by Anonymous_Banned275
    #1

    Is there a recommended way to add common "include" path ?
    In C/C++ common path is usually specified in complier option "/i "...
    Qt has many "common " options in make (.pro) file...
    ADDENDUM
    adding to .pro

    INCLUDE_DIRECTORIES("../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/include/simplebluez")

    gives error

    /mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11 _FEB4/A_BT_LIBRARY/A_DEC17_Bluetoothctl_Dialog_V1/Bluetoothctl_Dialog.pro:91: error: 'INCLUDE_DIRECTORIES' is not a recognized test function.

    Christian EhrlicherC Q 2 Replies Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
    • A Anonymous_Banned275

      Is there a recommended way to add common "include" path ?
      In C/C++ common path is usually specified in complier option "/i "...
      Qt has many "common " options in make (.pro) file...
      ADDENDUM
      adding to .pro

      INCLUDE_DIRECTORIES("../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/include/simplebluez")

      gives error

      /mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11 _FEB4/A_BT_LIBRARY/A_DEC17_Bluetoothctl_Dialog_V1/Bluetoothctl_Dialog.pro:91: error: 'INCLUDE_DIRECTORIES' is not a recognized test function.

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      See qmake variable reference for INCLUDE on how to add an include path for the compiler.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      A 1 Reply Last reply
      2
      • A Anonymous_Banned275

        Is there a recommended way to add common "include" path ?
        In C/C++ common path is usually specified in complier option "/i "...
        Qt has many "common " options in make (.pro) file...
        ADDENDUM
        adding to .pro

        INCLUDE_DIRECTORIES("../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/include/simplebluez")

        gives error

        /mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11 _FEB4/A_BT_LIBRARY/A_DEC17_Bluetoothctl_Dialog_V1/Bluetoothctl_Dialog.pro:91: error: 'INCLUDE_DIRECTORIES' is not a recognized test function.

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by
        #3

        @AnneRanch I request you to use full path.

        A 1 Reply Last reply
        0
        • Q Qt embedded developer

          @AnneRanch I request you to use full path.

          A Offline
          A Offline
          Anonymous_Banned275
          wrote on last edited by
          #4

          @Qt-embedded-developer ...have cloned rather LARGE project and there are numerous "include" , hence modifying each with full path is impractical Here is what I have so far and it is working as expected - all Linked In to my cloned copy

          INCLUDEPATH += "../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/include/simplebluez/"
          INCLUDEPATH += "../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/include/"
          INCLUDEPATH += "../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/simpledbus/advanced/"
          INCLUDEPATH += "../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simpledbus/include/"
          
          1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            See qmake variable reference for INCLUDE on how to add an include path for the compiler.

            A Offline
            A Offline
            Anonymous_Banned275
            wrote on last edited by
            #5

            @Christian-Ehrlicher Thanks , it is working as expected.

            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