Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangwenx190 committed Mar 22, 2018
1 parent 51f3f3d commit d7a94e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ A Windows batch script file to compile Qt from source code. You must know that t

**Usage**
1. Open cmd or power shell.
2. CALL "script-file-path" [Option1] [Option2] [Option3] [Option4] [Option5] [Option6]
- script-file-path: the relative/absolute path of the batch file
2. CALL "Script file path" [Option1] [Option2] [Option3] [Option4] [Option5] [Option6]
- Script file path: the relative/absolute path of the batch file
- Option1: target arch, x86 or x64, default is x64
- Option2: target file type, dll or lib, default is dll
- Option3: compile mode, debug, release or debug-and-release, default is release
Expand All @@ -26,7 +26,7 @@ A Windows batch script file to compile Qt from source code. You must know that t
- ICU will increase the size of your application for about 40MB, if you don't need it then do not link against it, that's also what the Qt Company already did.
Notes:
- **If you want to compile QWebEngine, you have to changed your system locale to English(United States)** and don't forget to change it back after compiling Qt.
- **If you want to compile QWebEngine, you have to change your system locale to English(United States)** and don't forget to change it back after compiling Qt.
- According to Qt official wiki, **QWebEngine module cannot be compiled statically**.
- nmake(provided by VS) is very slow, I recommend you use [jom](https://download.qt.io/official_releases/jom/jom.zip).
Expand All @@ -36,6 +36,7 @@ CALL "C:\Qt\build-qt.bat" x86 lib debug-and-release "C:\Qt\src" "C:\Qt\msvc2017_
```

**Tested on**

Windows 10 + MSVC 2017 + Qt 5.11.0

(Theoretically, this batch script supports Qt 5.7.x and newer.)
2 changes: 1 addition & 1 deletion build-qt.bat
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ IF /I "%_BUILD_TYPE%" == "lib" (
REM According to Qt official wiki, QWebEngine module cannot be compiled statically, so we have to skip it
SET "_BUILD_TYPE=-static -static-runtime -skip qtwebengine"
) ELSE (
REM If you want to compile QWebEngine, you have to changed your system locale to English(United States)
REM If you want to compile QWebEngine, you have to change your system locale to English(United States)
REM And don't forget to change it back after compiling Qt
SET "_BUILD_TYPE=-shared"
)
Expand Down

0 comments on commit d7a94e7

Please sign in to comment.