Prerequisites
- Windows
- CMake 3.4+
- git
- Visual Studio 2017-2019
git clone https://github.com/mosra/magnum-bootstrap.git --branch base --single-branch
cd magnum-bootstrap
git clone https://github.com/mosra/corrade.git
git clone https://github.com/mosra/magnum.git
git clone https://github.com/mosra/magnum-bindings.git bindings
git clone https://github.com/pybind/pybind11.git
remove-item CMakeLists.txt
invoke-webrequest -outfile CMakeLists.txt https://gist.githubusercontent.com/alanjfs/3f36f5a1ea7cf26d91b4787b2a303df5/raw/dd0d7e3c77783da85d0f8931fe230c9d9ce9be9b/CMakeLists.txt
invoke-webrequest -outfile sdl.zip https://www.libsdl.org/release/SDL2-devel-2.0.10-VC.zip
expand-archive .\sdl.zip -destinationpath .
mkdir build
cd build
cmake .. -DWITH_PYTHON=ON
cmake --build . --config Release
.\Debug\bin\MyApplication.exe
'invoke-webrequest' is not recognized as an internal or external command
This is a PowerShell command, try running powershell.exe
from your command-line, before running the above commands.
Have a look at MyApplication.cpp
from the bootstrap repository for a look at what you just built, and head on over to the Examples to learn more about what you can do with Magnum!
PythonExample.py
MyApplication.cpp
- Examples
- API Documentation (Press TAB to search for e.g.
drawEvent
orApplication
) - Magnum Website
- Community Chat
Good luck, and see you soon!