Installation Guide
Installation Guide
This guide will help you set up Olympe Engine on your development machine.
Prerequisites
- CMake 3.15 or higher
- C++17 compatible compiler (GCC, Clang, MSVC)
- SDL3 development libraries
- Git for version control
Building from Source
Clone the Repository
Before you begin, ensure you have the following installed:
Required Tools
- C++ Compiler: C++14 compatible compiler
- Linux: GCC 7+ or Clang 5+
- Windows: MSVC 2017+ or MinGW-w64
- macOS: Xcode Command Line Tools (Clang)
- CMake: Version 3.14 or higher
- Git: For cloning the repository
- SDL3: Simple DirectMedia Layer 3 (see below)
Installing SDL3
SDL3 is required for rendering, input handling, and audio.
Ubuntu/Debian
# Install dependencies
sudo apt-get update
sudo apt-get install build-essential cmake git
# Clone and build SDL3
git clone https://github.com/libsdl-org/SDL.git
cd SDL
mkdir build && cd build
cmake ..
make -j$(nproc)
sudo make install
Windows
- Download SDL3 pre-built binaries from libsdl.org
- Extract to a known location (e.g.,
C:\SDL3) - Add SDL3 to your system PATH or set
SDL3_DIRenvironment variable
macOS
# Using Homebrew
brew install sdl3
# Or build from source
git clone https://github.com/libsdl-org/SDL.git
cd SDL
mkdir build && cd build
cmake ..
make -j$(sysctl -n hw.ncpu)
sudo make install
Cloning the Repository
Clone the Olympe Engine repository from GitHub:
git clone https://github.com/Atlasbruce/Olympe-Engine.git
cd Olympe-Engine
Build with CMake
mkdir build
cd build
cmake ..
make
Windows (Visual Studio)
Open Olympe Engine.sln in Visual Studio and build the solution.
Verify Installation
Run the engine to verify it's working:
./OlympeEngine
## Building with CMake
Olympe Engine uses CMake as its build system.
### Basic Build
```bash
# Create build directory
mkdir build
cd build
# Configure with CMake
cmake ..
# Build the project
cmake --build .
Build Options
You can customize the build with these options:
# Build only the runtime engine
cmake -DBUILD_RUNTIME_ENGINE=ON -DBUILD_BLUEPRINT_EDITOR_STANDALONE=OFF ..
# Build only the blueprint editor
cmake -DBUILD_RUNTIME_ENGINE=OFF -DBUILD_BLUEPRINT_EDITOR_STANDALONE=ON ..
# Build both (default)
cmake -DBUILD_RUNTIME_ENGINE=ON -DBUILD_BLUEPRINT_EDITOR_STANDALONE=ON ..
# Release build
cmake -DCMAKE_BUILD_TYPE=Release ..
# Debug build
cmake -DCMAKE_BUILD_TYPE=Debug ..
Build Targets
Olympe Engine produces two executables:
- OlympeEngine: The main runtime engine for playing games
- OlympeBlueprintEditor: Standalone editor for creating/editing entity blueprints
Running the Engine
After building, you can run the engine:
# From the build directory
./OlympeEngine
# Or from the project root (if binaries are in build/)
./build/OlympeEngine
Required Files
Make sure these directories are accessible from your working directory:
Blueprints/- Entity blueprint definitionsGamedata/- Game resources (maps, sprites, audio)Resources/- Engine resourcesConfig/- Configuration files
Verifying the Installation
To verify your installation is working correctly:
-
Run the engine:
./OlympeEngine -
Check for errors: The console should show initialization messages without errors
-
Load a test map:
// In your code
World::Get().LoadLevel("Gamedata/Levels/test_map.tmj"); -
Test the Blueprint Editor:
./OlympeBlueprintEditor
Common Issues
SDL3 Not Found
Error: Could not find SDL3
Solution:
# Set SDL3_DIR environment variable
export SDL3_DIR=/path/to/SDL3/install
# Or specify in CMake command
cmake -DSDL3_DIR=/path/to/SDL3/install ..
Compiler Version Too Old
Error: C++14 features not supported
Solution:
- Update your compiler to GCC 7+, Clang 5+, or MSVC 2017+
- On Ubuntu:
sudo apt-get install gcc-7 g++-7
Missing Dependencies
Error: Build fails with missing headers
Solution:
# Ubuntu/Debian
sudo apt-get install libsdl3-dev libsdl3-image-dev
# Make sure all submodules are initialized
git submodule update --init --recursive
CMake Version Too Old
Error: CMake 3.14 or higher is required
Solution:
# Ubuntu/Debian - install from Kitware repository
sudo apt-get install software-properties-common
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main'
sudo apt-get update
sudo apt-get install cmake
# Or download from cmake.org
Windows DLL Not Found
Error: SDL3.dll not found when running
Solution:
- Copy
SDL3.dllto the same directory asOlympeEngine.exe - Or add SDL3's bin directory to your system PATH
- The CMake build should do this automatically on Windows
IDE Setup
Visual Studio Code
- Install C++ extension
- Install CMake Tools extension
- Open the project folder
- Select a kit (compiler)
- Press F7 to build or Ctrl+F5 to run
Visual Studio
- Open the project folder (not the .sln file)
- Visual Studio will detect CMakeLists.txt
- Select build configuration
- Build → Build All
- Debug → Start Without Debugging
CLion
- Open the project folder
- CLion will automatically load CMake configuration
- Select build configuration
- Build → Build Project
- Run → Run 'OlympeEngine'
Project Structure
After building, your directory structure should look like:
Olympe-Engine/
├── build/ # Build output (created by you)
│ ├── OlympeEngine # Main executable
│ └── OlympeBlueprintEditor
├── Blueprints/ # Entity blueprints
├── Config/ # Configuration files
├── Documentation/ # Additional documentation
├── Docs/ # Technical guides
├── Gamedata/ # Game content
│ └── Levels/ # Tiled maps
├── Resources/ # Engine resources
├── Source/ # C++ source code
│ ├── AI/ # AI and behavior trees
│ ├── BlueprintEditor/ # Blueprint editor
│ ├── TiledLevelLoader/ # Tiled map loader
│ └── ...
├── CMakeLists.txt # CMake build configuration
└── website/ # Documentation site (this site!)
Next Steps
Now that you have Olympe Engine installed, continue to Quick Start to create your first project. Now that you have Olympe Engine installed:
- Quick Start Guide - Create your first project
- Project Structure - Understand the codebase
- ECS Overview - Learn the architecture
Updating Olympe Engine
To update to the latest version:
# Pull latest changes
git pull origin master
# Update submodules
git submodule update --recursive
# Rebuild
cd build
cmake ..
cmake --build .
Need Help?
If you encounter issues not covered here:
- Check the Troubleshooting Guide
- Search existing issues
- Ask in Discussions
- Open a new issue