コンパイル
ソースコードからLiteSyncライブラリをコンパイルする手順は次のとおりです。
LinuxおよびMacでのコンパイル
1. libuvをダウンロードしてコンパイルします
sudo apt-get install automake libtool libreadline-dev -y
git clone https://github.com/libuv/libuv --depth=1
cd libuv
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
cd ..
2. binnをダウンロードしてコンパイルします
git clone https://github.com/liteserver/binn
cd binn
make
sudo make install
cd ..
3. LiteSyncをコンパイルします
git clone https://gitlab.com/xxx/litesync-release litesync
cd litesync
make
sudo make install
cd ..
MinGWを使用したWindowsでのコンパイル
1. libuvをダウンロードしてコンパイルします
git clone https://github.com/libuv/libuv --depth=1
cd libuv
sh autogen.sh
./configure
make
cd ..
2. binnをダウンロードしてコンパイルします
git clone https://github.com/liteserver/binn
cd binn
make
cd ..
3. LiteSyncをコンパイルします
git clone https://gitlab.com/xxx/litesync-release litesync
cd litesync
make
cd ..
Visual Studioを使用したWindowsでのコンパイル
最初にlibuvとBinnをダウンロードしてコンパイルします
次に、win32サブフォルダーにあるVisual Studioソリューションファイルを開き、[リリースしてビルド]を選択します。