Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building qt 5.15 with mingw on windows error cant find qfreetypefontdatabase_p.h
QtWS25 Last Chance

Building qt 5.15 with mingw on windows error cant find qfreetypefontdatabase_p.h

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 120 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DanRechtsaf
    wrote on last edited by DanRechtsaf
    #1

    Hello,

    I want to build qt 5.15 using mingw on windows, but after around 10 minutes it fails with error:

    ........\include\QtFontDatabaseSupport\5.15.4/QtFontDatabaseSupport/private/qfreetypefontdatabase_p.h:1:10: fatal error: ../../../../../src/platformsupport/fontdatabases/freetype/qfreetypefontdatabase_p.h: No such file or directory
    #include "../../../../../src/platformsupport/fontdatabases/freetype/qfreetypefontdatabase_p.h"

    Steps to reproduce, on Windows 11:

    • Have mingw 8.10 64bit installed with the qt online installer.
    • Downloaded and unzipped qt-everywhere-src-5.15.4.zip
    • Make sure mingw is in the PATH
    • call configure.bat with (Note: I have put this in another batch file):
      ./configure ^
      -release ^
      -opensource ^
      -confirm-license ^
      -skip qtcharts ^
      -skip qtvirtualkeyboard ^
      -skip qtdatavis3d ^
      -silent ^
      -nomake examples ^
      -nomake tests ^
      -qpa xcb ^
      -system-zlib ^
      -plugin-sql-odbc ^
      -plugin-sql-sqlite ^
      -opengl desktop ^
      -no-sql-sqlite2 ^
      -no-strip

    (configure is busy a while bootstrapping qmake)
    Then mingw32-make -j8 (as suggested by configure, but with -j8 to speed up using multple cpu's)
    It starts promising, but after 15 minutes the said errors appear, multiple times.
    Anybody an idea? Tx.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DanRechtsaf
      wrote on last edited by
      #2

      Found it: the root directory (path name) I placed the entire project in is too long. Solved when placing in a shorter / simpler directory structure. Must be bug in windows and/or mingw.

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        It's the windows path limiting to 260 characters.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved