Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. build static Qt 5.12.0
Forum Updated to NodeBB v4.3 + New Features

build static Qt 5.12.0

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 413 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    Mogli123
    wrote on last edited by Mogli123
    #1

    Hi,

    I try to create static build with Qt 5.12.0.
    I made it like in this video Qt Static Build on Windows, but the compile point there are many errors like in the pictures.

    0_1553071299363_2019-03-20_09h40_13.png
    ...
    1_1553071299363_2019-03-20_09h40_26.png

    The steps bevore compiling:

    • download and install NDP472-KB4054530-x86-x64-AllOS-ENU.exe (Microsoft .NET Framework 4.7.2)
    • download and install Windows6.1-KB2506143-x64.msu
    • download and install "mingw730_32" with the Qt installer
    • download "windows-build-qt-static.ps1"
    • download and install "7z1900.exe"
    • creat following run.bat.txt file
    PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& 'C:\Qt_Stand_20_03_18\windows-build-qt-static.ps1' -QtSrcUrl 'C:\Qt_Stand_20_03_18\qt-everywhere-src-5.12.0.zip' -QtStaticDir 'C:\Qt_Stand_20_03_18\Static_5_12' -MingwDir 'C:\Qt_Stand_20_03_18\Tools\mingw730_32' -QtVersion '12.5.0_Static'
    

    (In the run.bat.txt file, I can not download the file from the URL, as in the video, so I download the ZIP file before running the run.bat command and change the code in the .txt file File as above, is this the right way?)
    If I try it like in the video the following error is coming like in the following picture)
    0_1553078442997_2019-03-20_11h36_20.png

    • open the cmd:

    • run the command "ren run.bat.txt run.bat"

    • remove the following comands in the "windows-build-qt-static.ps1" file
      cmd /c "configure.bat -static-debug-and-release -platform win32-g++ -prefix $QtDir
      -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -qt-sql-sqlite -no-openssl

    • run thet command "run.bat"

    -after that I get the compiling errors

    I'm working with windows 7 enterprise.

    I hope somewone can help me what I'm doing wrong or can tell me a better way for doing it.

    Thank you in advance
    Regards

    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