CGWIN+CLIon+交叉编译/mingwinw配置

http://mirrors.163.com/.help/cygwin.html

http://mirrors.163.com/cygwin/

官方包

http://www.cygwin.com/

选择文件

xxx
image.png

https://blog.csdn.net/qq_36819130/article/details/78668249

识别linux命令

D:\cygwin64\bin

添加到环境变量

Download cygwin-debuginfo 2.10.0-1 (automatically added)
Download gcc-core 7.3.0-1
Download gcc-debuginfo 7.3.0-3
Download gcc-g++ 7.3.0-1
Download gdb 7.12.1-2
Download libcrypt0 2.1-1 (automatically added)
Download libdb5.3 5.3.28-2 (automatically added)
Download libmpfr4 3.1.6-1p1 (automatically added)
Download libuuid-devel 2.25.2-2 (automatically added)
Download python2 2.7.14-1 (automatically added)
Download util-linux 2.25.2-2

如果忘记安装了,选择第二个选项下载东西,选择第三个从本地安装。第三个本地路径就是第一次安装选择的路径。

image.png

如果还需要下载,则再次打开安装包选择without instaling

cgwin比较麻烦,要下载很多东西而且问题比较多

image.png
image.png

mingw就比较简单了。

http://mingw-w64.org/doku.php/download/mingw-builds
window版本直接下载地址http://win-builds.org/doku.php

arm+mingw配置

image.png

mingw配置

xx

新版mingw下载界面

image.png
-- The CXX compiler identification is GNU 7.3.0
CMake Warning at /usr/share/cmake-3.6.2/Modules/Platform/CYGWIN.cmake:15 (message):
  CMake no longer defines WIN32 on Cygwin!

  (1) If you are just trying to build this project, ignore this warning or
  quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
  the CMake cache.  If later configuration or build errors occur then this
  project may have been written under the assumption that Cygwin is WIN32.
  In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.

  (2) If you are developing this project, add the line

    set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required

  at the top of your top-level CMakeLists.txt file or set the minimum
  required version of CMake to 2.8.4 or higher.  Then teach your project to
  build on Cygwin without WIN32.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值