mingw-w64-3.10-osx10.9.sh,uninstall-macports.sh,Build NSIS on OSX
https://gist.github.com/artynet/188bb34cfc94acdb554d283a3502770a
--cross-compile-prefix=i686-w64-mingw32- mingw BUILD nsis v2. on OSX >= 10.9 scons PREFIX=/Users/arturo/Programmi/nsis-2.46 ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.-win32-x86 \
STRIP=no install-stubs install-plugins install-data install-utils install-examples install-doc install-conf scons APPEND_CCFLAGS=--stdlib=libstdc++ APPEND_LINKFLAGS=--stdlib=libstdc++ \
PREFIX=/Users/arturo/Programmi/nsis-2.46 ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.-win32-x86 \
STRIP=no install-compiler scons PREFIX=/Users/arturo/Programmi/nsis-2.46 ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.-win32-x86 \
STRIP=no VERSION=2.46 install scons PREFIX=/Users/arturo/Programmi/nsis- ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.-win32-x86 \
STRIP=no VERSION=3.0 install scons PREFIX=/Users/arturo/Programmi/nsis- ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.-win32-x86 \
STRIP=no VERSION=3.01 install scons PREFIX=/Users/arturo/Programmi/nsis- ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.-win32-x86 STRIP=no VERSION=3.01 install ------------------------------------------------------------------------------------------------------------------------------------- BUILD ZLIB 1.2. #!/bin/bash PREFIXDIR=$HOME/Programmi/Zlib-1.2.-win32-x86 make -f win32/Makefile.gcc BINARY_PATH=$PREFIXDIR/bin INCLUDE_PATH=$PREFIXDIR/include LIBRARY_PATH=$PREFIXDIR/lib SHARED_MODE= PREFIX=i686-w64-mingw32- install
mingw-w64-3.10-osx10.9.sh
#!/bin/sh # dependencies echo "Installing dependencies via Homebrew (http://brew.sh)" ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew update brew install gcc48
brew install wget # mingw PREFIX="/usr/local/mingw"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR mkdir source
mkdir $PREFIX echo "Downloading binutils\n" cd ./source
curl -O http://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.bz2
tar xjf binutils-2.24.tar.bz2 echo "Building binutils\n"
echo "1/2 32-bit\n" cd binutils-2.24
mkdir build
cd build CC=gcc-4.8 CXX=g++-4.8 CPP=cpp-4.8 LD=gcc-4.8 ../configure --target=i686-w64-mingw32 --disable-werror --disable-multilib --prefix=$PREFIX --with-sysroot=$PREFIX
make -j4
make install-strip echo "2/2 64-bit\n"
cd ..
rm -rf build
mkdir build
cd build CC=gcc-4.8 CXX=g++-4.8 CPP=cpp-4.8 LD=gcc-4.8 ../configure --target=x86_64-w64-mingw32 --disable-werror --disable-multilib --prefix=$PREFIX --with-sysroot=$PREFIX --enable--bit-bfd
make -j4
make install-strip cd ..
cd .. echo "Downloading mingw-w64\n" wget -O mingw-w64-v3.1.0.tar.bz2 "http://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v3.1.0.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmingw-w64%2Ffiles%2Fmingw-w64%2Fmingw-w64-release%2F&ts=1396199899&use_mirror=kent"
tar xjf mingw-w64-v3.1.0.tar.bz2 echo "Building mingw-headers\n" echo "1/2 32-bit\n" cd mingw-w64-v3.1.0
mkdir build-headers
cd build-headers ../mingw-w64-headers/configure --host=i686-w64-mingw32 --prefix=$PREFIX/i686-w64-mingw32
make -j4
make install-strip cd $PREFIX/i686-w64-mingw32
ln -s lib lib32
cd $DIR/source/mingw-w64-v3.1.0 echo "2/2 64-bit\n"
rm -rf build-headers
mkdir build-headers
cd build-headers ../mingw-w64-headers/configure --host=x86_64-w64-mingw32 --prefix=$PREFIX/x86_64-w64-mingw32
make -j4
make install-strip cd $PREFIX/x86_64-w64-mingw32
ln -s lib lib64
cd $DIR/source/ echo "Downloading gcc\n" curl -O ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.8.2/gcc-4.8.2.tar.bz2
tar xjf gcc-4.8..tar.bz2 echo "Building core gcc\n" echo "1/2 32-bit\n" cd $PREFIX
ln -s i686-w64-mingw32 mingw cd $DIR/source/gcc-4.8.
mkdir build32
cd build32 CC=gcc-4.8 CXX=g++-4.8 CPP=cpp-4.8 LD=gcc-4.8 PATH=/usr/local/mingw/bin/:$PATH ../configure --target=i686-w64-mingw32 --disable-multilib --enable-languages=c,c++,objc,obj-c++ --with-gmp=/usr/local/Cellar/gmp4/4.3./ --with-mpfr=/usr/local/Cellar/mpfr2/2.4./ --with-mpc=/usr/local/Cellar/libmpc08/0.8./ --with-cloog=/usr/local/Cellar/cloog018/0.18./ --with-isl=/usr/local/Cellar/isl011/0.11./ --with-system-zlib --enable-version-specific-runtime-libs --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --enable-threads=win32 --disable-sjlj-exceptions --prefix=$PREFIX --with-sysroot=$PREFIX PATH=/usr/local/mingw/bin/:$PATH make all-gcc -j4
PATH=/usr/local/mingw/bin/:$PATH make install-gcc echo "2/2 64-bit\n" cd $PREFIX
rm mingw
ln -s x86_64-w64-mingw32 mingw cd $DIR/source/gcc-4.8.
mkdir build64
cd build64 CC=gcc-4.8 CXX=g++-4.8 CPP=cpp-4.8 LD=gcc-4.8 PATH=/usr/local/mingw/bin/:$PATH ../configure --target=x86_64-w64-mingw32 --disable-multilib --enable-languages=c,c++,objc,obj-c++ --with-gmp=/usr/local/Cellar/gmp4/4.3./ --with-mpfr=/usr/local/Cellar/mpfr2/2.4./ --with-mpc=/usr/local/Cellar/libmpc08/0.8./ --with-cloog=/usr/local/Cellar/cloog018/0.18./ --with-isl=/usr/local/Cellar/isl011/0.11./ --with-system-zlib --enable-version-specific-runtime-libs --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --enable-threads=win32 --prefix=$PREFIX --with-sysroot=$PREFIX PATH=/usr/local/mingw/bin/:$PATH make all-gcc -j4
PATH=/usr/local/mingw/bin/:$PATH make install-gcc echo "Building mingw runtime\n" cd $PREFIX
rm mingw
ln -s i686-w64-mingw32 mingw cd $DIR/source/mingw-w64-v3.1.0
mkdir build-crt
cd build-crt echo "1/2 32-Bit\n" PATH=/usr/local/mingw/bin/:$PATH ../mingw-w64-crt/configure --host=i686-w64-mingw32 --prefix=$PREFIX/i686-w64-mingw32 --with-sysroot=$PREFIX PATH=/usr/local/mingw/bin/:$PATH make
PATH=/usr/local/mingw/bin/:$PATH make install-strip echo "2/2 64-Bit\n" cd $PREFIX
rm mingw
ln -s x86_64-w64-mingw32 mingw cd $DIR/source/mingw-w64-v3.1.0
rm -rf build-crt
mkdir build-crt
cd build-crt PATH=/usr/local/mingw/bin/:$PATH ../mingw-w64-crt/configure --host=x86_64-w64-mingw32 --prefix=$PREFIX/x86_64-w64-mingw32 --with-sysroot=$PREFIX PATH=/usr/local/mingw/bin/:$PATH make
PATH=/usr/local/mingw/bin/:$PATH make install-strip echo "Building all gcc\n" echo "1/2 32-Bit\n" cd $PREFIX
rm mingw
ln -s i686-w64-mingw32 mingw cd $DIR/source/gcc-4.8./build32 PATH=/usr/local/mingw/bin/:$PATH make
PATH=/usr/local/mingw/bin/:$PATH make install-strip echo "2/2 64-Bit\n" cd $PREFIX
rm mingw
ln -s x86_64-w64-mingw32 mingw cd $DIR/source/gcc-4.8./build64 PATH=/usr/local/mingw/bin/:$PATH make
PATH=/usr/local/mingw/bin/:$PATH make install-strip echo "Linking libgcc\n" cd $PREFIX/i686-w64-mingw32/lib
ln -s ../../lib/gcc/i686-w64-mingw32/lib/libgcc_s.a ./ cd $PREFIX/x86_64-w64-mingw32/lib
ln -s ../../lib/gcc/x86_64-w64-mingw32/lib/libgcc_s.a ./ echo "Building winpthreads\n" cd $DIR/source/mingw-w64-v3.1.0/mingw-w64-libraries/winpthreads echo "1/2 32-Bit\n" mkdir build
cd build ../configure --host=i686-w64-mingw32 --prefix=$PREFIX/i686-w64-mingw32
make
make install-strip cd ..
rm -rf build echo "2/2 64-Bit\n" mkdir build
cd build ../configure --host=x86_64-w64-mingw32 --prefix=$PREFIX/x86_64-w64-mingw32
make
make install-strip echo "Cleaning up\n" cd $DIR
rm -rf source echo "Done"
uninstall-macports.sh
#!/bin/bash sudo rm -rvf \
/opt/local \
/Applications/DarwinPorts \
/Applications/MacPorts \
/Library/LaunchDaemons/org.macports.* \
/Library/Receipts/DarwinPorts*.pkg \
/Library/Receipts/MacPorts*.pkg \
/Library/StartupItems/DarwinPortsStartup \
/Library/Tcl/darwinports1. \
/Library/Tcl/macports1. \
~/.macports
mingw-w64-3.10-osx10.9.sh,uninstall-macports.sh,Build NSIS on OSX的更多相关文章
- Linux执行Cron Job失败,在Shell sh下执行却能成功 - 环境变量?
博客分类: Linux linuxcrontabpermissionetc/profile环境变量 一.我们常常碰到在shell下执行某个命令能够成功,比如执行一个java程序: java -jar ...
- #题目:有10 台被监控主机、一台监控机,在监控机上编写脚本,一旦某台被监控机器/ 分区适用率大于80%, 就发邮件报警放到crontab 里面, 每10 分钟检查一次
#题目:有10 台被监控主机.一台监控机,在监控机上编写脚本,一旦某台被监控机器/ 分区适用率大于80%, 就发邮件报警放到crontab 里面, 每10 分钟检查一次 #测试机器:虚拟机Linux ...
- 2018.10.9 上线发现elasticsearch写入速度超级慢,原来罪魁祸首是阿里云服务的OSS的锅
问题描述: 按照项目计划,今天上线部署日志系统(收集线上的所有日志,便于问题排查). 运维按照以前的部署过程,部署elasticsearch,部署结束之后,通过x-pack的monitor发现elas ...
- 在Linux下使用MinGW静态交叉编译带有zlib的libcurl(包括交叉编译openssl,即--cross-compile-prefix=i686-w64-mingw32- mingw)
在Linux下使用MinGW静态交叉编译带有zlib的libcurl libcurl是一个跨平台的.易用的.强大的网络库.在大部分Linux发行版中都有编译好的二进制包可供使用,Mac系统更是将其作为 ...
- linux shell编程,先等10秒再判断是否有进程存在,存在就再等10秒再杀了进程才运行
linux shell编程,先等10秒再判断是否有进程存在,存在就再等10秒再杀了进程才运行 crontab每分钟执行一次,但5秒以上才有更新数据,有时候一分钟可能跑不完上一个进程,需要先等10秒再判 ...
- mingw w64的下载地址
mingw w64的下载地址,官网下载看得太晕.直接记下下载链接. https://sourceforge.net/projects/mingw-w64/ i686纯32位版供32位win系统使用.x ...
- Ubuntu P40显卡配置CUDA 10.1,CUDNN 7.6,Conda 5.2.0, Tensorflow-gpu 1.8
1. 安装CUDA 禁用nouveau vim /etc/modprobe.d/blacklist.conf 最后两行加入 blacklist nouveau options nouveau mode ...
- 分享10条PHP性能优化的小技巧,帮助你更好的用PHP开发:
1. foreach效率更高,尽量用foreach代替while和for循环. 2. 循环内部不要声明变量,尤其是对象这样的变量. 3. 在多重嵌套循环中,如有可能,应当将最长的循环放在内层,最短循环 ...
- iOS 10 的坑:新机首次安装 app,请求网络权限“是否允许使用数据”(转)
症状 iOS 10 之后,陆陆续续地有用户联系我们,说新机第一次安装.第一次启动的时候,app 首屏一片空白,完全没数据.kill 掉重新打开就好了. 一开始以为是用户网络情况不好,但随着越来越多的用 ...
随机推荐
- css3-11 如何实现2D动画
css3-11 如何实现2D动画 一.总结 一句话总结:就是transform属性,属性值为1.translate() 2.rotate() 3.scale(),而这是哪个属性值是带参数的 ...
- thinkphp5 tp5 七牛云 上传图片
七牛sdk地址https://files.cnblogs.com/files/zonglonglong/qiniu-php-sdk-7.2.2.rar 首先下载php的sdk将文件夹放到vendor ...
- Bluetooth---初步了解Android 蓝牙4.0
http://developer.android.com/reference/android/bluetooth/package-summary.html android.bluttooth 提供管理 ...
- 【26.8%】【CF 46D】Parking Lot
time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standa ...
- LSH︱python实现局部敏感随机投影森林——LSHForest/sklearn(一)
关于局部敏感哈希算法.之前用R语言实现过,可是由于在R中效能太低.于是放弃用LSH来做类似性检索.学了python发现非常多模块都能实现,并且通过随机投影森林让查询数据更快.觉得能够试试大规模应用在数 ...
- thinkphp5多级控制器是什么?怎么使用?
thinkphp5多级控制器是什么?怎么使用? 一.总结 1.多级控制器是让控制器的级数变成多级,也就是controller目录下可以新建其它目录. 2.使用的话注意目录下的控制的的命名空间(加上目录 ...
- Android 多个Fragment嵌套导致的三大BUG
Android有碎片化的问题,当然本文说的碎片化不是指的系统版本碎片化的问题,而是Fragment组件碎片化的问题. 很久之前,在Android 3.1系统发布的时候,Google推出了使用Fragm ...
- 【v2.x OGE-example 第一节】 绘制实体
前言: OGE即 OGEngine,是由橙子游戏开发的基于Java支持跨平台的开源游戏引,从12年4月项目成立至今已经有2年多的发展历程.在此期间基于OGEngine开发的项目已经有非常多成功投放市场 ...
- 高性能分布式应用开发中间件ICE介绍
作为一个技术人员,你是否在为不断增长的数据量和日益复杂的业务逻辑而头疼不已,杂乱堆砌在一起的庞大业务让系统越来越脆弱,于是你想到了网格,想到了利用分布式来重组一个健壮的系统架构. 随后,RMI,EJB ...
- vue-router设置页面标题
通过vue-router设置页面标题 const router = new Router({ routes: [ { path: '/', name: 'EntryConfirmation', met ...