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

Missing dependency to freetype

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.1.0 Beta 1
    • None
    • Windows, MinGW gcc 4.8.0, static build.

      Using pkg/qtbase-opensource-src-5.1.0-beta1.tar.xz, after building, trying a simple test results in an error linking:

      $ i686-pc-mingw32-g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release/test-qt5.exe release/qt-test.o  release/test-qt5_plugin_import.o  -lmingw32 -lqtmain -L/opt/mxe/usr/i686-pc-mingw32/lib -lfreetype -lbz2 -L/opt/mxe/tmp-qtbase/qtbase-opensource-src-5.1.0-beta1/lib -lQt5Widgets -lQt5Sql -lpq -lsecur32 -lodbc32 -lsybdb -lgnutls -lnettle -lhogweed -lgmp -lpthread -liconv -lsqlite3 -lQt5Network -ldnsapi -lssl -lcrypto -lcrypt32 -L/opt/mxe/usr/i686-pc-mingw32/qt5/plugins/platforms -lqwindows -lwinspool -lshlwapi -L/opt/mxe/usr/i686-pc-mingw32/qt5/lib -lQt5PlatformSupport -lQt5Gui -lcomdlg32 -loleaut32 -limm32 -lwinmm -lglu32 -lopengl32 -lgdi32 -ljpeg -lpng -lQt5Core -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32 -lz -lpcre16
      /opt/mxe/usr/i686-pc-mingw32/qt5/plugins/platforms/libqwindows.a(qbasicfontdatabase.o): In function `ZN18QBasicFontDatabase9addTTFileERK10QByteArrayS2_':
      /opt/mxe/tmp-qtbase/qtbase-opensource-src-5.1.0-beta1/src/plugins/platforms/windows/../../../platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp:248: undefined reference to `FT_New_Memory_Face'
      /opt/mxe/tmp-qtbase/qtbase-opensource-src-5.1.0-beta1/src/plugins/platforms/windows/../../../platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp:280: undefined reference to `FT_Get_Sfnt_Table'
      /opt/mxe/tmp-qtbase/qtbase-opensource-src-5.1.0-beta1/src/plugins/platforms/windows/../../../platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp:334: undefined reference to `FT_Done_Face'
      /opt/mxe/tmp-qtbase/qtbase-opensource-src-5.1.0-beta1/src/plugins/platforms/windows/../../../platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp:250: undefined reference to `FT_New_Face'
      /opt/mxe/usr/i686-pc-mingw32/qt5/plugins/platforms/libqwindows.a(qfontengine_ft.o): In function `hb_getSFntTable':
      /opt/mxe/tmp-qtbase/qtbase-opensource-src-5.1.0-beta1/src/plugins/platforms/windows/../../../gui/text/qfontengine_ft.cpp:131: undefined reference to `FT_Load_Sfnt_Table'
      

      It seems that qmake and related files do not include the required library.

      Trying to fix it using PKGCONFIG in the .pro file does add the (2) libraries required, but in the wrong sequence (before the Qt libraries) which doesn't work with the Windows linker.

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

            laknoll Lars Knoll
            rberber Rene Berber
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes