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. Specify directories for UIC, MOC, and Object Files for each Module in an Application
Forum Updated to NodeBB v4.3 + New Features

Specify directories for UIC, MOC, and Object Files for each Module in an Application

Scheduled Pinned Locked Moved Unsolved General and Desktop
16 Posts 2 Posters 4.0k 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.
  • I Offline
    I Offline
    isaacEnrique
    wrote on last edited by
    #5

    Okay, but

    Can you give me some explanation (or some link to study) about it?

    Isaac Pérez
    Programming is understanding.

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

      Sure: http://code.qt.io/cgit/qt/qtbase.git/commit/?id=47df12225918ba82abe35921af19e547717da58b

      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
      • I Offline
        I Offline
        isaacEnrique
        wrote on last edited by
        #7

        I continue to have problems compiling. Warnings of type:

        Ignoring old recipe for target 'moc/moc_AppDlg.cpp'
        Overriding recipe for target 'moc/moc_AppDlg.cpp'

        In addition to several related errors: The member functions of Morph::AppDlg are not defined.

        Isaac Pérez
        Programming is understanding.

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

          Did you re-run qmake or do a clean re-build (i.e. nuke the shadow-build folder) after adding the CONFIG option ?

          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
          • I Offline
            I Offline
            isaacEnrique
            wrote on last edited by
            #9

            Yes. I deleted the shadow-build folder, and rebuilt the application. I continue to get errors/warnings mentioned above.

            I'm working with Qt 4.8.6 and Qt Creator 2.5.2 (I do not know if that influences).

            Isaac Pérez
            Programming is understanding.

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

              Oh yes, that influences greatly since object_parallel_to_source is Qt 5 feature.

              Are you locked to that old version of Qt ?

              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
              1
              • I Offline
                I Offline
                isaacEnrique
                wrote on last edited by
                #11

                Yes, at least temporarily I am required to work with Qt 4.8.6.

                Is there any option to get that same functionality in the Qt version I'm working with?

                Isaac Pérez
                Programming is understanding.

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

                  If you are building Qt yourself, you could try to back port the patch.

                  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
                  • I Offline
                    I Offline
                    isaacEnrique
                    wrote on last edited by
                    #13

                    I'm not building Qt by myself.

                    I wonder if there is any way (set of instructions specified in the .pro file, maybe something like what I used under the comment #Instalacion), in Qt 4.8.6, to achieve something similar to the functionality of the object_parallel_to_source option; or something that allows me to have two classes of the same name in my project.

                    Can you do such a thing?

                    Isaac Pérez
                    Programming is understanding.

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

                      You can use object_with_source BUT (and it's a big one) you lose the ability to do out of source builds.

                      On a side note, Qt 4.8.6 is not the latest of the Qt 4 series, there's Qt 4.8.7.

                      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
                      • I Offline
                        I Offline
                        isaacEnrique
                        wrote on last edited by
                        #15

                        I will try to use object_with_source.

                        On the other hand, I wonder if it will be possible to manually emulate (with instructions in the .pro file, with some script, or something like that) the functionality of the object_parallel_to_source option.

                        Isaac Pérez
                        Programming is understanding.

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

                          I'd say highly unlikely. Note that you could also try with cmake rather than qmake.

                          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

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved