Update README.md

This commit is contained in:
TheTank20 2023-12-21 01:42:08 +00:00 committed by GitHub
parent fde2df096c
commit ad583bca92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -34,4 +34,13 @@ Use `xpmgr_debug_[arch].exe` if you're encountering an error (or nothing's happe
https://github.com/UMSKT/xpmgr/releases
## Building
Make sure Visual Studio 2017 or later is installed, with the v141_xp toolchain. Then, `git clone`, open in VS, build, done.
Make sure Visual Studio 2017 or later is installed. Then, install [TDM-GCC](https://jmeubank.github.io/tdm-gcc/about/). Then, run, at the source folder:
```
mkdir build
mkdir build\x86
mkdir build\x64
windres icon.rc -O coff -F pe-i386 -o build\x64\icon_x64.res
g++ -m32 -o build\x86\xpmgr_x86 xpmgr.cpp build\x64\icon_x64.res -lole32 -luuid -loleaut32
windres icon.rc -O coff -o build\x86\icon_x86.res
g++ -o build\x64\xpmgr_x64 xpmgr.cpp build\x86\icon_x86.res -lole32 -luuid -loleaut32
```