Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Project ERROR: Library 'freetype' is not defined . Error while building qt 5.13 for windows



  • I'm building qt 5.13 for windows using visual studio 2017
    but I got this error while building :

    cd fontdatabases\ && ( if not exist Makefile E:\programs\qt-libs\qt-everywhere-src-5.13.0\qtbase\bin\qmake.exe -o Makefile E:\programs\qt-libs\qt-everywhere-src-5.13.0\qtbase\src\platformsupport\fontdatabases\fontdatabases.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\nmake.exe" -f Makefile
    
    Microsoft (R) Program Maintenance Utility Version 14.16.27032.1
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
            E:\programs\qt-libs\qt-everywhere-src-5.13.0\qtbase\bin\qmake.exe -o Makefile fontdatabases.pro
    Project ERROR: Library 'freetype' is not defined.
    NMAKE : fatal error U1077: 'E:\programs\qt-libs\qt-everywhere-src-5.13.0\qtbase\bin\qmake.exe' : return code '0x3'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    

    this is my configuration command line :

    configure.bat -static -release -no-opengl -prefix E:\programs\qt-libs\qt5.13-x64-v2017 -opensource -make libs -nomake tools -nomake examples -nomake tests -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtnetworkauth -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qttranslations -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebview
    


  • I had to use -no-freetype



  • any response ?



  • I had to use -no-freetype


Log in to reply