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

qfontdatabase_mac.cpp does not compile with MacOSX SDK 10.4

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.8.0, 4.8.1
    • GUI: Text handling
    • None
    • macOS

    Description

      g+-4.0 -c -include .pch/release-shared/QtGui -pipe -Xarch_i386 -mmacosx-version-min=10.4 -O2 -arch i386 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_USE_BUNDLED_LIBPNG -DPNG_NO_ASSEMBLER_CODE -DQT_NO_CUPS -DQT_NO_LPR -DQT_NO_OPENTYPE -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/macx-g+40 -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -Iimage -I../3rdparty/libpng -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I.uic/release-shared -F/storage/qt_repo/lib -o .obj/release-shared/qfontdatabase.o text/qfontdatabase.cpp
      text/qfontdatabase_mac.cpp: In static member function 'static QString QFontDatabase::resolveFontFamilyAlias(const QString&)':
      text/qfontdatabase_mac.cpp:547: error: 'kCTFontFamilyNameAttribute' was not declared in this scope
      text/qfontdatabase_mac.cpp:548: error: 'CTFontDescriptorRef' was not declared in this scope
      text/qfontdatabase_mac.cpp:548: error: template argument 1 is invalid
      text/qfontdatabase_mac.cpp:548: error: invalid type in declaration before '=' token
      text/qfontdatabase_mac.cpp:548: error: 'CTFontDescriptorCreateWithAttributes' was not declared in this scope
      text/qfontdatabase_mac.cpp:553: error: 'CTFontRef' was not declared in this scope
      text/qfontdatabase_mac.cpp:553: error: template argument 1 is invalid
      text/qfontdatabase_mac.cpp:553: error: invalid type in declaration before '=' token
      text/qfontdatabase_mac.cpp:553: error: 'CTFontCreateWithFontDescriptor' was not declared in this scope
      text/qfontdatabase_mac.cpp:554: error: 'CTFontDescriptorRef' cannot appear in a constant-expression
      text/qfontdatabase_mac.cpp:554: error: template argument 1 is invalid
      text/qfontdatabase_mac.cpp:554: error: invalid type in declaration before '=' token
      text/qfontdatabase_mac.cpp:554: error: 'CTFontDescriptorCreateMatchingFontDescriptor' was not declared in this scope
      text/qfontdatabase_mac.cpp:558: error: 'CTFontDescriptorCopyLocalizedAttribute' was not declared in this scope
      text/qfontdatabase_mac.cpp:553: warning: unused variable 'font'
      make[2]: *** [.obj/release-shared/qfontdatabase.o] Error 1
      make[1]: *** [release] Error 2
      make: *** [sub-gui-make_default-ordered] Error 2

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            mozi Alex Mordovin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes