Attestation Server for XRPL Sidechains
This project depends on conan to build it's dependencies. See https://conan.io/ to install conan.
Once conan is installed, the following can be used to build the project:
- Create a build directory. For example: build/gcc.release
- Change to that directory.
- Run conan. The command I use is:
conan install -b missing --settings build_type=Debug ../..
(Note: the exact command I use is as follows, but this assumes gcc 12 is used and a gcc12 conan profile is present):
CC=$(which gcc) CXX=$(which g++) conan install -b missing --profile gcc12 --settings build_type=Debug ../..
- Create a build file (replace [path to project root] with the appropriate directory):
cmake -DCMAKE_BUILD_TYPE=Debug -GNinja -Dunity=Off [path to project root]
(Note: the exact command I use is as follows, but this is specific to my setup:)
CC=$(which gcc) CXX=$(which g++) cmake -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Debug -GNinja ..
- Build the project:
ninja
For linux and other unix-like OSes, run the following commands (see note above about adding CMAKE_PREFIX_PATH
as needed):
$ cd ${ATTN_SERVER_DIRECTORY}
$ mkdir -p build/gcc.release
$ cd build/gcc.release
$ cmake -DCMAKE_BUILD_TYPE=Release ../..
$ cmake --build .
$ ./attn_server
For 64-bit Windows, open a MSBuild Command Prompt for Visual Studio and run the following commands:
> cd %ATTN_SERVER_DIRECTORY%
> mkdir build
> cd build
> cmake ..
> cmake --build . --config Release
> .\Release\attn_server.exe
32-bit Windows builds are not supported.