更新时间:2023-10-22 23:22:04
crosstool-ng 支持使用 cygwin 主机构建交叉编译器.
概述:
crosstool-ng
tar xvjf crosstool-ng*
)./configure
flex
、libtool
、ncurses-devel
>) 您至少需要以下内容:crosstool-ng
tar xvjf crosstool-ng*
)./configure
flex
, libtool
, ncurses-devel
) You'll need at least the following:
当然,这不会使您能够从 Visual Studio 内部构建 linux 应用程序.(VS2010 及更高版本允许您使用其他工具链(例如 gcc)进行构建,但是除了由 crosstool-ng 构建的交叉编译器之外,您还需要适当的工具链描述).但是您将拥有一个有效的 g++-linux-gnu
,您可以直接运行或使用 Makefile.
Of course, this is NOT going to enable you to build linux applications from inside Visual Studio. (VS2010 and later let you build with other toolchains such as gcc, but you'd need an appropriate toolchain description in addition to the cross-compiler built by crosstool-ng). But you'll have a working g++-linux-gnu
, which you can either run directly or using a Makefile.
注意:构建交叉编译器需要很长时间.osm0sis 提供了这里提供了一个预构建的 gcc 4.8.1,以及他关于构建交叉编译器的笔记(用于更新此答案).
NOTE: Building the cross-compiler takes a LONG time. osm0sis has provided a prebuilt gcc 4.8.1 here, along with his notes on building the cross-compiler (used to update this answer).