Build Magnum in a Linux Subsystem on Windows
~ 1 minute read.
I recently had the pleasure to finally install an ubuntu subsystem on my Windows 10 PC to compile test some C++ code on GCC.
For you to need to search less, here’s how I proceeded:
Install Linux Subsystem
To enable the subsystem feature, run the following in PowerShell with administrative priviledges:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
You will need to restart your system afterwards. Then search e.g. “Ubuntu” on the Windows Store and install. (Other distros are available!)
Build Magnum
You will need to install OpenGL on the subsystem. You can do this either by following the instructions here, or build the magnum debian packages, which should have the required libraries as depedendencies.
Written in 10 minutes