多平台的C ++交叉编译器 [英] Multiplatform C++ cross-compiler

查看:92
本文介绍了多平台的C ++交叉编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能建立一个交叉编译的C ++库的目标多平台的单一生成服务器上?

How can I build a cross-compiler for a C++ library to target many platforms on a single build server?

交叉编译器应该能够建立图书馆(至少){的Windows 7,Mac OS X中的Ubuntu 11.04} {×32位,64位} {×调试,释放}。如果从头开始整个构建需要永远我不关心,或者如果 GCC 二进制文件是1 GB。如果交叉编译器不能是一个单一的可执行文件,什么是工作流程我应该使用编译(并重新编译)我的图书馆?

The cross-compiler should be able to build the library for (at least) {Windows 7, Mac OS X, Ubuntu 11.04} × {32 bit, 64 bit} × {Debug, Release}. I don't care if the whole build from scratch takes forever or if the gcc binary is 1 GB. If the cross-compiler cannot be a single executable, what is the workflow I should use to compile (and recompile) my library?

该主机将是Ubuntu的11.04。

The host machine would be a Ubuntu 11.04.

推荐答案

建立交叉编译器是相当不错覆盖的 OSDev维基的。对于Windows,您可以使用MinGW的包在你的发行版的存储库

Building cross-compiler is quite well covered in OSDev Wiki. For Windows, you can use mingw packages in your distro's repository

这篇关于多平台的C ++交叉编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆