Tutorials:Installing Prerequisites on Linux - tobiasschulz/MonoGame-SDL2 GitHub Wiki

Back to Tutorials Page

Table of Contents

Introduction

This page lists the requirements for creating a MonoGame project. These steps were created while installing on a Ubuntu machine so they may differ if you are using a different OS.

Download and install

Install the following packages using your pkg manager:

  1. MonoDevelop
  2. git
  3. Cola Git GUI
  4. mesa-common-dev (OpenTk needs this to create a window)
Get OpenTk http://www.opentk.com/

Cloning MonoGame

  1. Open Cola Git GUI
  2. Select "Clone..."
  3. Enter the URL from the front page, which should be https://github.com/mono/MonoGame.git
  4. Select a destination folder
  5. Press "Pull..."
  6. Select "origin/develop"
  7. Press "Pull"

Building

Now that you have cloned MonoGame, you can open the MonoGame.Framework.Linux.sln in MonoDevelop. You may find that you cannot Build because OpenTK could not be found. To rectify:

  1. Click "Project" -> "Edit References"
  2. Click the tab ".Net Assembly"
  3. Find OpenTK.dll (Likely in "OpenTK/1.0/Binaries/OpenTK/Release/OpenTK.dll")
Back to Tutorials Page
⚠️ **GitHub.com Fallback** ⚠️