Skip to content

3. Build CrazyAra binary

Johannes Czech edited this page Oct 14, 2022 · 10 revisions

Linux / Mac

cd CrazyAra/engine
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4

Note: You may change -j4 to e.g. -j2 or -j8 to use more or less threads while building.

Windows

set BLAZE_PATH=<path_to_blaze>/Blaze_3.6/
cd CrazyAra\engine
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" ..
msbuild CrazyAra.sln /p:Configuration=Release;Platform=x64 /maxcpucount

For newer Visual Studio versions use: cmake -G "Visual Studio 17 2022" ..

Note: Better use cmd.exe instead Windows Power Shell. If you run into problems regarding a definition of min & max in your dependencies, you may have to add

#undef max
#undef min

in the corresponding dependency source file.

Reference: https://stackoverflow.com/questions/2561368/illegal-token-on-right-side-of