在windows上交叉编译linux

发布于 2024-10-05 16:01:31 字数 166 浏览 0 评论 0原文

我发现很少有关于在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

终难愈 2024-10-12 16:01:31

我自己没有这样做过,但是您是否考虑过设置虚拟机并在其上进行编译?您可以使用“网络”共享,以便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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文