MinGW 安装和常见库编译


安装程序

https://sourceforge.net/projects/mingw/files/Installer/

Installing MinGW and MSYS

  1. Download and run mingw-get-inst  
  2. Select "Use pre-packaged repository catalogues".
  3. Review and accept the License agreement.
  4. Please note that MinGW should be installed to a directory path that doesn't contain any spaces. This method has been tested with a directory path of C:\MinGW.
  5. Select C++ Compiler and MSYS Basic System as optional components.
  6. Wait until every package has been downloaded and installation is finished.

Setting up MSYS

Go to your MSYS folder (found at <MinGW installation folder>\msys\1.0, C:\MinGW\msys\1.0 in this example), 

open etc\fstab with a text editor (for example Notepad) and add the following line at the end of the file:

C:\MinGW\   /MinGW
C:\MinGW\   /usr/local


启动 MSYS

 msys.bat

mingw-get install msys-wget
mingw-get install msys-unzip
mingw-get install msys-patch

====================================================================================================================================

Libraries



ZLIB

Compiling zlib uses a slightly different process. 

make -f win32/Makefile.gccBINARY_PATH=/mingw/bin INCLUDE_PATH=/mingw/include LIBRARY_PATH=/mingw/lib 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值