How to Compile libxayagame - RenegadeMinds/testbed GitHub Wiki
In this tutorial, we'll compile libxayagame so that we can use it in other tutorials and even in our own games. Follow the instructions below exactly and do not deviate from them.
You will need to have several downloads and/or programs installed.
- MSYS2
- Git
- libxayagame
- libxayagame compiler files
Download MSYS2 x86_64 (https://www.msys2.org/) from this link:
http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20180531.exe
Install into default path C:/msys64
then run MSYS2 (the 64-bit version and NOT the 32-bit version) from your Start menu.
Git is a prerequisite for the scripts used to compile libxayagame and must be installed. You can get Git from several sources.
Open up MSYS2. You should be in your home folder, i.e. /home/<username>/
. If not, navigate there.
Use git to close the libxayagame repository.
git clone https://github.com/xaya/libxayagame.git
Do not cd
into the libxayagame folder.
You will need several files to compile libxayagame.
- input1.txt
- input2.txt
- install_xaya_1.sh
- install_xaya_2.sh
- libglog.pc
- lmdb.pc
- stubgeneratorfactory.cpp
- stubgeneratorfactory.h
Download them here.
Copy all those files into C:\msys64\home\<username>\
. Do not copy into a subfolder. The files must be in the "username" folder.
Some files will be deleted when they are no longer needed.
- libglog.pc
- lmdb.pc
- stubgeneratorfactory.cpp
- stubgeneratorfactory.h
If you need to start over, make certain to copy them to your username folder again.
In MSYS2, run the following command.
cat "input1.txt" | ./install_xaya_1.sh
Wait for it to finish.
In MSYS2, run the following command.
cat "input2.txt" | ./install_xaya_2.sh
Wait for it to finish.
Congratulations! You've just built your own GSP using libxayagame. You can now proceed on to the Hello World in C++ tutorial where we'll put libxayagame to good use!