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. Dependent (that clearly exists) does not exist error when building Qt Creator project

Dependent (that clearly exists) does not exist error when building Qt Creator project

Scheduled Pinned Locked Moved Unsolved General and Desktop
23 Posts 12 Posters 12.1k Views
  • 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 aha_1980
    2 May 2019, 14:02

    @jacobdbernard

    Uhm... seems to be a bigger one. You will need to search the .pri files for router_app_service_interface.hpp and see if that gives you new insight.

    Resolving that might be a challenging task - not sure if forum support is sufficient for that.

    Regards

    J Offline
    J Offline
    jacobdbernard
    wrote on 2 May 2019, 14:06 last edited by
    #7

    @aha_1980 That makes sense - I'll look into it, and for the record the antivirus/admin windows settings on my laptop are fairly strict because of company policies, any chance that could be causing issues?

    A 1 Reply Last reply 2 May 2019, 14:58
    0
    • J jacobdbernard
      2 May 2019, 14:06

      @aha_1980 That makes sense - I'll look into it, and for the record the antivirus/admin windows settings on my laptop are fairly strict because of company policies, any chance that could be causing issues?

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 2 May 2019, 14:58 last edited by
      #8

      @jacobdbernard said in Dependent (that clearly exists) does not exist error when building Qt Creator project:

      and for the record the antivirus/admin windows settings on my laptop are fairly strict because of company policies, any chance that could be causing issues?

      Yeah, these are always a source for fun. However, in your case I doubt it.

      What you can also do is to inspect the generated Makefile. We already know it is wrong, but maybe you see why it is wrong.

      Good luck!

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 2 May 2019, 19:40 last edited by
        #9

        Hi,

        @jacobdbernard said in Dependent (that clearly exists) does not exist error when building Qt Creator project:

        object_parallel_to_source

        I wonder if this one might be part of the problem.

        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
        2
        • J Offline
          J Offline
          jacobdbernard
          wrote on 2 May 2019, 20:29 last edited by
          #10

          @SGaist I see what you mean looking at the documentation, but unfortunately removing that option didn't seem to make a difference.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Cosmin124
            wrote on 22 May 2019, 10:46 last edited by
            #11

            I have the same exact error on Windows 10 with Qt 5.12.3, but not on macOS 10.14.4 with same Qt version. I did not get this error on Windows 10 with Qt 5.5.1.

            I tried all the ideas above so this seems to be a bug in Qt 5.12.3 for Windows. Have you found any solution?

            A 1 Reply Last reply 22 May 2019, 10:56
            0
            • C Cosmin124
              22 May 2019, 10:46

              I have the same exact error on Windows 10 with Qt 5.12.3, but not on macOS 10.14.4 with same Qt version. I did not get this error on Windows 10 with Qt 5.5.1.

              I tried all the ideas above so this seems to be a bug in Qt 5.12.3 for Windows. Have you found any solution?

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 22 May 2019, 10:56 last edited by
              #12

              @Cosmin124

              Do you use object_parallel_to_source ?

              Qt has to stay free or it will die.

              C 1 Reply Last reply 22 May 2019, 12:57
              0
              • A aha_1980
                22 May 2019, 10:56

                @Cosmin124

                Do you use object_parallel_to_source ?

                C Offline
                C Offline
                Cosmin124
                wrote on 22 May 2019, 12:57 last edited by
                #13

                @aha_1980 No, I don't.

                A 1 Reply Last reply 22 May 2019, 16:05
                0
                • C Cosmin124
                  22 May 2019, 12:57

                  @aha_1980 No, I don't.

                  A Offline
                  A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on 22 May 2019, 16:05 last edited by
                  #14

                  @Cosmin124 It will be hard to help you without the actual project. At least all project files are needed.

                  If you want to investigate yourself, check the compile output. sometimes builds fail just because of timing, i.e. dependency is build parallel or after the project that uses the dependency.

                  Regards

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  1
                  • J Offline
                    J Offline
                    jacobdbernard
                    wrote on 23 May 2019, 17:46 last edited by
                    #15

                    Unfortunately I wasn't able to fix it @Cosmin124

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      fcarney
                      wrote on 23 May 2019, 18:02 last edited by
                      #16

                      Are other files from the same directory being included from this dir?

                      $$PWD/../../../GBusArtifact/Debug/interface/include/routercontroller/routercontroller_fw \
                      

                      Have you tried doing an explicit include:

                      HEADERS += <absolute path>
                      or
                      HEADERS += <relative path>
                      

                      Are there symbolic links in the path that could be screwing stuff up?

                      C++ is a perfectly valid school of magic.

                      1 Reply Last reply
                      3
                      • S Offline
                        S Offline
                        saurabhjadhav1911
                        wrote on 22 Nov 2019, 11:33 last edited by
                        #17

                        this might help:
                        add the following to .pro file

                        QMAKE_PROJECT_DEPTH = 0
                        

                        this will make all Makefile includes to absolute paths

                        L L J 3 Replies Last reply 24 Dec 2019, 06:49
                        4
                        • S saurabhjadhav1911
                          22 Nov 2019, 11:33

                          this might help:
                          add the following to .pro file

                          QMAKE_PROJECT_DEPTH = 0
                          

                          this will make all Makefile includes to absolute paths

                          L Offline
                          L Offline
                          leon_t
                          wrote on 24 Dec 2019, 06:49 last edited by
                          #18

                          @saurabhjadhav1911 Add QMAKE_PROJECT_DEPTH = 0 to .pro file works for me, thanks very much.

                          B D SprezzaturaS 3 Replies Last reply 3 May 2022, 11:28
                          1
                          • L leon_t
                            24 Dec 2019, 06:49

                            @saurabhjadhav1911 Add QMAKE_PROJECT_DEPTH = 0 to .pro file works for me, thanks very much.

                            B Offline
                            B Offline
                            billouparis
                            wrote on 3 May 2022, 11:28 last edited by
                            #19

                            @leon_t
                            It worked for me, thank you!
                            Bill

                            1 Reply Last reply
                            0
                            • L leon_t
                              24 Dec 2019, 06:49

                              @saurabhjadhav1911 Add QMAKE_PROJECT_DEPTH = 0 to .pro file works for me, thanks very much.

                              D Offline
                              D Offline
                              drwa
                              wrote on 15 Jan 2023, 10:13 last edited by
                              #20

                              @leon_t said in Dependent (that clearly exists) does not exist error when building Qt Creator project:

                              @saurabhjadhav1911 Add QMAKE_PROJECT_DEPTH = 0 to .pro file works for me, thanks very much.

                              Worked.

                              1 Reply Last reply
                              0
                              • S saurabhjadhav1911
                                22 Nov 2019, 11:33

                                this might help:
                                add the following to .pro file

                                QMAKE_PROJECT_DEPTH = 0
                                

                                this will make all Makefile includes to absolute paths

                                L Offline
                                L Offline
                                lb1234
                                wrote on 11 Dec 2023, 14:11 last edited by
                                #21

                                @saurabhjadhav1911 thanks~

                                1 Reply Last reply
                                0
                                • L leon_t
                                  24 Dec 2019, 06:49

                                  @saurabhjadhav1911 Add QMAKE_PROJECT_DEPTH = 0 to .pro file works for me, thanks very much.

                                  SprezzaturaS Offline
                                  SprezzaturaS Offline
                                  Sprezzatura
                                  wrote on 12 Dec 2024, 23:12 last edited by
                                  #22

                                  @leon_t Amazing! It works! Why?

                                  1 Reply Last reply
                                  0
                                  • S saurabhjadhav1911
                                    22 Nov 2019, 11:33

                                    this might help:
                                    add the following to .pro file

                                    QMAKE_PROJECT_DEPTH = 0
                                    

                                    this will make all Makefile includes to absolute paths

                                    J Offline
                                    J Offline
                                    JPinasQT
                                    wrote on 13 Jan 2025, 06:46 last edited by
                                    #23

                                    @saurabhjadhav1911 It works for me!!! Thanks a lot

                                    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