-
Notifications
You must be signed in to change notification settings - Fork 1
Setup
JonathanJo1 edited this page Nov 7, 2023
·
5 revisions
git clone https://github.com/proximax-storage/cpp-xpx-chain-sdk.git
cd cpp-xpx-chain-sdk
git submodule update --init --recursive --remote
- Download the latest version of CMake from here
- Add C:\Program Files\CMake\bin to PATH in system variables
- Download Conan from here
- Add C:\Program Files\Conan\conan to PATH in system variables
- 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
- 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
pip install conan --upgrade
conan remote add conancenter https://center.conan.io
- Change directory to cpp-xpx-chain-sdk and run the following in terminal:
mkdir build
cd build
cmake ..
make -j 4
sudo make install
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)