In case compilation goes wrong.
If you encounter the following error:
you most likely didn't point xmake to vcpkg. This can be fixed by installing it and then running
xmake g --vcpkg="location"
For other errors, you can reset xmake config and refresh xrepo repositories by deleting the ./.xmake/ folder and running the command
xrepo remove --all -y