开发者

How to compile Intel Mac binaries on Linux?

开发者 https://www.devze.com 2022-12-30 00:15 出处:网络
I was reading an article about cross-compi开发者_运维百科ling for OSX on linux, but it was quite hard to understand.

I was reading an article about cross-compi开发者_运维百科ling 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消