在windows上交叉编译linux
我发现很少有关于在 Windows 中交叉编译 Linux 二进制文件的信息,大多数问题都是关于相反的情况。
有人有任何经验或指示可以分享吗?
如果可以选择的话,我更喜欢 Mingw 而不是 Cygwin。
假设特定的 Linux 目标可用:我有包含头文件和二进制文件。
I've found little info about cross-compiling Linux binaries in Windows, most questions are about the opposite situation.
Has someone any experience or pointers to share?
I'd prefer Mingw over Cygwin, if I can choose.
Assume that the specific Linux target is available: I have the include headers and binaries.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己没有这样做过,但是您是否考虑过设置虚拟机并在其上进行编译?您可以使用“网络”共享,以便Windows系统和Linux虚拟系统都可以看到相同的目录。借助虚拟机解决方案,针对特定发行版和架构变得更加容易。
无论如何,祝你好运。
I haven't done this myself, but have you considered setting up a virtual machine, and compiling on that? You could use a "network" share, so that both the Windows system and Linux virtual system can see the same directories. With the Virtual Machine solution, it becomes much easier to target specific distributions and architectures.
Best of luck, regardless.