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. header: No such file or directory
Forum Updated to NodeBB v4.3 + New Features

header: No such file or directory

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 4 Posters 2.6k 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by SPlatten
    #1

    Qt 4.8.4, I am trying to port a project built using cmake to a existing pro file so it can be built using Qt Creator.

    Issues: (So far)

    DDS_CGU_IDL.h: No such file or directory
    

    I've double clicked on the error and it opens the header where the include has a red exclamation icon to the left, if I right click the file and choose Follow Symbol Under Cursor it does open the file its complaining about in Qt Creator.

    In the pro file I have also added the relative path of the file:

    INCLUDEPATH += build/common/src/cgu_idl
    

    I've tried Run qmake then rebuilding, it still comes up with the same error, why?

    Kind Regards,
    Sy

    J.HilkJ jsulmJ 2 Replies Last reply
    0
    • SPlattenS SPlatten

      @J-Hilk , I've just realised that I had the wrong path in the INCLUDEPATH, which I've corrected to:

      INCLUDEPATH += ../../../../build/common/src/cgu_idl
      

      However now there is another problem because the file it was complaining about has includes another header using:

      #include "rti_me_cpp.hxx"
      

      Again, Qt Creator doesn't have a problem and will open the file if I right click, but the build process fails with the same error:

      rti_me_cpp.hxx: No such file or directory
      
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #7

      @SPlatten said in header: No such file or directory:

      #include "rti_me_cpp.hxx"

      Then check where this one is located and add the folder to INCLUDEPATH.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      SPlattenS 1 Reply Last reply
      1
      • SPlattenS SPlatten

        Qt 4.8.4, I am trying to port a project built using cmake to a existing pro file so it can be built using Qt Creator.

        Issues: (So far)

        DDS_CGU_IDL.h: No such file or directory
        

        I've double clicked on the error and it opens the header where the include has a red exclamation icon to the left, if I right click the file and choose Follow Symbol Under Cursor it does open the file its complaining about in Qt Creator.

        In the pro file I have also added the relative path of the file:

        INCLUDEPATH += build/common/src/cgu_idl
        

        I've tried Run qmake then rebuilding, it still comes up with the same error, why?

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #2

        @SPlatten did you add DDS_CGU_IDL.h to the HEADERS ?


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        SPlattenS 1 Reply Last reply
        0
        • J.HilkJ J.Hilk

          @SPlatten did you add DDS_CGU_IDL.h to the HEADERS ?

          SPlattenS Offline
          SPlattenS Offline
          SPlatten
          wrote on last edited by SPlatten
          #3

          @J-Hilk , thank you, I'm now sure what that means?

          Sorry, I know what you mean now....however this hasn't been done for all the headers that are included and I wouldn't expect to have to do that either if the include path has been specified.

          Kind Regards,
          Sy

          J.HilkJ 1 Reply Last reply
          0
          • SPlattenS SPlatten

            @J-Hilk , thank you, I'm now sure what that means?

            Sorry, I know what you mean now....however this hasn't been done for all the headers that are included and I wouldn't expect to have to do that either if the include path has been specified.

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #4

            @SPlatten
            https://doc.qt.io/qt-5/qmake-variable-reference.html#headers

            it defines the header of your project in your *.pro file

            you know, for object file generation and linking stuff or moc, if its a QObject class


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            SPlattenS 1 Reply Last reply
            0
            • J.HilkJ J.Hilk

              @SPlatten
              https://doc.qt.io/qt-5/qmake-variable-reference.html#headers

              it defines the header of your project in your *.pro file

              you know, for object file generation and linking stuff or moc, if its a QObject class

              SPlattenS Offline
              SPlattenS Offline
              SPlatten
              wrote on last edited by
              #5

              @J-Hilk , I've just realised that I had the wrong path in the INCLUDEPATH, which I've corrected to:

              INCLUDEPATH += ../../../../build/common/src/cgu_idl
              

              However now there is another problem because the file it was complaining about has includes another header using:

              #include "rti_me_cpp.hxx"
              

              Again, Qt Creator doesn't have a problem and will open the file if I right click, but the build process fails with the same error:

              rti_me_cpp.hxx: No such file or directory
              

              Kind Regards,
              Sy

              jsulmJ KroMignonK 2 Replies Last reply
              0
              • SPlattenS SPlatten

                Qt 4.8.4, I am trying to port a project built using cmake to a existing pro file so it can be built using Qt Creator.

                Issues: (So far)

                DDS_CGU_IDL.h: No such file or directory
                

                I've double clicked on the error and it opens the header where the include has a red exclamation icon to the left, if I right click the file and choose Follow Symbol Under Cursor it does open the file its complaining about in Qt Creator.

                In the pro file I have also added the relative path of the file:

                INCLUDEPATH += build/common/src/cgu_idl
                

                I've tried Run qmake then rebuilding, it still comes up with the same error, why?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #6

                @SPlatten said in header: No such file or directory:

                INCLUDEPATH += build/common/src/cgu_idl

                You're using a relative path which can be the issue here.
                Check the compiler log to see what include folders are passed to the compiler to see wheather your relative path is passed properly.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • SPlattenS SPlatten

                  @J-Hilk , I've just realised that I had the wrong path in the INCLUDEPATH, which I've corrected to:

                  INCLUDEPATH += ../../../../build/common/src/cgu_idl
                  

                  However now there is another problem because the file it was complaining about has includes another header using:

                  #include "rti_me_cpp.hxx"
                  

                  Again, Qt Creator doesn't have a problem and will open the file if I right click, but the build process fails with the same error:

                  rti_me_cpp.hxx: No such file or directory
                  
                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #7

                  @SPlatten said in header: No such file or directory:

                  #include "rti_me_cpp.hxx"

                  Then check where this one is located and add the folder to INCLUDEPATH.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  SPlattenS 1 Reply Last reply
                  1
                  • jsulmJ jsulm

                    @SPlatten said in header: No such file or directory:

                    #include "rti_me_cpp.hxx"

                    Then check where this one is located and add the folder to INCLUDEPATH.

                    SPlattenS Offline
                    SPlattenS Offline
                    SPlatten
                    wrote on last edited by
                    #8

                    @jsulm , searching and doing this now.

                    Kind Regards,
                    Sy

                    1 Reply Last reply
                    0
                    • SPlattenS SPlatten

                      @J-Hilk , I've just realised that I had the wrong path in the INCLUDEPATH, which I've corrected to:

                      INCLUDEPATH += ../../../../build/common/src/cgu_idl
                      

                      However now there is another problem because the file it was complaining about has includes another header using:

                      #include "rti_me_cpp.hxx"
                      

                      Again, Qt Creator doesn't have a problem and will open the file if I right click, but the build process fails with the same error:

                      rti_me_cpp.hxx: No such file or directory
                      
                      KroMignonK Offline
                      KroMignonK Offline
                      KroMignon
                      wrote on last edited by
                      #9

                      @SPlatten said in header: No such file or directory:

                      I've just realised that I had the wrong path in the INCLUDEPATH, which I've corrected to:

                        INCLUDEPATH += ../../../../build/common/src/cgu_idl
                      

                      I would suggest you to set include path not as relative but absolute path.
                      I often use project location as starting point.
                      Something like this: INCLUDEPATH += $$PWD/common/src/cgu_idl
                      or if it is relative to build path:INCLUDEPATH += $$OUT_PWD/common/src/cgu_idl

                      It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                      SPlattenS 1 Reply Last reply
                      3
                      • KroMignonK KroMignon

                        @SPlatten said in header: No such file or directory:

                        I've just realised that I had the wrong path in the INCLUDEPATH, which I've corrected to:

                          INCLUDEPATH += ../../../../build/common/src/cgu_idl
                        

                        I would suggest you to set include path not as relative but absolute path.
                        I often use project location as starting point.
                        Something like this: INCLUDEPATH += $$PWD/common/src/cgu_idl
                        or if it is relative to build path:INCLUDEPATH += $$OUT_PWD/common/src/cgu_idl

                        SPlattenS Offline
                        SPlattenS Offline
                        SPlatten
                        wrote on last edited by
                        #10

                        @KroMignon , thank you.

                        Kind Regards,
                        Sy

                        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