Hi everyone
I’m having trouble getting started with MonoGame 3.8 on macOS Catalina. I’m following the Getting Started guide but I’m getting an Unable to retrieve OpenGL version
error when trying to run the game. As in the tutorial, I’ve selected a MonoGame Cross Platform Desktop Project.
The exact error when trying to run the application is this:
Unhandled exception. Microsoft.Xna.Framework.Graphics.NoSuitableGraphicsDeviceException: Unable to retrieve OpenGL version
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.PlatformSetup()
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Setup()
at Microsoft.Xna.Framework.Graphics.GraphicsDevice..ctor(GraphicsAdapter adapter, GraphicsProfile graphicsProfile, Boolean preferHalfPixelOffset, PresentationParameters presentationParameters)
at Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation gdi)
at Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice()
at Microsoft.Xna.Framework.Game.DoInitialize()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at MyGame.Program.Main() in /Users/martin/Code/monogame/MyGame/Program.cs:line 11
This is the current installed version:
MonoGame.Templates.CSharp
Details:
NuGetPackageId: MonoGame.Templates.CSharp
Version: 3.8.0.1641
Author: MonoGame Team
Templates:
MonoGame Android Application (mgandroid) C#
MonoGame Cross-Platform Desktop Application (OpenGL) (mgdesktopgl) C#
MonoGame iPhone/iPad Application (mgios) C#
MonoGame Windows Universal Application (CoreApp) (mguwpcore) C#
MonoGame Windows Universal Application (XAML) (mguwpxaml) C#
MonoGame Windows Desktop Application (Windows DirectX) (mgwindowsdx) C#
MonoGame NetStandard Library (mgnetstandard) C#
MonoGame Pipeline Extension (mgpipeline) C#
MonoGame Shared Library Project (mgshared) C#
Uninstall Command:
dotnet new -u MonoGame.Templates.CSharp
And here’s my dotnet
information:
➜ dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 3.1.405
Commit: 65f9d75b1c
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.15
OS Platform: Darwin
RID: osx.10.15-x64
Base Path: /usr/local/share/dotnet/sdk/3.1.405/
Host (useful for support):
Version: 3.1.11
Commit: f5eceb8105
.NET Core SDKs installed:
3.1.405 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Any nuggets of information would be super appreciated!
Thanks!