如何在Linux上编译Intel Mac二进制文件? [英] How to compile Intel Mac binaries on Linux?

查看:151
本文介绍了如何在Linux上编译Intel Mac二进制文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读有关在Linux上进行OSX交叉编译的文章,但是很难理解.

我需要什么工具?哪些配置是必需的?

也有用于创建软件包的工具吗?

解决方案

首先,您需要我在十字架上!.. >

更新:我发现了一种更新更好的更新方法,称为 xchain .它比我的十字架"需要更多的体力劳动!你.

I was reading an article about cross-compiling for OSX on linux, but it was quite hard to understand.

What tools do I need? And what configurations are necessary?

Are there any tools for creating packages too?

解决方案

First you need odcctools, which contains assembler and linker and such (like binutils but capable of handling the Mach-O object format). Then you need the system libraries from the official SDK. You can download it from Apple, but must agree to some stuff and become a member to do so. And finally good old gcc. Quite easy in theory, but in reallity a horrible mess. The easiest way to go (that I know of) is to use I'm Cross!.

Update: I found a newer and better updated method called xchain. It requires more manual work than I'm Cross! thou.

这篇关于如何在Linux上编译Intel Mac二进制文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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