Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MonoGame in Linux from scratch to new project tutorial.
- Hi guys,
- since i didn't find anything complete I decided to make this tutorial,
- hope everything is going to be understandable and you'll success as I did.
- This tutorial has been tested on latest Linux Mint which is Maya,
- also should work on Ubuntu or all .deb, so let's begin.
- #### DOWNLOAD AND INSTALL ####
- 1. Download and install latest version of MonoDevelop
- "sudo apt-get install monodevelop"
- 2. Make sure you've lates version of git
- "sudo apt-get install git"
- 3. Download and install Cola Git GUI
- "sudo apt-get install git-cola"
- 4. Download and install mesa-common-dev
- "sudo apt-get install mesa-common-dev"
- 5. Get OpenTK.dll (http://www.opentk.com/)
- #### CLONING MONOGAME ####
- 1. Open Cola Git GUI (should find it in Menu -> Programming)
- 2. Select "Clone"
- 3. Enter this URL: https://github.com/mono/MonoGame.git
- 4. Select a destination folder (folder where MonoGame will be extracted;
- it takes some time after selecting folder, be patient)
- 5. Press "Pull"
- 6. Select "origin/develop"
- 7. Press "Pull"
- #### Building ####
- Open MonoGame.Framework.Linux.sln in MonoDevelop, make sure you've OpenTK.dll in References.
- 1. Right click on References -> Edit References
- 2. Select Tab .NET Assembly
- 3. Locate OpenTK.dll (should be in "OpenTK/Binaries/OpenTK/Release/OpenTK.dll")
- 4. Build Solution
- MonoGame.Framework.dll and Lidgren.Network.dll will appear in "MonoGame/MonoGame.Framework/bin/Release"
- You're going to use these dlls in References of your projects.
- #### Installing Project Template ####
- You have to move "MonoGame/ProjectTemplates/MonoDevelop.MonoGame.2.5" folder to "usr/lib/monodevelop/AddIns" so let me show you how to do this.
- Make sure your MonoDevelop is NOT running.
- 1. Open terminal and login as super user
- "sudo su"
- 2. Move MonoDevelop.MonoGame.2.5 into AddIns folder
- "mv /home/$USER/your_folder/MonoGame/ProjectTemplates/MonoDevelop.MonoGame.2.5 /usr/lib/monodevelop/AddIns"
- (change "your_folder" name for thatone where your MonoGame is cloned)
- 3. Log off as super user
- "Exit"
- #### New MonoGame Linux project ####
- 1. Start MonoDevelop
- 2. Select Create New Solution
- 3. In C# category you should be able to select MonoGame Linux project.
- 4. Name your project and create it, in your solution explorer should appear everything you need
- including Program.cs, Game1.cs, Content folder and other...
- 5. Make sure all references are added correctly, otherwise add them manualy
- Everything should work and has been tested, credit for first half of this tutorial goes to GitHub
- https://github.com/mono/MonoGame/wiki/Tutorials%3AInstalling-Prerequisites-on-Linux
- http://www.monogame.codeplex.com
- Have fun making games in Linux using MonoGame!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement