-
Notifications
You must be signed in to change notification settings - Fork 10
How to Compile libxayagame in Windows
In this tutorial, we'll compile libxayagame for C++ so that we can use it in other tutorials and even in our own games.
Download MSYS2 x86_64 (https://www.msys2.org/) from this link:
Install into default path C:/msys64
then run MSYS2 MingGW 64-bit (NOT the 32-bit version) from your Start menu.
Update with pacman as follows.
pacman -Syuu
Type 'Y' to close the terminal and restart MSYS2 MingGW 64-bit again.
Next, run this command to get and run the script that will build libxayagame for you.
curl -o ./build.sh https://raw.githubusercontent.com/xaya/XAYA_tutorial_code/master/libxayagame/Compile-scripts/build.sh; ./build.sh
You may need to press Enter
and enter Y
1 or more times for the build to begin.
Done!
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!
Run this command to get and run the script that will build lite mode libraries for you.
curl -o ./buildLiteMode.sh https://raw.githubusercontent.com/xaya/XAYA_tutorial_code/master/libxayagame/Compile-scripts/buildLiteMode.sh; ./buildLiteMode.sh
We update libxayagame periodically. If you wish to update your build, enter the following into the same MSYS2 MingGW 64-bit terminal that you used above.
cd ~/libxayagame
git pull
make clean
./autogen.sh
./configure
make -j2
make install
You're now up-to-date with the latest version!
- Step 0: Blockchain Basics
- Step 1: xayad <⸺ start here
- Step 2: The Game State Processor
- Step 3a: libxayagame Component Relationships
- Step 3b: Compile libxayagame in Windows
- Step 3b: Compile libxayagame in Ubuntu
- Step 4: Run xayad for Games
- Step 5: Hello World! in C++
- Step 5: Hello World! in C#
- Step 5: Hello World! with SQLite
- Step 6a: Mover Overview
- Step 6b: Mover Console
- Step 6c: Mover Unity
- libxayagame Component Relationships
- How to Compile libxayagame in Ubuntu 20.04.03
- How to Compile libxayagame in Ubuntu 22.04
- How to Compile libxayagame in Windows
- Xayaships (How to get started playing)