Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qmake & mocing problem
Qt 6.11 is out! See what's new in the release blog

qmake & mocing problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 3 Posters 2.5k Views 2 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Do you have QObject based classes in your project ?
    How are they declared ?
    What version of Qt are you using ?
    On what OS ?

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

    V 2 Replies Last reply
    0
    • V Offline
      V Offline
      VeNToR
      wrote on last edited by
      #3

      @SGaist said in qmake & mocing problem:

      Hi,
      Do you have QObject based classes in your project ?
      How are they declared ?
      What version of Qt are you using ?
      On what OS ?

      Sure, QObject already base class...

      class CH_RSM_LIBRARY CChRSM
      : public QObject
      {
      Q_OBJECT
      ..
      };

      There is no problem for Windows... and no problem before on archlinux.

      QMake version 3.1
      Using Qt version 5.13.1 in /usr/lib

      OS is archlinux for arm on rasberry.

      1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Do you have QObject based classes in your project ?
        How are they declared ?
        What version of Qt are you using ?
        On what OS ?

        V Offline
        V Offline
        VeNToR
        wrote on last edited by
        #4

        @SGaist, same problem for regular examples...

        SGaistS 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Do you have QObject based classes in your project ?
          How are they declared ?
          What version of Qt are you using ?
          On what OS ?

          V Offline
          V Offline
          VeNToR
          wrote on last edited by
          #5

          @SGaist right now, I am %100 sure qmake doesn't execute moc !

          1 Reply Last reply
          0
          • V VeNToR

            @SGaist, same problem for regular examples...

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            @VeNToR said in qmake & mocing problem:

            @SGaist, same problem for regular examples...

            What do you mean by that ?

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

            V 1 Reply Last reply
            1
            • SGaistS SGaist

              @VeNToR said in qmake & mocing problem:

              @SGaist, same problem for regular examples...

              What do you mean by that ?

              V Offline
              V Offline
              VeNToR
              wrote on last edited by
              #7

              @SGaist Orginals examples from Qt already have same problem...

              1 Reply Last reply
              0
              • V Offline
                V Offline
                VeNToR
                wrote on last edited by
                #8

                Funny, my sources on shared folder (CIFS), qmake/moc has been changed on last version and problem with mounted folder over CIFS (also linked folder).

                ...and looking for any ideas...

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

                  I'm not sure I'm following you there.

                  Does it also happen in a local folder ?

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

                  V 1 Reply Last reply
                  1
                  • SGaistS SGaist

                    I'm not sure I'm following you there.

                    Does it also happen in a local folder ?

                    V Offline
                    V Offline
                    VeNToR
                    wrote on last edited by
                    #10

                    @SGaist There is no problem when remote folder copied to local. But, mounted (cifs or nfs) folder occurs problems, such as;

                    • no moc generated
                    • Info: creating stash file /mnt/ChRSM/ChRSM/.qmake.stash
                      /usr/lib/qt/mkspecs/features/toolchain.prf:407: Cannot write cache file /mnt/ChRSM/ChRSM/.qmake.stash: Cannot create parent directory
                      Info: creating cache file /mnt/ChRSM/ChRSM/.qmake.cache
                      /mnt/ChRSM/ChRSM/ChRSM.pro:5: Cannot write cache file /mnt/ChRSM/ChRSM/.qmake.cache: Cannot create parent directory
                    1 Reply Last reply
                    0
                    • Christian EhrlicherC Offline
                      Christian EhrlicherC Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      @VeNToR said in qmake & mocing problem:

                      But, mounted (cifs or nfs) folder occurs problems

                      So why do you think Qt can do something against this? Looks like your mount options are wrong so e.g. the timestamps of the generated files are wrong and /or the permissions do not match.
                      Don't build on an external volume - it will greatly slow down your build times due to the network in between.

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      V 1 Reply Last reply
                      2
                      • Christian EhrlicherC Christian Ehrlicher

                        @VeNToR said in qmake & mocing problem:

                        But, mounted (cifs or nfs) folder occurs problems

                        So why do you think Qt can do something against this? Looks like your mount options are wrong so e.g. the timestamps of the generated files are wrong and /or the permissions do not match.
                        Don't build on an external volume - it will greatly slow down your build times due to the network in between.

                        V Offline
                        V Offline
                        VeNToR
                        wrote on last edited by
                        #12

                        @Christian-Ehrlicher It seems, problem begins from last update of Qt. Mounted volume is storage, and contains lots of sources etc., so I have to copy everything to Mac, Rasp, Linux machines to compile... I am using VS for debug etc. when I change anything in codes then just compile on the each system that's ok ?

                        1 Reply Last reply
                        0
                        • Christian EhrlicherC Offline
                          Christian EhrlicherC Offline
                          Christian Ehrlicher
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

                          @VeNToR said in qmake & mocing problem:

                          It seems, problem begins from last update of Q

                          moc did not change and such problems are well known on filesystems which have a wrong timestamp / don't handle timestamps correctly.

                          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                          Visit the Qt Academy at https://academy.qt.io/catalog

                          V 1 Reply Last reply
                          1
                          • Christian EhrlicherC Christian Ehrlicher

                            @VeNToR said in qmake & mocing problem:

                            It seems, problem begins from last update of Q

                            moc did not change and such problems are well known on filesystems which have a wrong timestamp / don't handle timestamps correctly.

                            V Offline
                            V Offline
                            VeNToR
                            wrote on last edited by
                            #14

                            @Christian-Ehrlicher I solved the problem with workaround that using rsync the folders... I gonna lookup later cause'f project waits...

                            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
                            • Unsolved