Development Environment Setup¶
This guide helps you set up a complete development environment for Movian development.
Prerequisites¶
Required Tools¶
- Git: Version control
- C/C++ Compiler: GCC, Clang, or MSVC
- CMake: Build system (3.15+)
- Python: Build scripts (3.7+)
Platform-Specific Requirements¶
Linux¶
sudo apt-get install build-essential cmake git python3
sudo apt-get install libfreetype6-dev libssl-dev libsqlite3-dev
Windows¶
- Visual Studio 2019+ with C++ workload
- Git for Windows
- CMake
- Python 3.7+
macOS¶
IDE Setup¶
Visual Studio Code¶
Extensions¶
Install these extensions:
- C/C++ (Microsoft)
- CMake Tools
- GitLens
- Markdown All in One
Configuration¶
Create .vscode/settings.json:
{
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
"cmake.buildDirectory": "${workspaceFolder}/build",
"files.associations": {
"*.view": "xml"
}
}
Create .vscode/launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Movian",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/movian",
"args": ["--debug"],
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false
}
]
}
CLion¶
- Open project folder
- CLion auto-detects CMake configuration
- Set build configuration to Debug
- Configure run configuration with debug flags (see Command-Line Options)
Xcode¶
Code::Blocks¶
- Open Code::Blocks
- File → Open → Select
moviandirectory - Build → Build Project
- Configure debugger in Settings → Debugger
Building from Source¶
Clone Repository¶
Configure Build¶
Build¶
Run¶
Development Workflow¶
Code Changes¶
- Create feature branch
- Make changes
- Build and test
- Commit changes
- Push and create PR
Testing¶
Debugging¶
GDB (Linux)¶
LLDB (macOS)¶
Visual Studio (Windows)¶
- Open solution in Visual Studio
- Set breakpoints
- Press F5 to debug
Plugin Development¶
Setup Plugin Directory¶
Live Development¶
- Edit plugin files
- Restart Movian or reload plugins
- Test changes
Debugging Plugins¶
Enable plugin debug logging:
UI Development¶
View File Editing¶
- Edit view files in skin directory
- Some builds support live reload (Ctrl+R)
- Check logs for syntax errors
Testing UI Changes¶
Documentation Development¶
Setup¶
Live Preview¶
Open http://localhost:8000
Build Documentation¶
Useful Tools¶
Code Formatting¶
Static Analysis¶
Memory Debugging¶
Troubleshooting¶
Build Fails¶
- Clean build directory:
rm -rf build - Update submodules:
git submodule update --init --recursive - Check dependencies are installed
Runtime Crashes¶
- Build with debug symbols:
-DCMAKE_BUILD_TYPE=Debug - Run with debugger
- Check logs in
~/.hts/movian/log