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

qfontengine_ft.cpp:341:17: error: ‘FT_Done_MM_Var’ was not declared in this scope

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 6.7.0
    • GUI: Font handling
    • None
    • Linux/X11

    Description

      6.7.0 fails to build on centos 7:

      [599/831] Building CXX object src/gui/CMakeFiles/Gui.dir/text/freetype/qfontengine_ft.cpp.o 
      FAILED: src/gui/CMakeFiles/Gui.dir/text/freetype/qfontengine_ft.cpp.o  
      /opt/rh/devtoolset-9/root/usr/bin/c++  -DENABLE_PIXMAN_DRAWHELPERS -DGui_EXPORTS -DMD4C_USE_UTF8 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_GUI_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARN
      INGS -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC_COMPAT -DQT_NO_AS_CONST -DQT_NO_CAST_TO_ASCII -DQT_NO_CONTEXTLESS_CONNECT -DQT_NO_DEBUG -D
      QT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_NO_USING_NAMESPACE -DQT_QPA_DEFAULT_PLATFORM_NAME=\"xcb\" -DQT_USE_QSTRINGBUILDE
      R -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -Isrc/gui/Gui_autogen/include -Iinclude -Iinclude/QtGui -Isrc/gui -Isrc/gui/../3rdparty/VulkanMemoryAllocator -Isrc/gui/../3rd
      party/D3D12MemoryAllocator -Iinclude/QtGui/6.7.0 -Iinclude/QtGui/6.7.0/QtGui -Isrc/gui/../3rdparty/md4c -Iinclude/QtCore -Imkspecs/linux-g++ -Isrc/corelib -Iinclude/QtCore/6.7.0 -Iinclude/QtCore/6.7.0/QtCor
      e -Isrc/3rdparty/harfbuzz-ng/include/harfbuzz -Iinclude/QtDBus -isystem /usr/include/freetype2 -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -DNDEBUG -O3 -fPIC -fvisibility=hidden -fvi
      sibility-inlines-hidden   -Wall -Wextra -fno-exceptions -fPIC -Wsuggest-override -std=c++17 -Winvalid-pch -include /usr/local/src/qtbase-everywhere-src-6.7.0/src/gui/CMakeFiles/Gui.dir/cmake_pch.hxx -MD -MT
      src/gui/CMakeFiles/Gui.dir/text/freetype/qfontengine_ft.cpp.o -MF src/gui/CMakeFiles/Gui.dir/text/freetype/qfontengine_ft.cpp.o.d -o src/gui/CMakeFiles/Gui.dir/text/freetype/qfontengine_ft.cpp.o -c src/gui
      /text/freetype/qfontengine_ft.cpp 
      src/gui/text/freetype/qfontengine_ft.cpp: In static member function ‘static QFreetypeFace* QFreetypeFace::getFace(const QFontEngine::FaceId&, const QByteArray&)’: 
      src/gui/text/freetype/qfontengine_ft.cpp:341:17: error: ‘FT_Done_MM_Var’ was not declared in this scope; did you mean ‘FT_Get_MM_Var’? 
       341 |                 FT_Done_MM_Var(qt_getFreetype(), var); 
           |                 ^~~~~~~~~~~~~~ 
           |                 FT_Get_MM_Var

      likely https://github.com/qt/qtbase/commit/7bc6f4ae8edc5758af567d8326cb798d423c3982#diff-01852e626ba5ea78afd75dc1945518f895321a602e17ded40503c8826406ce48

       

      this is only available in freetype>=2.9:

      https://github.com/freetype/freetype/commit/3758aed7605aff97d6156937efde8ec51919caab

       

      looks like that part is not guarded like the other parts of the code where we require 2.9

       

       

      /cc esabraha  vhilshei 

      Attachments

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

        Activity

          People

            axelspoerl Axel Spoerl
            jschueller Julien Schueller
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes