Skip to content

Building and installing Intercept from source

jonpas edited this page Jun 6, 2017 · 9 revisions

Requirements

All platforms

  • CMake >=v3.8 (may use Visual Studio 2017's integrated CMake on Windows)
  • Some knowledge of building software from source.

Windows

Linux

Build Intercept Core Project (Windows)

Visual Studio 2017 Integrated CMake

  1. Open Folder in Visual Studio
  2. Select "CMake" in menu bar and "Build All"

Standalone CMake

  1. Open a command prompt and navigate to the folder in which you downloaded or Git cloned out the Intercept source.

32-bit

  1. Navigate to the vcproj dir.
  2. Run cmake .. -G "Visual Studio 15 2017 (replace generator for any other C++17 32-bit Visual Studio generator).
  3. Compile projects (Host and Client library)

64-bit

  1. Navigate to the vcproj64 dir.
  2. Run cmake .. -G "Visual Studio 15 2017 Win64" (replace generator for any other C++17 64-bit Visual Studio generator).
  3. Compile projects (Host and Client library)

Build Intercept Core Project (Linux)

  1. Open terminal and navigate to the folder in which you downloaded or Git cloned out the Intercept source.
  2. Navigate to the vcproj dir.
  3. Run cmake ...
  4. Unix Makefiles should be used by default, if not use the -G option and choose the wanted CMake generator.
  5. Compile projects (Host and Client library)

Build Options

Build with Examples

  1. Clone or download the Intercept examples.
  2. Navigate to the Intercept core files, and then into the vcproj folder as above.
  3. Run cmake but provide it with the option -DINTERCEPT_EXAMPLE_SRC=path/to/examples where path/to/examples is a full path to the directory in which the examples are located.

Build Intercept DLL to the rv folder.

For ease of development on the host you can switch the normal compiled binary directory from the standard build\win32 dir to the rv folder, which can be used when launching Arma to load the project PBO files. To do this run CMake with the -DINTERCEPT_BUILD2RV=ON and it will compile the host DLL into the rv folder, no matter the build type.

Problems building Intercept

  • Make sure you're using C++17. Intercept WILL NOT WORK with anything prior to C++17!
Clone this wiki locally