-
Notifications
You must be signed in to change notification settings - Fork 56
Building and installing Intercept from source
jonpas edited this page Jun 6, 2017
·
9 revisions
- CMake >=v3.8 (may use Visual Studio 2017's integrated CMake on Windows)
- Some knowledge of building software from source.
- Open Folder in Visual Studio
- Select "CMake" in menu bar and "Build All"
- Open a command prompt and navigate to the folder in which you downloaded or Git cloned out the Intercept source.
- Navigate to the
vcprojdir. - Run
cmake .. -G "Visual Studio 15 2017(replace generator for any other C++17 32-bit Visual Studio generator). - Compile projects (Host and Client library)
- Navigate to the
vcproj64dir. - Run
cmake .. -G "Visual Studio 15 2017 Win64"(replace generator for any other C++17 64-bit Visual Studio generator). - Compile projects (Host and Client library)
- Open terminal and navigate to the folder in which you downloaded or Git cloned out the Intercept source.
- Navigate to the
vcprojdir. - Run
cmake ... - Unix Makefiles should be used by default, if not use the
-Goption and choose the wanted CMake generator. - Compile projects (Host and Client library)
- Clone or download the Intercept examples.
- Navigate to the Intercept core files, and then into the
vcprojfolder as above. - Run
cmakebut provide it with the option-DINTERCEPT_EXAMPLE_SRC=path/to/exampleswherepath/to/examplesis a full path to the directory in which the examples are located.
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.
- Make sure you're using C++17. Intercept WILL NOT WORK with anything prior to C++17!