将.NET C ++独立移植到Mac

时间:2021-09-25 15:07:16

I need to give an estimate for porting a standalone program to a Mac from a .NET platform. I have all the source code which is in C++ and is both code I wrote and a modified version of GLUT/GLUI because the program uses OpenGL and GLUT/GLUI as a UI.

我需要估计从.NET平台将独立程序移植到Mac。我拥有C ++中的所有源代码,并且是我编写的代码和GLUT / GLUI的修改版本,因为程序使用OpenGL和GLUT / GLUI作为UI。

I don't think the C++ code will be a problem or the OpenGL environment, please tell me if you think it will be. In .NET, I use OpenGL32.DLL and deploy it with my app. I need to find out how this is done for a Mac?

我不认为C ++代码会出现问题或OpenGL环境,请告诉我你是否认为。在.NET中,我使用OpenGL32.DLL并将其与我的应用程序一起部署。我需要了解如何为Mac完成这项工作?

I really need to know what the current deployment method is for Mac's these days and how hard it will be for me to write for it. For .NET, I use Visual Studio for the application development and deployment, I make a new VS project to build the deployable MS installer.

我真的需要知道目前Mac的部署方法是什么,以及我为它编写的难度。对于.NET,我使用Visual Studio进行应用程序开发和部署,我创建了一个新的VS项目来构建可部署的MS安装程序。

The deployment process also allows things like placing a desktop shortcut, associate a unique icon with the program ... What deployment options can one select on a Mac? What do you think the biggest obstacles will be?

部署过程还允许放置桌面快捷方式,将独特图标与程序相关联......可以在Mac上选择哪些部署选项?您认为最大的障碍是什么?

There's no .NET framework calls within the code. The deployment phase produces a .NET assembly with all the security features. I think that is the main relationship with .NET since it is straight C++ not C#.

代码中没有.NET框架调用。部署阶段生成具有所有安全功能的.NET程序集。我认为这是与.NET的主要关系,因为它是直接的C ++而不是C#。

1 个解决方案

#1


Development should be rather straight-forward. You'll be able to do OpenGL/GLUT/etc... through the Cocoa framework. Look at this example from Apple to see how it is done in code.

发展应该是直截了当的。您将能够通过Cocoa框架执行OpenGL / GLUT / etc ....从Apple看这个例子,看看它是如何在代码中完成的。

As for development tools, you will be able to use Xcode (which is free with the Mac). You can develop in C++ and compile with GCC.

至于开发工具,您将能够使用Xcode(Mac上免费)。您可以使用C ++进行开发并使用GCC进行编译。

#1


Development should be rather straight-forward. You'll be able to do OpenGL/GLUT/etc... through the Cocoa framework. Look at this example from Apple to see how it is done in code.

发展应该是直截了当的。您将能够通过Cocoa框架执行OpenGL / GLUT / etc ....从Apple看这个例子,看看它是如何在代码中完成的。

As for development tools, you will be able to use Xcode (which is free with the Mac). You can develop in C++ and compile with GCC.

至于开发工具,您将能够使用Xcode(Mac上免费)。您可以使用C ++进行开发并使用GCC进行编译。