Compiling
Here are the instructions to compile the LiteSync library from source code
Compiling on Linux and Mac
1. Download and compile libuv
sudo apt-get install automake libtool libreadline-dev -y
git clone --depth=1 https://github.com/libuv/libuv
cd libuv
./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
git clone https://gitlab.com/litesync/litesync-release litesync
cd litesync
make
sudo make install
cd ..
Compiling on Windows with MinGW
1. Download and compile libuv
git clone --depth=1 https://github.com/libuv/libuv
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
git clone https://gitlab.com/litesync/litesync-release litesync
cd litesync
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 win32 sub-folder, select Release and Build.
Mobile
Compiling for Android
You need the android SDK installed on your computer
Run this command on the LiteSync folder:
make android
It will generate native libraries for 4 architectures and also an "aar" file with the SQLite Android Bindings for applications in Java
These files will be available on the "android" folder
Compiling for iOS
On a Mac computer, run this command on the LiteSync folder:
make ios
It will generate 3 fat libraries for static linking on the "ios" folder:
liblitesync.a
libuv.a
libbinn.a