Qt World Summit: Register Today!

Failed to make static build of QT 6.0.2 with Mingw for Windows 10

  • Hello there, I am newbie to Qt programming and I`m seeking for help to resolve my problem with making static build.
    My system is Windows 10 20H2 with all current updates.
    I Installed Qt 6.0.2 and added sources of Qt and tools mingw810_64, cmake 3.19.2 from Maintenance tool.
    Also installed Python, Perl and Ruby as it said in ReadMe file in Src directory.
    Added all paraments to "Path" variable.

    ![Path Vars](image url![0_1616850387334_Path Vars.jpg](Uploading 100%) )

    Then launched cmd Qt 6.0.2 (Mingw 8.1.0. 64 bit) with admin rights and entered these commands.

    set LANG=en  
    set QT_INSTALL_PREFIX="C:\Qt\Static\6.0.2\mingw810_64" 
    cd /d %QT_INSTALL_PREFIX%\..\Src 
    configure.bat -static  -release -platform win32-g++ -prefix %QT_INSTALL_PREFIX% -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests -no-openssl 
    mingw32-make -k -j4

    And get a lot of errors.
    Here its output:
    Output of configrure
    Errors of zlib
    Error of jdphuff.c

    And so in the end i get:
    mingw32-make[1]: Target 'all' not remade because of errors.
    mingw32-make: *** [Makefile:159: all] Error 2
    mingw32-make: Target 'default_target' not remade because of errors.

    Please help.

Log in to reply