diff --git a/Build.md b/Build.md index 175ed72..3dce2d6 100644 --- a/Build.md +++ b/Build.md @@ -27,7 +27,7 @@ Open a Terminal window. ``` git clone https://github.com/microsoft/vcpkg.git cd vcpkg -./bootstrap-vcpkg.bat +./bootstrap-vcpkg.sh ./vcpkg install cpprestsdk[websockets] ``` @@ -97,4 +97,5 @@ cd build\Release rpc.exe --url wss://localhost:8080 --cmd "-t activate --profile profile1" ``` -Use --help for more options. \ No newline at end of file +Use --help for more options. + diff --git a/CentOS7.md b/CentOS7.md index 3c484cb..604b704 100644 --- a/CentOS7.md +++ b/CentOS7.md @@ -52,7 +52,7 @@ Using a Terminal window with the PATH and devtoolset enabled per the Dependencie ``` git clone https://github.com/microsoft/vcpkg.git cd vcpkg -./bootstrap-vcpkg.bat +./bootstrap-vcpkg.sh ./vcpkg install cpprestsdk[websockets] ``` diff --git a/CentOS8.md b/CentOS8.md new file mode 100644 index 0000000..499df56 --- /dev/null +++ b/CentOS8.md @@ -0,0 +1,63 @@ +# Remote Provisioning Client (RPC) + +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 +``` + +# Linux + +Steps below are for CentOS8. + +## Dependencies + +### CMake +Install CMake. + +``` +sudo yum install cmake +``` + +## Build C++ REST SDK + +Using a Terminal window with the PATH and devtoolset enabled per the Dependencies. + +``` +git clone https://github.com/microsoft/vcpkg.git +cd vcpkg +./bootstrap-vcpkg.sh +./vcpkg install cpprestsdk[websockets] +``` + +## Build RPC + +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 . +``` + +## Run RPC + +Open a Terminal window. + +``` +cd build +sudo ./rpc --url wss://localhost:8080 --cmd "-t activate --profile profile1" +``` + +Use --help for more options.