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

Failed to build with "-system-freetype"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.3.0 Beta1
    • Build System
    • None
    • Windows 7 64-bit, mingw-w64 toolchain GCC-4.8.2

    Description

      Trying to build Qt-5.3.0-beta with mingw-w64 toolchain using option "-system-freetype" I get undefined references because qmake don't add QMAKE_CFLAGS_FONTCONFIG and QMAKE_LIBS_FONTCONFIG to build flags.
      Also I think it can be helpful if pkg-config will be used for determine used system libraries.

      g++ -c -march=nocona -mtune=core2 -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -fno-exceptions -frtti -Wall -Wextra -DUNICODE -DQT_NO_CAST_FROM_ASCII -DQT_NO_DIRECTWRITE -DQT_NO_FONTCONFIG -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PLATFORMSUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I'.' -I'../../../3rdparty/wintab' -I'../../../../include' -I'../../../../include/QtPlatformSupport' -I'../../../../include/QtPlatformSupport/5.3.0' -I'../../../../include/QtPlatformSupport/5.3.0/QtPlatformSupport' -I'../../../../include/QtGui/5.3.0' -I'../../../../include/QtGui/5.3.0/QtGui' -I'../../../../include/QtCore/5.3.0' -I'../../../../include/QtCore/5.3.0/QtCore' -I'../../../../include/QtGui' -I'../../../../include/QtCore' -I'.moc/release' -I'../../../../mkspecs/win32-g++' -o .obj/release/moc_qwindowsguieventdispatcher.o .moc/release/moc_qwindowsguieventdispatcher.cpp
      g++ -shared -Wl,--out-implib,C:/build/qt/src/x86_64/qtbase/plugins/platforms/libqwindowsd.dll.a -o ../../../../plugins/platforms/qwindowsd.dll object_script.qwindowsd.Debug  -lole32 -lwinspool -limm32 -lwinmm -loleaut32 -luuid -lshlwapi -lshell32 -ladvapi32 -LC:/build/qt/src/x86_64/qtbase/lib -lQt5PlatformSupportd -lglu32 -lopengl32 -lgdi32 -luser32 -lQt5Guid -lQt5Cored
      g++ -c -march=nocona -mtune=core2 -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -fno-exceptions -frtti -Wall -Wextra -DUNICODE -DQT_NO_CAST_FROM_ASCII -DQT_NO_DIRECTWRITE -DQT_NO_FONTCONFIG -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PLATFORMSUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I'.' -I'../../../3rdparty/wintab' -I'../../../../include' -I'../../../../include/QtPlatformSupport' -I'../../../../include/QtPlatformSupport/5.3.0' -I'../../../../include/QtPlatformSupport/5.3.0/QtPlatformSupport' -I'../../../../include/QtGui/5.3.0' -I'../../../../include/QtGui/5.3.0/QtGui' -I'../../../../include/QtCore/5.3.0' -I'../../../../include/QtCore/5.3.0/QtCore' -I'../../../../include/QtGui' -I'../../../../include/QtCore' -I'.moc/release' -I'../../../../mkspecs/win32-g++' -o .obj/release/moc_qwindowsinputcontext.o .moc/release/moc_qwindowsinputcontext.cpp
      g++ -c -march=nocona -mtune=core2 -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -fno-exceptions -frtti -Wall -Wextra -DUNICODE -DQT_NO_CAST_FROM_ASCII -DQT_NO_DIRECTWRITE -DQT_NO_FONTCONFIG -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PLATFORMSUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I'.' -I'../../../3rdparty/wintab' -I'../../../../include' -I'../../../../include/QtPlatformSupport' -I'../../../../include/QtPlatformSupport/5.3.0' -I'../../../../include/QtPlatformSupport/5.3.0/QtPlatformSupport' -I'../../../../include/QtGui/5.3.0' -I'../../../../include/QtGui/5.3.0/QtGui' -I'../../../../include/QtCore/5.3.0' -I'../../../../include/QtCore/5.3.0/QtCore' -I'../../../../include/QtGui' -I'../../../../include/QtCore' -I'.moc/release' -I'../../../../mkspecs/win32-g++' -o .obj/release/moc_qwindowsnativeinterface.o .moc/release/moc_qwindowsnativeinterface.cpp
      ./.obj/debug/qbasicfontdatabase.o: In function `QBasicFontDatabase::addTTFile(QByteArray const&, QByteArray const&)':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp:233: undefined reference to `FT_New_Memory_Face'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp:235: undefined reference to `FT_New_Face'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp:265: undefined reference to `FT_Get_Sfnt_Table'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp:319: undefined reference to `FT_Done_Face'
      ./.obj/debug/qfontengine_ft.o: In function `ft_getSfntTable':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:127: undefined reference to `FT_Load_Sfnt_Table'
      ./.obj/debug/qfontengine_ft.o: In function `QtFreetypeData::~QtFreetypeData()':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:155: undefined reference to `FT_Done_FreeType'
      ./.obj/debug/qfontengine_ft.o: In function `qt_getFreetype()':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:182: undefined reference to `FT_Init_FreeType'
      ./.obj/debug/qfontengine_ft.o: In function `QFreetypeFace::fsType() const':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:189: undefined reference to `FT_Get_Sfnt_Table'
      ./.obj/debug/qfontengine_ft.o: In function `QFreetypeFace::getPointInOutline(unsigned int, int, unsigned int, QFixed*, QFixed*, unsigned int*)':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:197: undefined reference to `FT_Load_Glyph'
      ./.obj/debug/qfontengine_ft.o: In function `QFreetypeFace::getFace(QFontEngine::FaceId const&, QByteArray const&)':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:233: undefined reference to `FT_Init_FreeType'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:262: undefined reference to `FT_New_Memory_Face'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:265: undefined reference to `FT_New_Face'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:307: undefined reference to `FT_Set_Char_Size'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:309: undefined reference to `FT_Set_Charmap'
      ./.obj/debug/qfontengine_ft.o: In function `QFreetypeFace::cleanup()':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:328: undefined reference to `FT_Done_Face'
      ./.obj/debug/qfontengine_ft.o: In function `QFreetypeFace::release(QFontEngine::FaceId const&)':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:344: undefined reference to `FT_Done_FreeType'
      ./.obj/debug/qfontengine_ft.o: In function `QFreetypeFace::computeSize(QFontDef const&, int*, int*, bool*)':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:376: undefined reference to `FT_Set_Char_Size'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:383: undefined reference to `FT_Set_Pixel_Sizes'
      ./.obj/debug/qfontengine_ft.o: In function `QFreetypeFace::properties() const':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:399: undefined reference to `FT_Get_Postscript_Name'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:401: undefined reference to `FT_Get_PS_Font_Info'
      ./.obj/debug/qfontengine_ft.o: In function `scaleOutline':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:442: undefined reference to `FT_MulDiv'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:443: undefined reference to `FT_MulDiv'
      ./.obj/debug/qfontengine_ft.o: In function `QFontEngineFT::init(QFontEngine::FaceId, bool, QFontEngine::GlyphFormat, QFreetypeFace*)':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:705: undefined reference to `FT_Get_PS_Font_Info'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:724: undefined reference to `FT_Set_Transform'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:758: undefined reference to `FT_Select_Size'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:761: undefined reference to `FT_Set_Char_Size'
      ./.obj/debug/qfontengine_ft.o: In function `QFontEngineFT::loadGlyph(QFontEngineFT::QGlyphSet*, unsigned int, QFixed, QFontEngine::GlyphFormat, bool) const':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:869: undefined reference to `FT_Set_Transform'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:871: undefined reference to `FT_Load_Glyph'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:874: undefined reference to `FT_Load_Glyph'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:879: undefined reference to `FT_Load_Glyph'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:886: undefined reference to `FT_GlyphSlot_Embolden'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:888: undefined reference to `FT_GlyphSlot_Oblique'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:899: undefined reference to `FT_Matrix_Multiply'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:946: undefined reference to `FT_Library_SetLcdFilter'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:952: undefined reference to `FT_Render_Glyph'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:957: undefined reference to `FT_Library_SetLcdFilter'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:983: undefined reference to `FT_Vector_Transform'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:988: undefined reference to `FT_Vector_Transform'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:995: undefined reference to `FT_Vector_Transform'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1002: undefined reference to `FT_Vector_Transform'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1066: undefined reference to `FT_Outline_Transform'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1067: undefined reference to `FT_Outline_Translate'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1068: undefined reference to `FT_Outline_Get_Bitmap'
      ./.obj/debug/qfontengine_ft.o: In function `QFontEngineFT::xHeight() const':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1224: undefined reference to `FT_Get_Sfnt_Table'
      ./.obj/debug/qfontengine_ft.o: In function `QFontEngineFT::averageCharWidth() const':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1236: undefined reference to `FT_Get_Sfnt_Table'
      ./.obj/debug/qfontengine_ft.o: In function `QFontEngineFT::loadGlyphs(QFontEngineFT::QGlyphSet*, unsigned int const*, int, QFixedPoint const*, QFontEngine::GlyphFormat)':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1396: undefined reference to `FT_Matrix_Multiply'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1397: undefined reference to `FT_Set_Transform'
      ./.obj/debug/qfontengine_ft.o: In function `QFontEngineFT::getUnscaledGlyph(unsigned int, QPainterPath*, glyph_metrics_t*)':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1416: undefined reference to `FT_Set_Transform'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1417: undefined reference to `FT_Load_Glyph'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1439: undefined reference to `FT_Set_Transform'
      ./.obj/debug/qfontengine_ft.o: In function `QFontEngineFT::addOutlineToPath(double, double, QGlyphLayout const&, QPainterPath*, QFlags<QTextItem::RenderFlag>)':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1468: undefined reference to `FT_Load_Glyph'
      ./.obj/debug/qfontengine_ft.o: In function `QFontEngineFT::addGlyphsToPath(unsigned int*, QFixedPoint*, int, QPainterPath*, QFlags<QTextItem::RenderFlag>)':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1483: undefined reference to `FT_Load_Glyph'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1488: undefined reference to `FT_GlyphSlot_Embolden'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1489: undefined reference to `FT_GlyphSlot_Oblique'
      ./.obj/debug/qfontengine_ft.o: In function `QFontEngineFT::glyphIndex(unsigned int) const':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1500: undefined reference to `FT_Get_Char_Index'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1505: undefined reference to `FT_Get_Char_Index'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1513: undefined reference to `FT_Set_Charmap'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1514: undefined reference to `FT_Get_Char_Index'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1515: undefined reference to `FT_Set_Charmap'
      ./.obj/debug/qfontengine_ft.o: In function `QFontEngineFT::stringToCMap(QChar const*, int, QGlyphLayout*, int*, QFlags<QFontEngine::ShaperFlag>) const':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1548: undefined reference to `FT_Get_Char_Index'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1553: undefined reference to `FT_Get_Char_Index'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1556: undefined reference to `FT_Set_Charmap'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1557: undefined reference to `FT_Get_Char_Index'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1558: undefined reference to `FT_Set_Charmap'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1575: undefined reference to `FT_Get_Char_Index'
      ./.obj/debug/qfontengine_ft.o: In function `QFontEngineFT::alphaMapBoundingBox(unsigned int, QFixed, QTransform const&, QFontEngine::GlyphFormat)':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1784: undefined reference to `FT_Matrix_Multiply'
      ./.obj/debug/qfontengine_ft.o: In function `QFontEngineFT::lockedAlphaMapForGlyph(unsigned int, QFixed, QFontEngine::GlyphFormat, QTransform const&, QPoint*)':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1860: undefined reference to `FT_Matrix_Multiply'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1861: undefined reference to `FT_Set_Transform'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1877: undefined reference to `FT_Matrix_Multiply'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:1878: undefined reference to `FT_Set_Transform'
      ./.obj/debug/qfontengine_ft.o: In function `QFontEngineFT::lockFace(QFontEngineFT::Scaling) const':
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:2012: undefined reference to `FT_Set_Char_Size'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:2016: undefined reference to `FT_Set_Char_Size'
      C:\build\qt\src\x86_64\qtbase\src\plugins\platforms\windows/../../../gui/text/qfontengine_ft.cpp:2025: undefined reference to `FT_Set_Transform'
      collect2.exe: error: ld returned 1 exit status
      Makefile.Debug:150: recipe for target '../../../../plugins/platforms/qwindowsd.dll' failed
      

      Attachments

        Issue Links

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

          Activity

            People

              ritt.ks Konstantin Ritt
              alexpux Alexey Pavlov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes