更新时间:2023-10-22 23:18:22
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).