从Linux / Windows编译Mac版

时间:2021-09-11 04:58:57

Is there any way to generate binaries from c++ code for mac from linux / windows ?

有没有办法从Linux / windows的mac ++ c ++代码生成二进制文件?

Currently we want to give away reference implementations and we dont have mac but participants do have. Hence this problem.

目前我们想要提供参考实现,我们没有mac,但参与者确实有。因此这个问题。

2 个解决方案

#1


0  

Not reliably -- and, even if you could, you'd have no way to test them. Either find some friendly person with a Mac you can use to build and test your application, or don't distribute a Mac version.

不可靠 - 即使你可以,你也无法测试它们。要么找到一些友好的人用Mac来构建和测试你的应用程序,要么不发布Mac版本。

#2


-1  

If you have C++ code you can cross-compile from almost any machine to another machine. I suppose you can generate binaries from a mac machine to a linux/windows machine.

如果你有C ++代码,你可以从几乎任何机器交叉编译到另一台机器。我想你可以从mac机器生成二进制文件到linux / windows机器。

#1


0  

Not reliably -- and, even if you could, you'd have no way to test them. Either find some friendly person with a Mac you can use to build and test your application, or don't distribute a Mac version.

不可靠 - 即使你可以,你也无法测试它们。要么找到一些友好的人用Mac来构建和测试你的应用程序,要么不发布Mac版本。

#2


-1  

If you have C++ code you can cross-compile from almost any machine to another machine. I suppose you can generate binaries from a mac machine to a linux/windows machine.

如果你有C ++代码,你可以从几乎任何机器交叉编译到另一台机器。我想你可以从mac机器生成二进制文件到linux / windows机器。