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. Mergin projects, cant compile mocs_compilation
Forum Updated to NodeBB v4.3 + New Features

Mergin projects, cant compile mocs_compilation

Scheduled Pinned Locked Moved Unsolved General and Desktop
cmakemoc
14 Posts 5 Posters 2.4k Views 3 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.
  • D Dariusz

    Hey

    I'm at lost, spend 3h on it now and I can't get it moving.

    I just merged a smaller project library in to larger app, just source copy/include. When I try to run it I get

    
    app_autogen\mocs_compilation.cpp.obj] Error 2
    Makefile2 [CMakeFiles\app.dir\all] Error 2
    Makefile [all] Error 2
    

    I have no idea what to do now, I was slowly adding classes 1 by 1 now, but I don't see any issue at all here.

    Any idea how to troubleshoot it?

    TIA

    K Offline
    K Offline
    koahnig
    wrote on last edited by
    #2

    @Dariusz

    Have you done a rerun qmake and a rebuild?

    Vote the answer(s) that helped you to solve your issue(s)

    D 1 Reply Last reply
    0
    • K koahnig

      @Dariusz

      Have you done a rerun qmake and a rebuild?

      D Offline
      D Offline
      Dariusz
      wrote on last edited by
      #3

      @koahnig said in Mergin projects, cant compile mocs_compilation:

      @Dariusz

      Have you done a rerun qmake and a rebuild?

      About 200 by now :- )

      aha_1980A 1 Reply Last reply
      0
      • D Dariusz

        @koahnig said in Mergin projects, cant compile mocs_compilation:

        @Dariusz

        Have you done a rerun qmake and a rebuild?

        About 200 by now :- )

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #4

        @Dariusz said in Mergin projects, cant compile mocs_compilation:

        @koahnig said in Mergin projects, cant compile mocs_compilation:

        @Dariusz

        Have you done a rerun qmake and a rebuild?

        About 200 by now :- )

        Ehem, are you really using Qmake?

        Makefile2 [CMakeFiles\app.dir\all] Error 2

        that rather sounds like CMake...

        Qt has to stay free or it will die.

        D 2 Replies Last reply
        3
        • aha_1980A aha_1980

          @Dariusz said in Mergin projects, cant compile mocs_compilation:

          @koahnig said in Mergin projects, cant compile mocs_compilation:

          @Dariusz

          Have you done a rerun qmake and a rebuild?

          About 200 by now :- )

          Ehem, are you really using Qmake?

          Makefile2 [CMakeFiles\app.dir\all] Error 2

          that rather sounds like CMake...

          D Offline
          D Offline
          Dariusz
          wrote on last edited by Dariusz
          #5

          @aha_1980 said in Mergin projects, cant compile mocs_compilation:

          @Dariusz said in Mergin projects, cant compile mocs_compilation:

          @koahnig said in Mergin projects, cant compile mocs_compilation:

          @Dariusz

          Have you done a rerun qmake and a rebuild?

          About 200 by now :- )

          Ehem, are you really using Qmake?

          Makefile2 [CMakeFiles\app.dir\all] Error 2

          that rather sounds like CMake...

          Yeah I'm using CMake...hmm I thought I placed tag in the topic for CMake here :- )

          I'm going over CMakeFiles/app.dir /etc/etc now 1 by 1 trying to find some kind of cmake log that could tell me where it crashed....

          Weird thing is, I managed to load half of the library-source, but when I try to say extend one of classes I get an error too... o_o

          1 Reply Last reply
          0
          • aha_1980A aha_1980

            @Dariusz said in Mergin projects, cant compile mocs_compilation:

            @koahnig said in Mergin projects, cant compile mocs_compilation:

            @Dariusz

            Have you done a rerun qmake and a rebuild?

            About 200 by now :- )

            Ehem, are you really using Qmake?

            Makefile2 [CMakeFiles\app.dir\all] Error 2

            that rather sounds like CMake...

            D Offline
            D Offline
            Dariusz
            wrote on last edited by
            #6

            @aha_1980 Ok I think I found it... it was... WINDOWS PATH LIMIT! Yay....... How on earth do I fix it? O_O

            mrjjM 1 Reply Last reply
            0
            • D Dariusz

              @aha_1980 Ok I think I found it... it was... WINDOWS PATH LIMIT! Yay....... How on earth do I fix it? O_O

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #7

              @Dariusz
              Hi Wow. it must be a somewhat nested structure to hit the limit.
              Anyway, if Windows 10, there is an opt-in option
              https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file
              section Maximum Path Length Limitation

              D 1 Reply Last reply
              0
              • mrjjM mrjj

                @Dariusz
                Hi Wow. it must be a somewhat nested structure to hit the limit.
                Anyway, if Windows 10, there is an opt-in option
                https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file
                section Maximum Path Length Limitation

                D Offline
                D Offline
                Dariusz
                wrote on last edited by
                #8

                @mrjj said in Mergin projects, cant compile mocs_compilation:

                @Dariusz
                Hi Wow. it must be a somewhat nested structure to hit the limit.
                Anyway, if Windows 10, there is an opt-in option
                https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file
                section Maximum Path Length Limitation

                I've set the group policy to be long paths, as I'm on w10Pro but still did not work. I ended up having to shorten my folder names :- (((( Apparently in order for long path to be used the application has to use it itself, its not default implementation or something like that :- (.

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

                  Hi,

                  Out of curiosity, how long are you paths ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  D 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Hi,

                    Out of curiosity, how long are you paths ?

                    D Offline
                    D Offline
                    Dariusz
                    wrote on last edited by
                    #10

                    @SGaist said in Mergin projects, cant compile mocs_compilation:

                    Hi,

                    Out of curiosity, how long are you paths ?

                    Weird, I just did check on one of longer ones, it was around 140 chars... + so this is even weirder... how did I hit path limit o.O

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

                      Encrypted disk ?

                      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
                      • D Offline
                        D Offline
                        Dariusz
                        wrote on last edited by
                        #12

                        Nope don't think so. I guess the build/debug/CMake.xxxx etc etc might add quite a few more chars, so the files in src are fine but the generated cmake path is too long due to all of them adding up somehow?

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

                          Did you try to build your project directly from a command prompt ?

                          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
                          • D Offline
                            D Offline
                            Dariusz
                            wrote on last edited by
                            #14

                            Hey

                            Nope not yet. Will try it, just need to learn it :- )

                            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