Compiling

Here are the instructions to compile the LiteSync library from source code.



Compiling on Linux and Mac

1. Download and compile libuv

git clone https://github.com/libuv/libuv --depth=1

cd libuv

sh autogen.sh

./configure

make

sudo make install

sudo ldconfig

cd ..


2. Download and compile binn

git clone https://github.com/liteserver/binn

cd binn

make

sudo make install

cd ..


3. Compile LiteSync

cd litesync

tar zxvf litesync-(version)-sources-(platform).tar.gz

make

sudo make install

cd ..




Compiling on Windows with MinGW

1. Download and compile libuv

git clone https://github.com/libuv/libuv --depth=1

cd libuv

sh autogen.sh

./configure

make

cd ..


2. Download and compile binn

git clone https://github.com/liteserver/binn

cd binn

make

cd ..


3. Compile LiteSync

cd litesync

tar zxvf litesync-(version)-sources-(platform).tar.gz

make

cd ..




Compiling on Windows with Visual Studio

First download and compile libuv and Binn

Then open the Visual Studio solution file available in the zip file, select Release and Build.