RPC is an application which enables remote capabilities for AMT, such as as device activation. To accomplish this, RPC communicates with the RPS (Remote Provisioning Server).
The steps below assume the following directory structure where rpc is the clone of this repository, vcpkg is a clone of the VCPKG tool source and build is the RPC build directory. Both vcpkg and build directories will be created in later steps.
\rpc
|__vcpkg
|__build
Steps below are for CentOS8.
Install CMake.
sudo yum install cmake
Using a Terminal window with the PATH and devtoolset enabled per the Dependencies.
git clone -b 2020.11-1 https://github.com/microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg install cpprestsdk[websockets]
Using a Terminal window with the PATH and devtoolset enabled per the Dependencies.
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=/rpc/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
To build debug:
cmake -DCMAKE_TOOLCHAIN_FILE=/rpc/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Debug ..
cmake --build .
Open a Terminal window.
cd build
sudo ./rpc --url wss://localhost:8080 --cmd "-t activate --profile profile1"
Use --help for more options.