问题描述
我是 Mono 开发的新手(但不是 .NET 开发) - 已下载 Visual Studio for Mac 并尝试从 Alea GPU 运行示例解决方案.它抱怨它需要 mono64,但我看不到像在 Windows 中那样选择 64 位架构的选项,而且谷歌搜索这个问题并没有找到我能理解的答案.我可以在 VS for Mac 中使用 mono64 吗?如果可以,如何使用?
I'm new to Mono development (but not .NET development) - got as far as downloading Visual Studio for Mac and trying to run a sample solution from Alea GPU. It complains that it needs mono64, but I see no option for selecting 64 bit architecture like I would in Windows, and Googling the issue has not turned up an answer I can make sense of. Can I use mono64 in VS for Mac and if so, how?
推荐答案
由于你是在VS4M中运行,所以你需要设置你正在使用的运行配置的架构.
Since you are running within VS4M, you need to set the architecture of the run configuration that you are using.
以我编写的 ML(基于 Alea)程序为例:
Using an ML (Alea-based) program that I wrote as an example:
- 打开项目选项并转到
运行/配置/默认
:
- 打开
Mono 运行时设置
并将 Arch 设置为 64 位:
- Open the
Mono runtime settings
and set the Arch to 64-bit:
Mono 现在默认是 64 位的,所以你可以运行:
Mono is 64-bit by default now, so you can run either:
/Library/Frameworks/Mono.framework/Commands/mono MovieMadnessComputeBoxOffice-Alea.exe
或
/Library/Frameworks/Mono.framework/Commands/mono64 MovieMadnessComputeBoxOffice-Alea.exe
注意:在旧版本的 Mono 上,您必须使用 mono --arch=64 ...
.如果您需要 arch32,则使用 mono32
,但 CUDA 只有 64 个库,因此使用 Alea 不需要.
Note: On older version of Mono you would have to have used mono --arch=64 ...
. If you need arch32, you use mono32
, but CUDA only has 64 libs so this would not be needed for Alea usage.
这篇关于我可以将 mono64 与 Visual Studio for Mac 一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!