Skip to content

Instantly share code, notes, and snippets.

@tobias-schulz
Created November 13, 2013 17:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobias-schulz/7453030 to your computer and use it in GitHub Desktop.
Save tobias-schulz/7453030 to your computer and use it in GitHub Desktop.
Build Monogame > 4.0 on Ubuntu 13.10
# Add this line to your software sources
deb http://debian.meebey.net/experimental/mono /
# Of course, apt-get remove mono-complete first...
sudo apt-get update
sudo apt-get install build-essential automake checkinstall intltool git
sudo apt-get install mono-complete mono-addins-utils gtk-sharp2 gnome-sharp2
# I installed monodevelop from apt just to get all the prereqs
sudo apt-get install monodevelop
# Build MonoDevelop
git clone git://github.com/mono/monodevelop
cd monodevelop
git checkout monodevelop-4.2
git submodule update --init --recursive
./configure
make
sudo checkinstall
# Build MonoGame...
git clone https://github.com/mono/MonoGame
cd MonoGame
git submodule update --init --recursive
# ... build the content pipeline
cd IDE/MonoDevelop/MonoDevelop.MonoGameContent/MonoDevelop.MonoGameContent/
xbuild MonoDevelop.MonoGameContent.Linux.csproj
cd bin/Debug/
mdtool setup pack MonoDevelop.MonoGameContent.addin.xml
# => MonoDevelop.MonoGameContent_3.0.0.mpack
# ... build the templates
cd ProjectTemplates/MonoDevelop/MonoDevelop.MonoGame/
cat MonoDevelop.MonoGame/MonoDevelop.MonoGame.addin.xml | egrep -v 'assemblies/(iOS|Mac|Android|WindowsGL)' | perl -n -e 's/Addin id="(SourceEditor2|Ide|Core)" version="3.0"/Addin id="$1" version="4.0"/igm; print' > MonoDevelop.MonoGame/MonoDevelop.MonoGame.Linux.addin.xml
sed -i 's@MonoDevelop.MonoGame.addin.xml@MonoDevelop.MonoGame.Linux.addin.xml@gm' MonoDevelop.MonoGame/MonoDevelop.MonoGame.Linux.csproj
xbuild MonoDevelop.MonoGame.sln
cd MonoDevelop.MonoGame
mdtool setup pack MonoDevelop.MonoGame.Linux.addin.xml
@jasonsturges
Copy link

Does this remain valid for building MonoGame mpacks?

Isn't this missing executing proto build?

cd MonoGame
mono Protobuild.exe

While this does build mpacks that may be installed in MonoDevelop, they do not appear functional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment