chrisgwilliams
Posts: 2
Joined: Tue Feb 10, 2015 7:40 pm

running MonoGame on Raspberry Pi

Tue Feb 10, 2015 7:43 pm

I'm trying to get a MonoGame project working on my Pi.

I've done the following:

sudo apt-get install mono-runtime
sudo apt-get install monodevelop
sudo apt-get install libmonogame-cil-dev monodevelop-monogame

Then I launched MonoDevelop and created a new Solution/Project: MonoGame Linux Application

Without making any code or configuration changes, the game builds ok, but when I try to run it I get a System.NullReferenceException at OpenTK.Graphics.GraphicsMode.get_Default()

By default, the Build Configuration is set to Default|x86 which seems a little weird since I'm targeting the Pi, which is obviously not x86. The only options I see are Debug|x86, Release|x86 or Any CPU (all of which I've tried.)

Am I using the wrong project type (Linux)?
Or am I missing a library (OpenTK maybe?)
Or is there something special I need to do in the Build Configuration?

Any help would be appreciated.


If you use StackExchange, feel free to answer here: http://raspberrypi.stackexchange.com/qu ... spberry-pi

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: running MonoGame on Raspberry Pi

Tue Feb 17, 2015 2:48 pm

Seems to have been answered over in stackexchange. This was in the blog some time ago http://www.raspberrypi.org/thursday-grab-bag-2/ - the Youtube video has the tweaks listed on high-level.
http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

Return to “General programming discussion”