Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-109656

A problem will cause make fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4: Low P4: Low
    • None
    • 5.15.12, 6.4.1
    • Build tools: qmake
    • None
    • system:windows 11 QMake version: mingw81_32/64

      Files (.h or .cpp)begins with a capital letter will cause a problem when making.In this case the complier will give errors like “undefined reference to `classname::staticMetaObject” 。I had add the micro “Q_OBJECT” in the begin of the class. I check the makefie.debug(or .release) and find the makefile lost some MOC file included in the SOURCE. The problem was resolved when i modified the file's names form capital letter to lower case with no other changes.The appendixs are the demos of this case.

       

       

        1. QSimple_capital.rar
          41 kB
          ma guang
        2. QSimple_little.rar
          43 kB
          ma guang
        3. 20221227203559.png
          12 kB
          ma guang
        4. 20221227203645.png
          20 kB
          ma guang
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtbuildsystem Qt Build System Team
            guang ma guang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes