git clone https://github.com/proximax-storage/cpp-xpx-storage-sdk.git
cd cpp-xpx-storage-sdk
git fetch --all
git checkout develop # or another
git submodule update --init --recursive --remote
mkdir _build && cd _build
cmake -DBOOST_ROOT=PATH/TO/BOOST/boost-build-1.71.0 .. && make
cd ..
Same as for Linux, but you need to install OpenSSL:
brew install openssl
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 .. && make
IMPORTANT: For all commands, run cmd as an administrator.
If you do not have MinGW-W64 installed, download the 12.1.0 MSVCRT runtime version from here https://winlibs.com/
Extract the zip file to your C: drive, then add C:\mingw64\bin to PATH in system variables.
Download boost zip folder from https://www.boost.org/users/history/version_1_79_0.html
Extract to C: drive.
Now go to C: drive using Command Prompt, then run:
cd boost_1_79_0
bootstrap gcc
b2
b2 --build-dir=build/x64 address-model=64 threading=multi --build-type=complete --stagedir=./stage/x64 -j 4
Add the following to your system variables:
BOOST_BUILD_PATH "C:\boost_1_79_0\tools\build"
BOOST_INCLUDEDIR "C:\boost_1_79_0"
BOOST_LIBRARYDIR "C:\boost_1_79_0\stage\x64\lib"
BOOST_ROOT "C:\boost_1_79_0"
From cmd, go to the cpp-xpx-storage-sdk directory, then do the following:
cd libtorrent
mkdir _build
cd _build
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20 ..
mingw32-make -j 6
From cmd, go to the cpp-xpx-storage-sdk directory, then do the following:
cd cpp-xpx-rpclib
mkdir _build
cd _build
cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=14 ..
mingw32-make -j 6
From cmd, go to the cpp-xpx-storage-sdk directory, then do the following:
cd cpp-xpx-storage-sdk
mkdir _build
cd _build
cmake -G "MinGW Makefiles" ..
mingw32-make -j 6