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

Qt 6.5 Build from source issue - Can't find class headers like QFile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.5.2, 6.6.0
    • 6.5.0
    • Build System: CMake
    • None
    • Ubuntu 22.10
    • Linux/X11
    • fec618b72 (dev), a95a0524a (6.5)

      Build from source fails with "fatal error: QFile: No such file or directory". 

      // code placeholder
      fatal error: QFile: No such file or directory
          9 | #include <QFile>
      

       

      It is possible to replace the include line with absolute path for qfile.h then compiling will continue but then the issue comes for another file for different or same header file. 

       

      Having this issue for 6.5.0 and 6.5.1.  I can build 6.5.0-rc without that issue.

      I have tested in 2 different PCs.

      This might be related that I'm getting this warning message for many different header files.

      // code placeholder
      WARNING: /home/user/Build/qt-everywhere-src-6.5.1/qtbase/src/corelib/tools/qvarlengtharray.h does not include QT_BEGIN_NAMESPACE
      

        1. build_log.txt
          416 kB
        2. config_log.txt
          284 kB
        3. Core_syncqt_args
          42 kB
        4. qabstractanimation_after.h
          4 kB
        5. qabstractanimation_after-1.h
          4 kB
        6. qabstractanimation_before.h
          4 kB
        7. qabstractanimation_before-1.h
          4 kB
        8. qabstractanimation.h
          4 kB
        9. qabstractanimation-1.h
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            semlanik Alexey Edelev
            imeshsps Imesh Sachinda
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes