How to build the environment of MSYS for the crossing compiler?

37 篇文章 0 订阅
32 篇文章 0 订阅

How to build the environment of MSYS for the crossing compiler?

 

[Build MSYS root folder]

 

[1. Create cross-compiler folder in your proper path]

[2. Download msysCORE-1.0.11-20080826.tar.gz and extract it into cross-compiler folder]

[3. Download coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2  and extract it into cross-compiler folder]

[4. Download bash-3.1-MSYS-1.0.11-1.tar.bz2 and extract it into cross-compiler folder]

[5. Download perl-5.6.1-MSYS-1.0.11-1.tar.bz2   and extract into to cross-compiler folder]

[6. Downloadcrypt-1.1-1-MSYS-1.0.11-1.tar.bz2 and extract into cross-compiler folder

[7. Create mingw sub-folder]

[8. Copy /etc/fstab.sample into /etc/fstab and map XXX/cross-compiler/mingw to /mingw ]

[9. Edit /msys.bat and add call "XXX/VC/bin/vcvars32.bat" in the beginning position]

[10. Download m4-1.4.13.tar.gz and install it into "/"]


[Build MINGW sub-folder]

 

[1. Download mingwrt-3.15.2-mingw32-dev.tar.gz and extract it into mingw folder]

[2. Download w32api-3.13-mingw32-dev.tar.gz  and extract it into mingw folder]

[3. Download gcc-4.3.0-20080502-mingw32-alpha-bin.tar.gz and extract it into mingw folder]

[4. Download flex-2.5.33-MSYS-1.0.11-1.tar.bz2 and extract it into mingw folder]

[5. Download zlib-1.2.3-MSYS-1.0.11-1.tar.bz2 and extract it into mingw folder]. If readers don't like depending on msy-z.dll, msys-1.0.dll for programs using zlib, please download source codes of zlib to 'make install' in the http://www.zlib.net/ website.

[6. Download autoconf-2.61-MSYS-1.0.11-1.tar.bz2 and extract it into mingw folder ]

[7. Download mingw-install-20060210.tar.gz and extract automake-1.9.6-20050907-1.tar.gz into mingw folder ]

[8. Download bison-2.3-MSYS-1.0.11-1.tar.bz2 and extract it into mingw folder]

 

[9. Download gettext-0.16.1-1-bin.tar.bz2 and extract it into mingw folder]

[10. Download libiconv-1.11-MSYS-1.0.11-1.tar.bz2 and extract it into mingw folder]

[11. Download libtool1.5-1.5.25a-20070701-MSYS-1.0.11-1.tar.bz2 and extract it into mingw folder]

[12. Download regex-0.12-MSYS-1.0.11-1.tar.bz2 and extract it into mingw folder]

[13. Download pthread and copy pthread.h, sched.h, semaphore.h into /mingw/include; copy pthreadGC2.dll into /mingw/bin; copy libpthreadGC2.a into /mingw/lib/libpthread.a]

[14. Download binutils-2.19.1-mingw32-bin.tar.gz  and extract it into mingw folder]

[15. Download pkg-config_0.23-3_win32.zip and extract it into mingw folder ]

[16. Download glib_2.20.4-1_win32.zip and extract bin/libglib-2.0-0.dll into mingw/bin folder ]

[17. Download moztools-static.zip , and extract moztools/bin/nsinstall.exe into mingw/bin folder ]

 

[Build GMP and MPFR sub-folders]

 

[1. Download gmp-4.2.4.tar.gz and extract it into cross-compiler folder]

[2. Download mpfr-2.4.1.tar.bz2 and extract it into cross-compiler folder]

 

If readers do not like compiling them by themselves, please download them

mingw32-gmp-4.2.4-2 and mingw32-mpfr-2.3.2-2 .

Moreover, the related updates can be found in the webpage: http://sourceforge.net/project/showfiles.php?group_id=204414

 

[Build YASM sub-folder]

 

[1. Download yasm-0.8.0.tar.gz and extract it into cross-compiler folder]

 

[Build NASM sub-folder]

 

[1. Download nasm-2.06rc1.tar.bz2 and extract it into cross-compiler folder]

 

[Summarization]

 

1. It only focuses on how to build the environment. Please refer to “How to build the GCC-4.3.3 in MinGW?

2. Some packages of MSYS and MinGW are not the latest version. If readers make full use of them, please update the related tool-chains at the same time, otherwise the environment maybe has risks.

 

[Appendix: Troubleshoot]

1. How to compile SDL in MINGW?

2. How to update YASM from 0.7.2 to 0.8.0 in MinGW?

3. How to compile and install external libs of FFMPEG?



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值