mingw64 安装报错 if the mingw-w64 header set and the build/host option are set properly
1.错误信息
configure: error: Please check if the mingw-w64 header set and the build/host option are set properly.
configure: error: ../../../svn/mingw-w64-v6615-2014-05-07/mingw-w64-crt/configure failed for mingw-w64-crt
2. 解决办法
https://github.com/Zeranoe/mingw-w64-build
./mingw-w64-build --help #查看安装信息
examples:
mingw-w64-build i686 #32位
mingw-w64-build x86_64 #64位
mingw-w64-build i686 x86_64 #32 64通用
3. 看了一眼这个文件里的shell代码
首先:
官方的安装要求的依赖要安装好:第72行
其次:
配置 …/mingw-w64-v8.0.0/mingw-w64-headers/configure
配置…/mingw-w64-v8.0.0/mingw-w64-crt/configure
配置…/mingw-w64-v8.0.0/mingw-w64-libraries/winpthreads/configure
最后配置 …/mingw-w64-v8.0.0/configure
不过我没有试,执行了脚本就解决问题了。
P.S. …/mingw-w64-v8.0.0/bin 里边就是需要的编译工具,名字有点长。如果环境变量里没有,就在/etc/profile里自己手动添加吧。