本文介绍了如何编译为OS X在Linux或Windows?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我想我的端口C / C ++应用程序到OS X.

I would like to port my C/C++ apps to OS X.

我没有一台Mac,但我有Linux和Windows。是否有任何工具吗?

I don't have a Mac, but I have Linux and Windows. Is there any tool for this?

推荐答案

有似乎已写入以帮助您设置交叉编译为Mac;我不能怎么适用的说他们是多么优秀,或者您的项目。在文档中,它们指的是交叉编译为10.4,和的的交叉编译10.5;这些指令可能会比剧本更有益的,这取决于脚本如何适合您的需求。

There appears to be some scripts that have been written to help get you set up cross compiling for the Mac; I can't say how good they are, or how applicable to your project. In the documentation, they refer to these instructions for cross-compiling for 10.4, and these ones for cross compiling for 10.5; those instructions may be more helpful than the script, depending on how well the script fits your needs.

如果你的程序是免费或开源软件,那么你不妨而不是创建一个 portfile(文档的),并允许用户使用建立的MacPorts程序;这一般是在Mac OS X的MacPorts安装携带免费或开源软件preferred方式已经知道,过去在Linux上运行,所以它可能会开发并在Linux上测试Portfile(尽管它显然必须在Mac上测试)。

If your program is free or open source software, then you may wish instead to create a MacPorts portfile (documentation here), and allow your users to build your program using MacPorts; that is generally the preferred way to install portable free or open source software on Mac OS X. MacPorts has been known to run on Linux in the past, so it may be possible to develop and test your Portfile on Linux (though it will obviously need to be tested on a Mac).

这篇关于如何编译为OS X在Linux或Windows?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 00:29