Provided that you have Wine installed on Linux, you can follow these steps to build Abiword for your windows.
(1) Install mingw. On ubuntu you need the packages mingw32, mingw32-binutils and mingw32-runtime
sudo apt-get install mingw32
This will install mingw32 with the other two (mingw32-binutils and mingw32-runtime) dependencies.
(2) Get all the dependencies in place. Robert Staudinger has packed them and made them available here.
If this file is moved to somewhere else, when you are trying, you can alternatively download it here.
Now unpack it in /opt.
You will get /opt/win32 as base dir for the win32 stuff.
(3) At the time of writing, I faced some problem in src/af/xap/xp/xap_Module.h
The issue is solved here.
An update (May 10th 2009): This issue is resolved now in the trunk.
(4) Now use the commands:
1. source /opt/win32/bin/mingw-env.sh
Go to to source tree and run
2. CPPFLAGS="-I/opt/win32/include" ./autogen.sh --prefix=/opt/abiword --host=i686-pc-linux-gnuaout --target=i586-mingw32msvc
*** when cross-building with robsta's pack if it demands for libtool, automake, or fribidi, a sudo apt-get install of these three will solve the issue (for Ubuntu).
(5) abiword.exe will end up in src/. You need to copy it to /opt/win32/bin
to run it under wine, or alternatively copy all the required DLLs to
(6) Now you can take the directory containing abiword.exe to your windows machine to run Abiword.exe, which you have built just now!
The Original Research by Robert Staudinger can be found