Skip to content
JonathanJo1 edited this page Nov 7, 2023 · 5 revisions

Get cpp-xpx-chain-sdk

git clone https://github.com/proximax-storage/cpp-xpx-chain-sdk.git
cd cpp-xpx-chain-sdk
git submodule update --init --recursive --remote

Build for Windows

Install CMake

  • Download the latest version of CMake from here
  • Add C:\Program Files\CMake\bin to PATH in system variables

Install Conan

  • Download Conan from here
  • Add C:\Program Files\Conan\conan to PATH in system variables

Install MinGW-W64

  • Download MSVCRT runtime GCC 12.1.0 version from here
  • Extract the zip file to C: drive
  • Add C:\mingw64\bin to PATH in system variables

Build cpp-xpx-chain-sdk

  • Change directory to cpp-xpx-chain-sdk and run the following in Command Prompt as administrator:
mkdir build
cd build
cmake -G "MinGW Makefiles" ..
mingw32-make -j 6

IMPORTANT: If default build profile does not exist, enter the command below and try building it again:

conan profile detect

Build for Linux

Update Conan

pip install conan --upgrade

Update conancenter

conan remote add conancenter https://center.conan.io

Build cpp-xpx-chain-sdk

  • Change directory to cpp-xpx-chain-sdk and run the following in terminal:
mkdir build
cd build
cmake ..
make -j 4
sudo make install

Usage

Use the following command to find shared or static version of XPX-CHAIN-SDK library built:

find_package(cpp-xpx-chain-sdk)

or

find_package(cpp-xpx-chain-sdk-static)
Clone this wiki locally