mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
36 lines
1.3 KiB
Markdown
36 lines
1.3 KiB
Markdown
### Prerequisites
|
|
|
|
In order to compile Magpie, you need to first install:
|
|
|
|
1. The latest version of Visual Studio 2022. You need to install both "Desktop development with C++" and "Universal Windows Platform development" workloads and Windows SDK build 22621 or newer.
|
|
2. [CMake](https://cmake.org/)
|
|
|
|
You can also use the built-in CMake of Visual Studio, which is located at `%ProgramFiles%\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin`.
|
|
3. [Python](https://www.python.org/) 3.6+
|
|
4. [Conan](https://conan.io/) v1
|
|
|
|
```bash
|
|
pip install conan<2.0
|
|
```
|
|
To execute in cmd, double quotes should be added around `conan<2.0`.
|
|
|
|
Make sure that the above dependencies have been added to the system path, and use the following commands to check:
|
|
```bash
|
|
cmake --version
|
|
python --version
|
|
conan --version
|
|
```
|
|
|
|
### Compile and Run
|
|
|
|
1. Clone the repo
|
|
|
|
```bash
|
|
git clone https://github.com/Blinue/Magpie
|
|
```
|
|
|
|
2. Open the Magpie.sln in the root directory using Visual Studio 2022. This solution contains multiple projects, among which the "Magpie" project is the program's entry point. It should already be the startup project, but if it isn't, please set it manually.
|
|
|
|
3. First, build the "CONAN_INSTALL" project, which will install the dependencies.
|
|
|
|
4. Compile and run Magpie.
|