linux---mingw

www.mingw.org

MinGW cross compiling environment.

Step 1: Download and Unpack
        #git clone -b stable https://github.com/mxe/mxe.git

Step 2: System-wide Installation (optional)
         保证在/opt/mxe  下安装
        #su
        #mv /opt/mxe /opt/mxe.old
        #exit

        #su
        #mv mxe /opt/mxe
        #exit

Step 3: Build MXE
        #make

        #make gcc glib gtk+-2.0 ---- (#make gtk lua libidn)

Step 4: Environment Variables
        #vim ~/.bashrc  $PATH的导入
        export PATH=/where MXE is installed/usr/bin:$PATH
        export PKG_CONFIG_PATH="entries for native builds"
        export PKG_CONFIG_PATH_i686_pc_mingw32="entries for MXE builds



If you have a handwritten Makefile, you probably will have to make a few adjustments to it:

CC=$(CROSS)gcc
LD=$(CROSS)ld
AR=$(CROSS)ar
PKG_CONFIG=$(CROSS)pkg-config


make CROSS=i686-pc-mingw32-


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值