简体   繁体   English

linux下编译需要帮助

[英]Need help for compiling under linux

I have a Makefile and I would like to make a build for 64 bit linux, the problem is that I don't have a linux machine.我有一个 Makefile,我想为 64 位 linux 构建,问题是我没有 linux 机器。 Could someone compile it for me or explain to me how to do it on mac or windows?有人可以为我编译它或向我解释如何在 mac 或 windows 上完成它吗?

This is called cross-compiling – you want to cross-compile for Linux, on Windows or macOS.这称为交叉编译——您想在 Windows 或 macOS 上交叉编译 Linux。

A lot of compilers can do that, but it's slightly fiddly to set up, and of course a bit difficult to test, or to determine when you've done it correctly.很多编译器都可以做到这一点,但是设置起来有点繁琐,当然也有点难以测试,或者确定你何时正确地完成了它。 I can't tell you how to do it with your particular compiler, but I hope this gives you something to look for in the manual, or to google.我不能告诉你如何用你的特定编译器来做,但我希望这能让你在手册中寻找一些东西,或者谷歌。

The other route is to use a build server .另一条路线是使用构建服务器 That's where you use a collection of servers to do builds on Windows, macOS, Linux distro A, Linux distro B, BSD, and so on.... Depending on where you keep your code, you might have access to such build servers.这就是您使用一组服务器在 Windows、macOS、Linux 发行版 A、Linux 上构建此类发行版 B、BSD 等的地方。 Again, I can't give you concrete next steps, but this should give you something to search for.再说一次,我不能给你具体的后续步骤,但这应该会给你一些搜索的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM