Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangwenx190 committed Nov 30, 2018
1 parent b801b9f commit 1280f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-static-version-of-qt-with-icu-and-openssl-linked.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
## Build static version of Qt

1. [Download the latest Qt source code package](http://download.qt.io/official_releases/qt/) and extract it to anywhere you like. I assume you have extracted it to "C:\Qt\src".
2. Open "C:\Qt\src\qtbase\mkspecs\common\msvc-desktop.conf", replace all "**-MD**" with "**-MT**" and add "**U_STATIC_IMPLEMENTATION**" to "**DEFINES +=**".
3. [Use the script I offered to generate the batch script file.](https://github.com/wangwenx190/build-scripts/blob/master/win-build-qt.bat)
2. Open "C:\Qt\src\qtbase\mkspecs\common\msvc-desktop.conf", add "**U_STATIC_IMPLEMENTATION**" to "**DEFINES +=**".
3. [Use the script I offered to generate the batch script file.](https://github.com/wangwenx190/build-scripts/blob/master/win-build-qt.bat), add **-static-runtime** to configure parameters if you want to link to static MSVCRT.
4. Open the generated *.bat* file, add the following lines to it and put them to their proper position (you may have to change a little bit if necessary):
```bat
SET "_ICU_DIR=C:\ICU\icu4c-static"
Expand Down

0 comments on commit 1280f31

Please sign in to comment.