Skip to content

Commit d05461b

Browse files
authored
Update Build-Windows-Qt6.8.3.md - upgrade compiler
1 parent 68048e4 commit d05461b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

SerialPrograms/BuildInstructions/Build-Windows-Qt6.8.3.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ If you have already have older versions of Qt installed, but need to upgrade Qt
9999
<img src="Images/QT-kits.png">
100100

101101
- Under `Compiler`, set it to Microsoft Visual C++ Compiler or Visual Studio, if not already set.
102-
- If you recently installed new compilers, go to the `Compilers` tab, click `Re-dedect`, then click `Apply` in the bottom right. Back in the `Kits` tab, your newly installed compilers should now show up in the list of compilers.
103102
- Click `Ok`, to save Kits preferences.
104103
- Click the Monitor symbol at the bottom left
105104
<img src="Images/QT-kit-build.png">
@@ -109,6 +108,14 @@ If you have already have older versions of Qt installed, but need to upgrade Qt
109108
- Click the green arrow to compile and launch the program.
110109
- Optional: Move the `UserSettings` folder from the old build folder to the new build folder, to keep your old settings, such as the dev key.
111110

111+
### Upgrade compiler
112+
- Upgrade the compiler by installing a new version of Visual Studio. Ensure `Desktop development with C++` is checked, so the latest MSVC compiler is also installed.
113+
- Open the `SerialPrograms` project in Qt, as outlined in the "Setup" section above.
114+
- In the toolbar, click `Edit` -> `Preferences`
115+
- Click the `Kits` tab on the left. Then click the `Compilers` tab, click `Re-detect` to refresh the list of compilers. Then click `Apply` in the bottom right.
116+
- Back in the `Kits` tab, your newly installed compilers should now show up in the list of compilers.
117+
118+
When building, if you get the error `yvals_core.h:931: error: STL1001: Unexpected compiler version, expected MSVC 19.42 or newer` (or something similar), consider deleting the old build folder, and rebuilding from scratch.
112119

113120
<hr>
114121

0 commit comments

Comments
 (0)