如何构建 MinGW W64 [英] How to build MinGW W64
问题描述
我是 Stack Overflow、C++ 和 MinGW W64 的新手.我的问题是,我不知道如何构建 MinGW W64,我所知道的只是双击一个 exe 并将文件安装到我的计算机上.
I'm new to Stack Overflow, C++ and to MinGW W64. My problem is, is that I don't know how to build MinGW W64, all I know how to do is double click an exe and install the files onto my computer itself.
所以我要问的是,你如何构建 MinGW W64?( http://mingw-w64.sourceforge.net/ )
So what I am asking is that, how do you build MinGW W64? ( http://mingw-w64.sourceforge.net/ )
如果我学会了如何构建 MinGW W64,我想我将能够在没有任何帮助的情况下构建其他东西.我不知道要安装哪些文件来安装 MinGW W64.我所知道的是我需要来自 (http://gcc.gnu.org/) .
If I learn how to build MinGW W64, I think I will be able to build other things without any help. I don't know what files to get to install MinGW W64. All I know is that I need gcc (for C) and g++ (for C++) from (http://gcc.gnu.org/) .
是的,我知道,我可以从 http://www.mingw.org/ 安装 MinGW但是他们的 gcc 版本已经过时了,如果我学会了如何构建这些东西,这将是一个很好的学习技能.(将来甚至可能会有所帮助)
Yes, I know, I could just install MinGW from http://www.mingw.org/ but their gcc versions are out of date and it would be a nice skill to learn if I learnt how to build these kind of things. (Might even help in the future)
如果有帮助,我的操作系统是 Windows 7.
If it helps, my operating system is Windows 7.
谢谢各位.(如果可能的话,您能否就如何构建它进行分步指南并告诉我要获取哪些文件.如果您想帮助像我这样的菜鸟,最好提供链接文件.)
Thanks guys. (If possible, can you make a step by step guide on how to build it and tell me what files to get. And if you feel like you want to help a noob out like me, it'd be nice to give the links to the files.)
推荐答案
TDM-GCC 4.6.1 (GCC/MinGW/MinGW-w64 用于 32 位和 64 位 Windows 的编译器套件)是在 64 位 Windows 7 上使用 MinGW &MSYS.源代码分发 提供 GCC、所有支持库和 .sh 脚本文件,它们使用适当的参数调用 Makefile.
TDM-GCC 4.6.1 (GCC / MinGW / MinGW-w64 compiler suite for 32- and 64-bit Windows) was built on Windows 7 64-bit using MinGW & MSYS. The source distribution provide GCC, all support libraries and .sh script files that invoke the Makefile with appropriate arguments.
构建注释(TDM Sources/README-gcc-tdm-src.txt) :
Building the TDM edition typically looks like this:
* [Extract all sources to /crossdev/src]
* [Copy or build a previous MinGW installation to a "build root"]
* [Ensure the prefix ("/mingw") is empty]
* [Ensure the buildroot's "bin" directory is in PATH]
* ./build-tdm-[dw2/sjlj].sh support-libs prefix
* [Copy everything from the prefix to the "build root"]
* [Extract the binutils, mingwrt, and w32api bin/dev packages to the prefix]
* ./build-tdm-[dw2/sjlj].sh gcc
这篇关于如何构建 MinGW W64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!