Wine HQ

  WineHQ Menu
  WineHQ
  AppDB
  Bugzilla
  Wine Wiki
  Wine Forums
  About
  Introduction
  Features
  Screenshots
  Contributing
  News Blog
  World Wine News
  Press
  License
  Download
  Get Wine Now
  Support
  Getting Help
  FAQ
  Documentation
  HowTo
  Live Support Chat
  Paid Support
  Development
  Developers Guide
  Mailing Lists
  GIT
  Sending Patches
  To Do Lists
  Fun Projects
  Janitorial
  Winelib
  Status
  Resources
  WineConf
  Languages
English English
Español Español
  Search WineHQ

Cross-compiling the tests with MinGW

5.4. Cross-compiling the tests with MinGW

5.4.1. Setup of the MinGW cross-compiling environment

Here are some instructions to setup MinGW on different Linux distributions and *BSD.

5.4.1.1. Debian GNU/Linux

On Debian do apt-get install mingw32.

The standard MinGW libraries will probably be incomplete, causing 'undefined symbol' errors. So get the latest mingw-w32api RPM and use alien to either convert it to a .tar.gz file from which to extract just the relevant files, or to convert it to a Debian package that you will install.

5.4.1.2. Red Hat Linux like rpm systems

This includes Fedora Core, Red Hat Enterprise Linux, Mandrake, most probably SuSE Linux too, etc. But this list isn't exhaustive; the following steps should probably work on any rpm based system.

Download and install the latest rpm's from MinGW RPM packages. Alternatively you can follow the instructions on that page and build your own packages from the source rpm's listed there as well.

5.4.1.3. *BSD

The *BSD systems have in their ports collection a port for the MinGW cross-compiling environment. Please see the documentation of your system about how to build and install a port.

5.4.2. Compiling the tests

Having the cross-compiling environment set up the generation of the Windows executables is easy by using the Wine build system.

If you had already run configure, then delete config.cache and re-run configure. You can then run make crosstest. To sum up:

$ rm config.cache
$ ./configure
$ make crosstest