About Build¶
Directory build contains two different kinds of environments.
- linux:
Linux-based build environments
- windows:
Windows-based build environments
Existing Environments¶
Information on several existing environments is listed below.
linux/xkmsc¶
Function
generate and run executable file xkmsc under Linux OS
Pre-Request
item
my version
gcc, g++
9.3.0
Make
4.2.1
cmake
3.16.3
Content
item
description
build.sh
build script
run.sh
(single-)run script
Usage
In the WSL environment, change the directory to build/linux/xkmsc,then you cancreate a building environment with
./build.sh
then you will get
generate executable file xkmsc with
make
then you will get
run executable file xkmsc (with a given configuration setting) with
./xkmsc -c ../../../script/run/runXkmsc/xkmsc.cfg
then you will get
- Sure, to run with a different configuration setting,you can either change the contents of configuration file xkmsc.cfg or overwrite them through the CLI (command-line interface).For example,
./xkmsc -c ../../../script/run/runXkmsc/xkmsc.cfg --numFrame 3
Besides, I have created a (single-)run script run.sh which would execute the above steps one by one.Build parameters can be passed through -B “…”;Run parameters can be passed through -R “…”.For example,./run.sh -R "--numFrame 5"
windows/xkmsc¶
Function
generate and run executable file xkmsc under Windows OS
Pre-Request
item
my version
CMake
3.21.0
Visual Studio
2017-15.9.37
Content
item
description
build_2017.dat
VS_2017 build script
build_2019.dat
VS_2019 build script
Usage
In Windows Explorer, change the directory to build/windows/xkmsc,then you can- double click the corresponding build.bat to create a building environment(choose build_2017.bat if Visual Studio 2017 is installed)(choose build_2019.bat if Visual Studio 2019 is installed)
open solution file xkmsc.sln
right click on solution xkmsc and set it as the startup item
right click on solution xkmsc and click properties, then add
-c ../../../script/run/runXkmsc/xkmsc.cfg
to the command-line parameter(both slash and backslash can be recognized)click button Start or press key F5 to generate executable file xkmsc and run it with the given configuration setting