|
1 | | -# How to Build (Qt 5.12) - Windows |
2 | | - |
3 | | -## Build Tools: |
4 | | - |
5 | | -1. Install Visual Studio 2019: |
6 | | - 1. [Download Page](https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes) |
7 | | - 2. Make sure you select the C++ development tools. |
8 | | -2. Install Windows Development SDK: |
9 | | - 1. [Download Page](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/) |
10 | | -3. Install CMake: |
11 | | - 1. [Download Page](https://cmake.org/download/) |
12 | | - 2. When prompted select, "Add CMake to the system PATH for all users". |
13 | | -4. Install Qt 5.12.12: |
14 | | - 1. [Download the offline installer.](https://www.qt.io/offline-installers) [Direct Download Link](https://download.qt.io/official_releases/qt/5.12/5.12.12/qt-opensource-windows-x86-5.12.12.exe) |
15 | | - 2. Disconnect from the internet. This is needed to keep it from forcing you to create an account. |
16 | | - 3. Run the installer. |
17 | | - 4. When prompted for components, select all of the following: |
18 | | - - Qt 5.12.12 |
19 | | - - MSVC 2017 32-bit |
20 | | - - MSVC 2017 64-bit |
21 | | - - MinGW 7.3.0 32-bit |
22 | | - - MinGW 7.3.0 64-bit |
23 | | - - Developer and Designer Tools |
24 | | - - Qt Creator 5.0.2 CDB Debugger Support |
25 | | - - MinGW 7.3.0 32-bit |
26 | | - - MinGW 7.3.0 64-bit |
27 | | - |
28 | | - |
29 | | - |
30 | | -## Setup: |
31 | | - |
32 | | -1. Clone this repo. |
33 | | -2. Clone the [Packages Repo](https://github.com/PokemonAutomation/Packages). |
34 | | -3. In the `Packages` repo, copy the `SerialPrograms/Resources` folder into the root of the `Arduino-Source` repo. |
35 | | - |
36 | | - |
37 | | - |
38 | | -4. Open Qt Creator. |
39 | | -5. Click on `Projects` -> `Open`. |
40 | | -6. Navigate to [`SerialPrograms`](./) and select `CMakeLists.txt`. |
41 | | -7. It will then ask you to configure the project. Select `Desktop Qt 5.12.12 MSVC2017 64bit`*. |
42 | | -8. At the bottom left corner, click on the little monitor and select `Release with Debug Information`. |
43 | | -9. Open up the file `CMakeLists.txt`. Change `QT_MAJOR` to `5`. |
44 | | -10. Click the upper green arrow** to compile and launch the program. |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | -*Even though it says "MSVC2017", it will be using your MSVC 2019 installation instead. |
50 | | - |
51 | | -**Note that you will not be able to feasibly run with a debugger attached. This is because Qt Creator places a breakpoint on every single thrown exception and this application heavily uses exceptions even for non-error situations. So the debugger will break on literally everything. If you know how to disable break on exceptions, please let us know. |
52 | | - |
53 | | - |
54 | | -<hr> |
55 | | - |
56 | | -**Discord Server:** |
57 | | - |
58 | | - |
59 | | -[<img src="https://canary.discordapp.com/api/guilds/695809740428673034/widget.png?style=banner2">](https://discord.gg/cQ4gWxN) |
60 | | - |
| 1 | +# How to Build (Qt 5.12) - Windows |
| 2 | + |
| 3 | +## Build Tools: |
| 4 | + |
| 5 | +1. Install Visual Studio 2019: |
| 6 | + 1. [Download Page](https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes) |
| 7 | + 2. Make sure you select the C++ development tools. |
| 8 | +2. Install Windows Development SDK: |
| 9 | + 1. [Download Page](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/) |
| 10 | +3. Install CMake: |
| 11 | + 1. [Download Page](https://cmake.org/download/) |
| 12 | + 2. When prompted select, "Add CMake to the system PATH for all users". |
| 13 | +4. Install Qt 5.12.12: |
| 14 | + 1. [Download the offline installer.](https://www.qt.io/offline-installers) [Direct Download Link](https://download.qt.io/official_releases/qt/5.12/5.12.12/qt-opensource-windows-x86-5.12.12.exe) |
| 15 | + 2. Disconnect from the internet. This is needed to keep it from forcing you to create an account. |
| 16 | + 3. Run the installer. |
| 17 | + 4. When prompted for components, select all of the following: |
| 18 | + - Qt 5.12.12 |
| 19 | + - MSVC 2017 32-bit |
| 20 | + - MSVC 2017 64-bit |
| 21 | + - MinGW 7.3.0 32-bit |
| 22 | + - MinGW 7.3.0 64-bit |
| 23 | + - Developer and Designer Tools |
| 24 | + - Qt Creator 5.0.2 CDB Debugger Support |
| 25 | + - MinGW 7.3.0 32-bit |
| 26 | + - MinGW 7.3.0 64-bit |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | +## Setup: |
| 31 | + |
| 32 | +1. Clone this repo. |
| 33 | +2. Clone the [Packages Repo](https://github.com/PokemonAutomation/Packages). |
| 34 | +3. In the `Packages` repo, copy the `SerialPrograms/Resources` folder into the root of the `Arduino-Source` repo. |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | +4. Open Qt Creator. |
| 39 | +5. Click on `Projects` -> `Open`. |
| 40 | +6. Navigate to [`SerialPrograms`](./) and select `CMakeLists.txt`. |
| 41 | +7. It will then ask you to configure the project. Select `Desktop Qt 5.12.12 MSVC2017 64bit`*. |
| 42 | +8. At the bottom left corner, click on the little monitor and select `Release with Debug Information`. |
| 43 | +9. Open up the file `CMakeLists.txt`. Change `QT_MAJOR` to `5`. |
| 44 | +10. Click the upper green arrow** to compile and launch the program. |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +*Even though it says "MSVC2017", it will be using your MSVC 2019 installation instead. |
| 50 | + |
| 51 | +**Note that you will not be able to feasibly run with a debugger attached. This is because Qt Creator places a breakpoint on every single thrown exception and this application heavily uses exceptions even for non-error situations. So the debugger will break on literally everything. If you know how to disable break on exceptions, please let us know. |
| 52 | + |
| 53 | + |
| 54 | +<hr> |
| 55 | + |
| 56 | +**Discord Server:** |
| 57 | + |
| 58 | + |
| 59 | +[<img src="https://canary.discordapp.com/api/guilds/695809740428673034/widget.png?style=banner2">](https://discord.gg/cQ4gWxN) |
| 60 | + |
0 commit comments