To build the C++ sample application, you must first clone the repository and ensure you have built the main WalletCore library, as there are no official binary distributions. You will need the TrezorCrypto and protobuf dependencies, which are included with WalletCore.
- Clone the repository and navigate to the sample directory:
git clone https://github.com/trustwallet/wallet-core.git
cd wallet-core/samples/cpp
- Configure and build using
cmake, providing the path to the top-level Wallet Core library folder:
cmake . -DWALLET_CORE=../../
make
- Run the application:
./sample
git clone https://github.com/trustwallet/wallet-core.git
cd wallet-core/samples/cpp
cmake . -DWALLET_CORE=../../
make
./sample