Repository navigation
en getting started build
中文 | English | Docs | Repository
This page walks through building Nullus from scratch: dependencies, the three platform entry points, common failures, and where build artifacts land.
| Dependency | Requirement | Notes |
|---|---|---|
| Git | Any recent version | Submodules must be fetched |
| CMake | 3.18 or newer | Minimum declared by the project |
| C++ compiler | C++20 capable | MSVC (VS 2022) on Windows, GCC/Clang on Linux, Xcode toolchain on macOS |
| Python | 3.8 or newer | Used by the dependency setup scripts |
| .NET SDK | 8.0.408 | Pinned by global.json; when missing, CMake downloads it into the repository instead of touching the system PATH
|
| Vulkan SDK | 1.4.341 or compatible | Needed only for the Vulkan backend or Linux/WSL validation |
git clone https://github.com/NullusEngine/Nullus.git
cd Nullus
git submodule update --init --recursiveWindows:
.\SetupDependencies.batLinux / macOS:
./SetupDependencies.shThe scripts prepare third-party content inside the repository working tree and do not require elevated system permissions. The .NET SDK follows the same repository-local policy.
cmake -S . -B build -G "Visual Studio 17 2022" -A x64
cmake --build build --config Debug --target Editor LauncherThe repository also ships a wrapper that creates build/windows, derives MSBuild parallelism from the CPU count, and restores the MetaParser project when needed:
build_windows.bat Debug x64Environment variables: NLS_BUILD_JOBS overrides MSBuild parallelism, NLS_MSVC_MP_JOBS limits target-internal /MP compilers, and NLS_BUILD_TARGETS restricts the build to named targets.
./build_linux.sh debug
./build_linux.sh release ninjaThe script creates build/linux, prefers gcc/g++ when CC/CXX are unset, and exports compile_commands.json.
./build_macos.sh debugmacOS builds default to the Metal backend. Metal is not supported on non-Apple platforms and cannot be reached through a null-device fallback.
./build_wsl_vulkan.sh --install-deps
./build_wsl_vulkan.sh --run-editorThis uses the build/wsl-vulkan directory. --install-deps installs the Vulkan/GLFW/Ninja prerequisites, and --run-editor starts a Debug editor smoke run after both configurations build.
| Target | Purpose |
|---|---|
Editor |
The editor |
Game |
The game runtime |
Launcher |
Project launcher |
NullusUnitTests |
Behavior tests (needs NLS_BUILD_TESTS=ON) |
NullusPerformanceTests |
Performance and stress tests (needs NLS_BUILD_PERFORMANCE_TESTS=ON) |
ReflectionTest |
Reflection smoke tool |
Executables are deployed under App/, for example App/Win64_Debug_Runtime_Shared/Editor.exe and App/Win64_Release_Runtime_Shared/Editor.exe on Windows. Debugger launch profiles rely on that layout; see Script Debugging and Hot Reload.
Common switches (full list in Build Options):
cmake -S . -B build -G "Visual Studio 17 2022" -A x64 `
-DNLS_BUILD_TESTS=ON `
-DNLS_ENABLE_TRACY=ONEnabled by default: NLS_ENABLE_PROFILING, NLS_ENABLE_CSHARP_SCRIPTING, NLS_ENABLE_LUA_SCRIPTING, NLS_ENABLE_GAME_UI, NLS_ENABLE_PCH, and NLS_USE_SHARED_LIBRARY. Disabled by default: NLS_BUILD_TESTS, NLS_BUILD_PERFORMANCE_TESTS, NLS_ENABLE_TRACY, NLS_ENABLE_TIMELINE_PROFILER, and NLS_ENABLE_CXX_MODULES.
When both Path and PATH exist in the host environment, MSBuild refuses to start. Use the wrapper that cleans only the build subprocess:
.\Tools\BuildCleanEnvironment.cmd cmake --build build --config Debug --target EditorIt does not modify user environment variables.
Lower the parallelism:
set NLS_BUILD_JOBS=8
set NLS_MSVC_MP_JOBS=4
build_windows.bat Debug x64Reconfigure with precompiled headers disabled:
cmake -S . -B build-no-pch -G "Visual Studio 17 2022" -A x64 -DNLS_ENABLE_PCH=OFFBuild and run the lightweight tool:
cmake --build build --config Debug --target ReflectionTest- Your First Project uses the editor you just built.
- Build Options lists every CMake switch.
- Debugging and Testing covers behavior and performance test runs.
Nullus Engine
中文
- 认识 Nullus
- 安装与快速入门
- 使用编辑器
- 场景与对象
- Prefab 工作流
- 资产与内容管线
- 渲染、材质与光照
- 大场景与资源管理
- 游戏逻辑与脚本
- 用户界面
- 动画与角色
- 物理与交互
- 音频、特效与媒体
- AI 与联网
- 平台、构建与发布
- 扩展与引擎架构
- 调试、性能与质量
- 参考手册
- 示例与发展路线
English
- Getting to Know Nullus
- Install and Quick Start
- Using the Editor
- Scenes and Objects
- Prefab Workflow
- Assets and Content Pipeline
- Rendering, Materials, and Lighting
- Large Scenes and Resource Management
- Gameplay and Scripting
- User Interface
- Animation and Characters
- Physics and Interaction
- Audio, Visual Effects, and Media
- AI and Networking
- Platforms, Builds, and Releases
- Extending the Engine
- Debugging, Performance, and Quality
- Reference
- Examples and Roadmap