Compiling Console for Windows

Requirements

For compiling under Windows, the following is required:

See also

To get the Scorpion source code for compiling, see Getting the source.

Setting up CMake

To install CMake, download the installer from the CMake website and run it.

You can then check that CMake is installed by running cmake --version in a command prompt.

Downloading Console’s source

Refer to Getting the source for detailed instructions.

Warning

To prevent slowdowns caused by continuous virus scanning during compilation, add the Scorpion source folder to the list of exceptions in your antivirus software.

For Windows Defender, hit the Windows key, type “Windows Defender Settings” then hit Enter. Under Virus & threat protection, go to Virus & threat protection setting and scroll down to Exclusions. Click Add or remove exclusions then add the Scorpion source folder.

Running CMake

mkdir .build && cd .build
cmake .. -G "Visual Studio 17 2022" -DCMAKE_PREFIX_PATH="C:/Qt/{QT_VERSION}/{MSVC_VERSION}/lib/cmake/"

You can build then with:

cmake --build . --config Debug

Then you can run by:

./Debug/sam-console.exe

Note

The console uses a dummy engine so you don’t need to worry about the engine’s build. This is for faster compilation as the engine is not needed for developing the console.

Note

You can find our models at SAM Models.

If all goes well, you will have our engine’s .lib and .dll files in the .build folder.

Tip

Add your project build directory to the list of excluded directories of any anti-virus application that runs on your system.