-
-
Notifications
You must be signed in to change notification settings - Fork 0
1. Installation
Download the latest copy of the game from Releases.
Download and install CMake.
For Raspberry Pi OS, a Snapcraft installation is probably the easiest approach; Or, you could try from source.
For Linux platforms, these should come pre-installed. If not, run:
sudo apt install build-essential
For Windows, consider using Cygwin or WinLibs.
Download from here.
On Linux, it should be as easy as:
sudo apt install ninja-build
Download the source code of the latest release and unzip.
Then, go into the directory.
cd Path\To\caravan\
- Use CMake to create
build
directory.
cmake -S . -B build -G Ninja -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release
Finally, create the executable caravan
(or caravan.exe
) for Windows.
cmake --build build --config Release --target caravan
The executable can be found at: build/caravan
or build/caravan.exe
.
Note
In my experience, the Windows caravan.exe
executable sometimes gets labelled as a "virus" by Windows Defender. You may need to add it to your anti-virus' exclusions list if this is the case.
Run the command with:
./caravan
Or, for Windows:
.\caravan.exe
To run unit tests locally, build tests executable.
cmake --build build --config Release --target tests
Then run tests.
cd build
ctest