- CMake version 3.9 or higher.
- GCC
- Git
On MacOS they could be installed using Homebrew (https://brew.sh/):
brew install cmake
brew install gcc
brew install git
Clone ROX C SDK Git repository:
git clone https://github.com/rollout/rox-c.git
Run install script:
cd rox-c && ./install.sh -d /path/to/install/dir
This will install the rollout c sdk into the subdirectory called rollout-sdk of the directory specified in the command.
So it would look something like /path/to/install/dir/rollout-sdk
.
Please note that parameter -d
is optional. If omitted, SDK will be installed into /usr/local/rollout-sdk
(which
requires superuser privileges).
By default, client SDK is built and installed which has flag freeze and flag overrides features. To install server-only
SDK without these features, add -C
argument to the command:
./install.sh -C -d /path/to/install/dir
ROX C SDK uses OpenSSL
and Curl
libraries which aren't provided for Windows. So they are downloaded and built from
sources during the installation process as well as other libs such as PCRE2
, zlib
, cJSON
and pthreads-win32
.
To make sure these libraries can be built on Windows the following tools should be installed first:
- Strawberry Perl (http://strawberryperl.com/)
- NASM (https://www.nasm.us/) - executable should be added to PATH after installation.
Both are needed for building OpenSSL
library.
Also these tools are required for running the build:
- CMake 3.9 or higher.
- Visual Studio with C compiler tools installed.
- Git
- Open
Cross Tools Command Prompt for VS 20XX <(Your Visual Studio Version here)
. - Navigate to the repository root folder.
- Run
install <INSTALLATION_PATH>
where<INSTALLATION_PATH>
is where you want to install the SDK (if omitted, it will be installed intoC:\Program Files\rollout-sdk
which may require Administrator permissions). - (optional) add
<INSTALLATION_PATH>\bin
to systemPATH
variable.