MonoGame示例未在Mountain Lion上编译 [英] MonoGame Samples not compiling on Mountain Lion

查看:70
本文介绍了MonoGame示例未在Mountain Lion上编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我安装了MonoFramework,MonoDevelop和MonoMac,并下载了最新版本的MonoGame.我尝试编译示例,但它们均因相同的错误而失败 Parsing error of #error Unknown platform.

So I installed MonoFramework, MonoDevelop and MonoMac and downloaded the latest version of MonoGame. I tried compiling the samples but they all fail with the same error Parsing error of #error Unknown platform.

问题似乎是由于某些原因#if MONOMAC#elif MONOMAC被忽略了.

The problem seems to be that for some reason #if MONOMAC and #elif MONOMAC are being ignored.

如果我删除与Windows,XBOX和Linux相关的代码,并删除#if MONOMAC,则代码将编译并执行.是否进行了更改,我是否应该在平台检查中使用其他方式代替MONOMAC(我尝试使用__APPLE__MAC,但均无效).

If I remove the Windows, XBOX and Linux related code and get rid of the #if MONOMAC the code compiles and executes. Has there been a change and should I use something else instead of MONOMAC in my platform check (i tried with __APPLE__ and MAC but neither worked).

谢谢.

推荐答案

它应该可以正常工作.如果安装了MonoGame模板,是否可以为MacOS创建MonoGame项目?

It should just work. If you install the MonoGame templates, does it allow you to create MonoGame project for MacOS?

这篇关于MonoGame示例未在Mountain Lion上编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆