尝试在装有Visual C#2010 Express的Windows XP上安装MonoGame

尝试在装有Visual C#2010 Express的Windows XP上安装MonoGame

问题描述:

该计算机已经装有Windows XP Service Pack 3,.Net 4和带有XNA的Microsoft Visual C#2010 Express.板载显卡仅可用于OpenGL 1.4.

我相信MonoGame 2.5.x可与OpenGL 1.x配合使用,因此我按顺序添加了以下内容:GTK 2.12.9-2.win32-> MonoDevelop 2.8.6.5-> MonoGame 2.5.1.0

Visual C#2010 Express现在显示了Linux和Windows mono游戏解决方案选项.
但是,当我第一次尝试为Windows模板编译标准的Mono游戏时,它抱怨"public Game1():base()"

The machine was already loaded with, Windows XP Service pack 3, .Net 4, and Microsoft Visual C# 2010 Express with XNA. The on-board graphics card only goes as far as OpenGL 1.4

I believe MonoGame 2.5.x works with OpenGL 1.x so I added the following, in order: GTK 2.12.9-2.win32 -> MonoDevelop 2.8.6.5 -> MonoGame 2.5.1.0

Visual C# 2010 Express now showed the Linux and Windows mono game solution options.
However, when I first tried to compile the standard mono game for windows template it complained at 'public Game1() : base()'

似乎OpenTK 1.1.0.0已默认安装在参考"中,并因此引发了错误,因此我将其替换为OpenTK 1.0.0.0,并克服了该错误.
接下来,它在代码中的同一点抱怨找不到openal32,因此我在项目文件夹中放置了一个openal32.dll文件,它越过了这个错误.

It appeared that OpenTK 1.1.0.0 was installed by default in the References, and it threw an error with this, so I replaced it with OpenTK 1.0.0.0 and it got past this error.
Next it complained at the same point in the code that openal32 wasn't found, so I placed an openal32.dll file in the project folder, and it got past this error.

然后在"spriteBatch = new SpriteBatch(GraphicsDevice);"处抛出错误
错误是无法在DLL'opengl32.dll'中找到名为'glCreateShader'的入口点.

Then it threw an error at 'spriteBatch = new SpriteBatch(GraphicsDevice);'
The error was 'Unable to find an entry point named 'glCreateShader' in DLL 'opengl32.dll'.

当我在项目文件夹中放置一个opengl32.dll文件时,它在"public Game1():base()处返回了"OpenTK.Platform.Windows.WinGLContext的类型初始值设定项引发了异常"错误. '命令.

When I put an opengl32.dll file in the project folder it gave a 'The type initializer for 'OpenTK.Platform.Windows.WinGLContext' threw an exception' error back at the ' public Game1() :base()' command.

我认为这可能是因为图形卡只能使用OpenGL 1.4,但是Mono Game 2.5应该使用OpenGL1.那么您知道这是从哪里来的吗?

I thought this may be because the graphics card can only do OpenGL 1.4, but Mono Game 2.5 should use OpenGL 1. So any idea where this is coming from?

这可能是我放在项目文件夹中的openal32.dll opengl32.dll文件版本有问题吗?

Can this be a problem with the openal32.dll opengl32.dll file versions I put in the project folder?

为什么这么多东西似乎是错误的版本?

And why do so much things seem to be the wrong versions?

我想我提到的是OpenTK 1.1.x和XNA已经在此计算机上.

I thought I'd mention that OpenTK 1.1.x was already on this machine, along with XNA.

Visual Studio 2010 Express项目可以直接使用OpenTK 1.1.x编写,而没有MonoGame库,则可以正常工作.

Visual studio 2010 express projects written to use OpenTK 1.1.x directly, without the MonoGame libraries, work fine.