The University of Queensland Homepage
UQ VisLab UQ VisLab

 Building WINE for XAP400 Configuration with Linux
This document describes the steps to build WINE for use with the ClearOne echo canceller setup tool G-Ware under Linux. It was prepared by Chris Willing (c.willing (at) uq.edu.au) based on the work of visiting student, Cihan Altinay.

1. Background

    The most recent versions of Wine don't work as needed for this project (there are problems dealing with serial port). Although we therefore provide binary packages of Wine, agwine, for a number of Linux distributions with the required modifications already built in, a patched can be built from source code.

    The binary packages and instructions currently available are for:


  • If building from source code, this patch is needed for G-Ware run correctly under wine. This patch was originally made against wine-0.9.44 but will probably apply to other recent versions in the 0.9.xx series.
  • It will not work with source code for wine version 1.0 or greater!
  • It is not needed if installing one of the binary packages listed above.

2. Building from source code

Skip this section if one of the binary packages has been installed

It is well known that having more than one wine version installed causes REAL trouble. So before going ahead uninstall any wine version that might exist on your system (check that the /usr/[,local/]lib/wine directory does not exist) unless it is a recent CVS version. Now change into the wine source directory and apply the wine_gware patch
patch -Np0 -i /path/to/patch-dlls_ntdll_serial.c
Then issue
./tools/wineinstall
to build and install wine. The default prefix is /usr/local. If that doesn't suit you you can edit the scripts in the tools directory BEFORE running wineinstall.

Confirming that you wish to install wine after the build process you may grab some food and a video as suggested and wait for wine to be compiled and installed. As a last step the installer will run wineprefixcreate to create the needed directory structure under ~/.wine including a fake 'C: drive' and cache font metrics.

Should you have the truetype fonts installed for X you can make wine use those instead of installing duplicates. Go into the ~/.wine/drive_c/windows/fonts folder and issue
ln -s /path/to/X-fonts/TTF/*.ttf
Otherwise install the downloaded fonts using
wine arial32.exe
wine courie32.exe
If you want to use the fonts from a Windows installation copy the appropriate files from the windows/fonts directory over into the ~/.wine/drive_c/windows/fonts directory


3. Configuration, installing & running GWare

Once the modified wine has been build and installed, configuration etc. is exactly the same as following a binary package installation (configuration details).


Last modified: 30/1/2009 by Chris Willing (c.willing (at) uq.edu.au)