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

REG[6.7 → 6.8]: generated qml type registration contains invalid include paths

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.0 RC, 6.8, 6.9.0 FF
    • 6.8.0 Beta2
    • QML: Compiler
    • None
    • 484e72a10 (dev), 833c0040c (6.8), b870d14ab (dev), 456fd5b50 (dev), 025cf98c2 (6.8), 6bb5a06ee (6.8), c34445eed (dev), d79043880 (dev), 5c81be8f5 (6.8), 2d44996c2 (6.8)

    Description

      Building the attached nonsense application runs into

      [13/18 4.8/sec] Building CXX object CMakeFiles/appbrickman.dir/appbrickman_qmltyperegistrations.cpp.o
      FAILED: ...
      appbrickman_qmltyperegistrations.cpp:10:10: fatal error: 'base.h' file not found
         10 | #include <base.h>
            |          ^~~~~~~~
      1 error generated.
      

      That's mostly because some mechanism inserts the include of the Base class without the leading common/. Earlier versions didn't add that include, so I guess it's important. Well - at least not important enough, because I can safely remove it and it compiles.

      It seems that I can get around the error by:

      • Manually exporting the Base class to QML (it worked well up to now without doing that, do I have to?)
      • Adding each subdirectory to the target_include_directories (where the party is crushed by time.h in the example)

      Is there anything else I can do?

      Attachments

        1. brickman.tgz
          2 kB
          Cajus Pollmeier

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity