How to Compile libxayagame in Ubuntu short - RenegadeMinds/testbed GitHub Wiki

How to Compile libxayagame in Ubuntu 18.04

This will help you to compile libxayagame in Ubuntu so you can use it in other tutorials and even in your own games.

Install Prerequisites & Dependencies with apt

sudo apt-get install build-essential autoconf-archive libgflags-dev cmake-curses-gui libtool pkg-config git libjsoncpp-dev libjsonrpccpp-dev libjsonrpccpp-tools libzmq3-dev libsqlite3-dev liblmdb-dev libgoogle-glog-dev libssl-dev libgtest-dev cmake unzip

Build & Install gtest

cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make -j2
sudo cp *.a /usr/lib
export GTEST_CFLAGS="/usr/src/gtest"
export GTEST_LIBS="/usr/src/gtest"
echo 'export GTEST_CFLAGS="/usr/src/gtest"' >> ~/.profile
echo 'export GTEST_LIBS="/usr/src/gtest"' >> ~/.profile

Build & Install protobuf

cd ~/
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.7.0-rc.3/protobuf-cpp-3.7.0-rc-3.zip
unzip protobuf-cpp-3.7.0-rc-3.zip
cd ~/protobuf-cpp-3.7.0-rc-3
./configure
make
sudo make install

Build & Install libxayagame

cd ~/
git clone https://github.com/xaya/libxayagame.git
cd ~/libxayagame	
./autogen.sh
./configure
make
sudo make install

CONGRATULATIONS!

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!

Update libxayagame

We update libxayagame periodically. If you wish to update your build, enter the following into a terminal.

cd ~/libxayagame
git pull
make clean
./autogen.sh
./configure
make -j2
make install

You're now up-to-date with the latest version!