How to use MinGW Cross Compiler on Fedora

Required environment on your Fedora

Minimum environment required for MinGW Cross Compile on Fedora is:

  • mingw32-binutils
  • mingw32-cpp
  • mingw32-filesystem
  • mingw32-gcc
  • mingw32-gcc-c++
  • mingw32-runtime
  • mingw32-w32api

These packages above can be obtained from Fedora 10 repository. You can install these by typing in the following:

$ su
Password:
$ yum install mingw32-/*

Primary RPM repositries of Fedora/MinGW are:

In this site, some particular packages are covered as well as rebuild version of RPM/SRPMs found in Fedora development FTP site.

Also, it would be better to install tools related to development software. If you don't have all of typical development tools on your system, please install these tools by typing in the followings:

$ su
Password:
$ yum groupinstall "Development Tools"

Go to top

Configure Wine for MinGW Cross Compile environment

Wine is used for executing Win32 .exe files generated by MinGW Cross Compile environment. If you don't have Wine on your Linux, installing Wine is strongly recommended. To do this, just typing in the followings:

$ su
Password:
$ yum install wine

First of all, you need to set the path to DLLs of the MinGW Cross Compile environment on Wine. When you execute Wine at the first time, such like 'wine cmd', default setting files are automatically generated in $HOME/.wine.

figure : Wine executed at the first time

For modifying PATH variable on Wine, please refer the following site:

Or, you can modify registry of Wine by regedit.

$ regedit &

Go to top

Related Links
  1. MinGW - FedoraProject
  2. WineHQ - Run Windows applications on Linux, BSD and Mac OS X
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值