git clone --recursive https://github.com/rexglue/rexglue-sdk
Build the project as follows:
This command is for downloading from GitHub: https://github.com/rexglue/rexglue-sdk
Warning: You can download a pre-built .exe file, which will allow you to decompile the game in C++ (but building it is unlikely). Furthermore, versions are updated frequently, and the latest versions (with more instructions) are worth building.

Prepare the necessary directory.
Specify it as REXSDK in the global variables.

Sometimes the project won't compile in x64, so it's worth adding these lines to CMakeList.txt.
cd rexglue-sdk cmake --preset <platform> (win-amd64 или linux-amd64)
Enable Windows developer mode to download the necessary packages.

And in the /thirdparty/libsmpack folder, enter the following commands.
git config core.symlinks true --global git checkout .
Then the necessary updates for the package will be downloaded.
Try adding additional parameters here. If it doesn't compile, then:
Import-Module "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" Enter-VsDevShell -VsInstallPath "C:\Program Files\Microsoft Visual Studio\2022\Community" -Arch amd64
And finish the build:
cmake --build out/build/<platform> --target install
Testing
To test the tool, use the following commands:
rexglue init --app_name [project name] --app_root [project root path]
Add it to the assets/default.xex folder (you'll need to create it and add it to the project that rexglue will create).
This video can be useful for installing clang-cl and preparing default.xex from an Xbox 360 ISO image (which was dumped).
The program will display all missing instructions and replace them with placeholders (but it's best to create an issue with the required instructions, and once they're implemented, return to the project).
Don't forget to support the developers with well-deserved stars and share with your friends. Also, subscribe so you don't miss the next part, which will explain how to run the recompiled project.