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

Syntax error in Qt6BuildInternalsExtra.cmake fails the configuration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.3
    • 6.5
    • Build System: CMake
    • None
    • Android, Windows

    Description

      In the line 45 of Qt6BuildInternalsExtra.cmake, there's a line like so:

      set(qtbi_orig_prefix "C:\Qt") 

      This causes an error when the configuration is ran with cmake:

      CMake Error at C:/Qt/6.5.0/android_x86_64/lib/cmake/Qt6BuildInternals/QtBuildInternalsExtra.cmake:45 (set):
        Syntax error in cmake code at    C:/Qt/6.5.0/android_x86_64/lib/cmake/Qt6BuildInternals/QtBuildInternalsExtra.cmake:45  when parsing string    C:\Qt  Invalid character escape '\Q'.
      Call Stack (most recent call first):
        C:/Qt/6.5.0/android_x86_64/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake:54 (include)
        C:/Qt/6.5.0/android_x86_64/lib/cmake/Qt6/Qt6Config.cmake:157 (find_package)
        CMakeLists.txt:18 (find_package) 

      Changing it to this solved the issue.

      set(qtbi_orig_prefix "C:\\Qt") 

      Attachments

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

        Activity

          People

            releaseteam Qt Release Team
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes