1. 安装mingw(搜索mingw for windows)过程

https://blog.csdn.net/fuyanhuangyan/article/details/78671042

https://www.cnblogs.com/fortunely/p/11421548.html

2. 安装mingw(搜索mingw for windows)遇到的问题

https://www.cnblogs.com/flyinggod/p/8049051.html

 

install: gdb-7.6.1-1-mingw32-bin.tar.lzma
mingw-get: *** ERROR *** required package file is not available
mingw-get: *** ERROR *** cannot install gdb-7.6.1-1-mingw32-bin.tar.lzma
mingw-get: *** ERROR *** due to previous download failure
install: make-3.82.90-2-mingw32-cvs-20120902-bin.tar.lzma
mingw-get: *** ERROR *** required package file is not available
mingw-get: *** ERROR *** cannot install make-3.82.90-2-mingw32-cvs-20120902-bin.tar.lzma
mingw-get: *** ERROR *** due to previous download failure
remove: mingw32-base-2013072200-mingw32-bin.meta
 removing release mingw32-base-2013072200-mingw32-bin.meta

(1)

安装过程中可能会出现下面两个文件错误

make-3.82.90-2-mingw32-cvs-20120902-bin.tar.lzma

gdb-7.6.1-1-mingw32-bin.tar.lzma
出现上述包下载失败信息,到下面到地址去找对应到压缩文件,下载地址
https://sourceforge.net/projects/mingw/files/
去该网址中找到扩展,然后搜索下载失败到包,下载包后,将包解压后,把bin目录下的文件复制到安装MInGW到bin目录下
https://sourceforge.net/projects/mingw/files/MinGW/Extension/make/

 

https://sourceforge.net/projects/mingw/files/MinGW/Extension/gdb/gdb-7.6.1-1/gdb-7.6.1-1-mingw32-bin.tar.lzma/download

https://sourceforge.net/projects/mingw/files/MinGW/Extension/make/make-3.82.90-cvs/make-3.82.90-2-mingw32-cvs-20120902-bin.tar.lzma/download

==>

放置到/MinGW/mingw/bin即可,同时将这个路径添加到PATH

(2)

lzma解压即可

 

 

 

GDB的bin目录文件,有了下面文件可以进入gdb模式调试

Make的bin目录文件,可以使用Make编译makefile文件

 

3. 验证

 

 

 

4. 解压qt-everywhere-opensource-src-4.8.1.tar.gz并进入目录

configure -debug-and-release -opensource -platform win32-g++ -webkit  
#(如果需要重新configure,运行mingw32-make confclean,然后重新configure)
#如果想使用VS的编译器,就指定-platform win32-msvc2013(VS2013版本)
mingw32-make(如果是VS就是nmake,需要在VS2013开发人员命令提示中使用)
#如果指定了prefix路径输入:mingw32-make install

 

posted on 2020-05-31 18:24  刘达人186  阅读(2497)  评论(0编辑  收藏  举报