Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to "include" this...

how to "include" this...

Scheduled Pinned Locked Moved C / C++ / MFC
c++asp-nettutoriallearningworkspace
7 Posts 4 Posters 0 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I have "include" (cloned) a full project from "github". It is missing ONE header file, hence ,it won't compile. I have found another resource which contains the missing file. This resource appears to be a "stand alone" header and it does not give much explanation how to use it. I am asking for suggestion how to "merge" these resources, basically how to change the working clone "dbus/files" to "stand alone " "dbus/files" Simple include both does not work Here is my current setup UNDER construction

    this contains the missing header BUT NO OTHER CODE !
    INCLUDEPATH += "/home/nov25-1/Downloads/nobus-master/include/dbus-1.0/dbus"

    temp removed contains usable code, but missing ONE header file

    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/"
    ///usr/include/core/dbus/dbus.h
    #INCLUDEPATH += "/usr/include/"
    #INCLUDEPATH += "/usr/include/dbus-1.0/"

    links to first dbus.h "missing" file

    #INCLUDEPATH += "/usr/lib64/dbus-1.0/include/"

    #INCLUDEPATH += "/home/nov25-1/Downloads/nobus-master/include/dbus-1.0/dbus"

    INCLUDEPATH += "/mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11 _FEB26/A_BT_LIBRARY/CCC_SOURCE/BT_no_bus/nobus-master/include/dbus-1.0"

    #//dding -I/usr/lib64/dbus-1.0/include/ in c

    #include
    INCLUDEPATH += "../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simpledbus/include/"
    INCLUDE_DIRECTORIES("../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/include/simplebluez")
    #INCLUDEPATH = c:/msdev/include d:/stl/include

    PS. If it is unclear what I am asking for please ask for clarification.

    L J M 3 Replies Last reply
    0
    • L Lost User

      I have "include" (cloned) a full project from "github". It is missing ONE header file, hence ,it won't compile. I have found another resource which contains the missing file. This resource appears to be a "stand alone" header and it does not give much explanation how to use it. I am asking for suggestion how to "merge" these resources, basically how to change the working clone "dbus/files" to "stand alone " "dbus/files" Simple include both does not work Here is my current setup UNDER construction

      this contains the missing header BUT NO OTHER CODE !
      INCLUDEPATH += "/home/nov25-1/Downloads/nobus-master/include/dbus-1.0/dbus"

      temp removed contains usable code, but missing ONE header file

      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/"
      ///usr/include/core/dbus/dbus.h
      #INCLUDEPATH += "/usr/include/"
      #INCLUDEPATH += "/usr/include/dbus-1.0/"

      links to first dbus.h "missing" file

      #INCLUDEPATH += "/usr/lib64/dbus-1.0/include/"

      #INCLUDEPATH += "/home/nov25-1/Downloads/nobus-master/include/dbus-1.0/dbus"

      INCLUDEPATH += "/mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11 _FEB26/A_BT_LIBRARY/CCC_SOURCE/BT_no_bus/nobus-master/include/dbus-1.0"

      #//dding -I/usr/lib64/dbus-1.0/include/ in c

      #include
      INCLUDEPATH += "../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simpledbus/include/"
      INCLUDE_DIRECTORIES("../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/include/simplebluez")
      #INCLUDEPATH = c:/msdev/include d:/stl/include

      PS. If it is unclear what I am asking for please ask for clarification.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You can add any header files to your project repository, or in another location using the INCLUDEPATH variable as you have shown. But I am not sure what you mean by "a "stand alone" header", so yes, your question is not clear. Maybe if you showed the relevant code plus any error messages, it will become clearer.

      1 Reply Last reply
      0
      • L Lost User

        I have "include" (cloned) a full project from "github". It is missing ONE header file, hence ,it won't compile. I have found another resource which contains the missing file. This resource appears to be a "stand alone" header and it does not give much explanation how to use it. I am asking for suggestion how to "merge" these resources, basically how to change the working clone "dbus/files" to "stand alone " "dbus/files" Simple include both does not work Here is my current setup UNDER construction

        this contains the missing header BUT NO OTHER CODE !
        INCLUDEPATH += "/home/nov25-1/Downloads/nobus-master/include/dbus-1.0/dbus"

        temp removed contains usable code, but missing ONE header file

        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/"
        ///usr/include/core/dbus/dbus.h
        #INCLUDEPATH += "/usr/include/"
        #INCLUDEPATH += "/usr/include/dbus-1.0/"

        links to first dbus.h "missing" file

        #INCLUDEPATH += "/usr/lib64/dbus-1.0/include/"

        #INCLUDEPATH += "/home/nov25-1/Downloads/nobus-master/include/dbus-1.0/dbus"

        INCLUDEPATH += "/mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11 _FEB26/A_BT_LIBRARY/CCC_SOURCE/BT_no_bus/nobus-master/include/dbus-1.0"

        #//dding -I/usr/lib64/dbus-1.0/include/ in c

        #include
        INCLUDEPATH += "../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simpledbus/include/"
        INCLUDE_DIRECTORIES("../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/include/simplebluez")
        #INCLUDEPATH = c:/msdev/include d:/stl/include

        PS. If it is unclear what I am asking for please ask for clarification.

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        Salvatore Terress wrote:

        I have "include" (cloned) a full project from "github"

        Presumably you mean a single repo.

        Salvatore Terress wrote:

        how to "merge" these resources,

        Repo A has the code. Repo B has the include file. Copy the file from B and put it into A. You do nothing at all with B after that. Modify whatever you need to in A so the include file, in A, is used correctly. Compile and test A.

        L 1 Reply Last reply
        0
        • J jschell

          Salvatore Terress wrote:

          I have "include" (cloned) a full project from "github"

          Presumably you mean a single repo.

          Salvatore Terress wrote:

          how to "merge" these resources,

          Repo A has the code. Repo B has the include file. Copy the file from B and put it into A. You do nothing at all with B after that. Modify whatever you need to in A so the include file, in A, is used correctly. Compile and test A.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          That is what I thought would work... I may have to change A to be read / write... I'll let you know the outcome... Thanks

          R 1 Reply Last reply
          0
          • L Lost User

            I have "include" (cloned) a full project from "github". It is missing ONE header file, hence ,it won't compile. I have found another resource which contains the missing file. This resource appears to be a "stand alone" header and it does not give much explanation how to use it. I am asking for suggestion how to "merge" these resources, basically how to change the working clone "dbus/files" to "stand alone " "dbus/files" Simple include both does not work Here is my current setup UNDER construction

            this contains the missing header BUT NO OTHER CODE !
            INCLUDEPATH += "/home/nov25-1/Downloads/nobus-master/include/dbus-1.0/dbus"

            temp removed contains usable code, but missing ONE header file

            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/"
            ///usr/include/core/dbus/dbus.h
            #INCLUDEPATH += "/usr/include/"
            #INCLUDEPATH += "/usr/include/dbus-1.0/"

            links to first dbus.h "missing" file

            #INCLUDEPATH += "/usr/lib64/dbus-1.0/include/"

            #INCLUDEPATH += "/home/nov25-1/Downloads/nobus-master/include/dbus-1.0/dbus"

            INCLUDEPATH += "/mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11 _FEB26/A_BT_LIBRARY/CCC_SOURCE/BT_no_bus/nobus-master/include/dbus-1.0"

            #//dding -I/usr/lib64/dbus-1.0/include/ in c

            #include
            INCLUDEPATH += "../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simpledbus/include/"
            INCLUDE_DIRECTORIES("../../A_BT_LIBRARY/SimpleBluetooth/SimpleBLE-main/simplebluez/include/simplebluez")
            #INCLUDEPATH = c:/msdev/include d:/stl/include

            PS. If it is unclear what I am asking for please ask for clarification.

            M Offline
            M Offline
            Maximilien
            wrote on last edited by
            #5

            which github ?

            CI/CD = Continuous Impediment/Continuous Despair

            L 1 Reply Last reply
            0
            • M Maximilien

              which github ?

              CI/CD = Continuous Impediment/Continuous Despair

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              A SimpleBluetooth - full code B nodbus dbus header only both have dbus as a "wrapper' folder. I am busy trying to keep the separate but in my own directory stricture. So I have not actually compare the real headers. I won't be surprised if the foundation is "bluez library. There are too many "clones" of this undocumented source... seems a waste of talent to keep reinventing " bluez"...

              1 Reply Last reply
              0
              • L Lost User

                That is what I thought would work... I may have to change A to be read / write... I'll let you know the outcome... Thanks

                R Offline
                R Offline
                RedDk
                wrote on last edited by
                #7

                (yeah, let me know ...)

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups