Magpie/docs/Compilation guide.md
Xu 4b39d40f84
修复 Win11 24H2 中 Graphics Capture 捕获帧率无法超过 60FPS 的问题 (#1115)
* chore: 尝试使用 24h2 sdk

* fix: 尝试修复 WGC 帧率

* Revert "fix: 尝试修复 WGC 帧率"

This reverts commit 3b0b772943.

* chore: 修复 26100 SDK 导致的编译错误

* fix: 尝试修复 WGC 帧率

* chore: manifest 声明兼容 24H2

* chore: 更新编译文档和添加注释
2025-04-05 17:38:54 +08:00

1.6 KiB

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 26100 or newer.

  2. CMake

    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 3.11+

  4. Conan

    pip install conan
    

    Make sure that the above dependencies have been added to the system path, and use the following commands to check:

    cmake --version
    python --version
    conan --version
    

Compiling

  1. Clone the repo

    git clone https://github.com/Blinue/Magpie
    
  2. Open the Magpie.sln in the root directory and build the solution.

Enabling Touch Support

To enable touch input support, TouchHelper.exe needs to be signed. While signing is automatically done in the CI pipeline, you can also manually sign it. Follow these steps:

  1. Create a self-signed certificate and export it as a pfx file.
  2. Replace the CERT_FINGERPRINT constant in src/Magpie/TouchHelper.cpp with the SHA-1 hash (i.e., fingerprint) of your certificate.
  3. Run the following command in the root directory of the repository:
python publish.py x64 unpackaged <pfx path> <pfx password>

This will compile Magpie and sign TouchHelper.exe. The compiled files will be located in publish\x64.