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

MinGW Qt6Platform.pc has an extra '>' after '-D_UNICODE'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.2.13, 6.5.6, 6.7.1, 6.8.0 FF
    • 6.4.0
    • Build System: CMake
    • None
    • Windows 10, MinGW 11.2.0
    • Windows
    • f35b9530b (dev), 3890c487e (6.7), 633216f28 (tqtc/lts-6.5), abcb395fa (tqtc/lts-6.2)

    Description

      Build qtbase ( dev branch ) using MinGW compiler, open Qt6Platform.pc file.

      prefix=D:/Qt/qt-dev-mingw1120_64-shared
      exec_prefix=${prefix}
      bindir=${prefix}/bin
      libdir=${prefix}/lib
      includedir=${prefix}/include
      mkspecsdir=${prefix}/mkspecs
       
      Name: Qt6 Platform
      Description: Qt Platform module
      Version: 6.4.0
      Libs:   
      Cflags: -I${mkspecsdir}/win32-g++ -I${includedir} -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -D_WIN64 -DMINGW_HAS_SECURE_API=1 -D_UNICODE>
      Requires: 
      
      

      It has an '>' after '-D_UNICODE', and '-DUNICODE' is missing.

      It seems that the implemetion of qt_internal_set_pkg_config_cpp_flags() is defective.

      The arguments passed to this macro are:

      compile_defs
      "WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WIN64;_WIN64;MINGW_HAS_SECURE_API=1;$<$<NOT:$<BOOL:$<TARGET_PROPERTY:QT_NO_UNICODE_DEFINES>>>:UNICODE;_UNICODE>"
      -D
      

      The return value is:

      $<$<BOOL:WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WIN64;_WIN64;MINGW_HAS_SECURE_API=1;_UNICODE$<ANGLE-R>>:-D$<JOIN:$<REMOVE_DUPLICATES:WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WIN64;_WIN64;MINGW_HAS_SECURE_API=1;_UNICODE$<ANGLE-R>>, -D>>
      

      The expected return value is:

      $<$<BOOL:WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WIN64;_WIN64;MINGW_HAS_SECURE_API=1;UNICODE;_UNICODE>:-D$<JOIN:$<REMOVE_DUPLICATES:WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WIN64;_WIN64;MINGW_HAS_SECURE_API=1;UNICODE;_UNICODE>, -D>>

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            lixinwei Li Xinwei
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes