Crossbuilding AbiWord for Win32
From AbiWiki
(New page: == Introduction == Abiword for windows can be built on a Linux computer using cross-building. Cross-building has been tested using Ubuntu 8.04/9.04 and Wine. Provided that you have Wine in...) |
(→Building) |
||
Line 2: | Line 2: | ||
Abiword for windows can be built on a Linux computer using cross-building. Cross-building has been tested using Ubuntu 8.04/9.04 and Wine. Provided that you have Wine installed on Linux, you can follow these steps to build Abiword for your windows. | Abiword for windows can be built on a Linux computer using cross-building. Cross-building has been tested using Ubuntu 8.04/9.04 and Wine. Provided that you have Wine installed on Linux, you can follow these steps to build Abiword for your windows. | ||
- | == Building == | + | == Getting the source tree == |
+ | Checkout the branch | ||
+ | |||
+ | http://svn.abisource.com/abiword/branches/gsoc2009unicode/ | ||
+ | |||
+ | This branch is currently under development. In case if you face any issue cross-building this branch, you may check out the trunk. But you will have to do a minor change for cross-compiling. | ||
+ | |||
+ | http://www.abisource.com/mailinglists/abiword-dev/2009/Apr/0012.html | ||
+ | |||
+ | |||
+ | == Cross Building == | ||
* Install mingw. On ubuntu you need the packages mingw32, mingw32-binutils and mingw32-runtime | * Install mingw. On ubuntu you need the packages mingw32, mingw32-binutils and mingw32-runtime | ||
sudo apt-get install mingw32 | sudo apt-get install mingw32 |
Revision as of 21:46, 4 May 2009
Contents |
Introduction
Abiword for windows can be built on a Linux computer using cross-building. Cross-building has been tested using Ubuntu 8.04/9.04 and Wine. Provided that you have Wine installed on Linux, you can follow these steps to build Abiword for your windows.
Getting the source tree
Checkout the branch
http://svn.abisource.com/abiword/branches/gsoc2009unicode/
This branch is currently under development. In case if you face any issue cross-building this branch, you may check out the trunk. But you will have to do a minor change for cross-compiling.
http://www.abisource.com/mailinglists/abiword-dev/2009/Apr/0012.html
Cross Building
- 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.
- Get all the dependencies in place. Unpack all the dependencies to the folder /opt/win32, where the folder will have the sub folders bin, include, lib, and share. Now you will have /opt/win32 as base dir for the win32 stuff.
- Now use the commands:
source /opt/win32/bin/mingw-env.sh
Go to to source tree and run
CPPFLAGS="-I/opt/win32/include" ./autogen.sh --prefix=/opt/abiword --host=i686-pc-linux-gnuaout --target=i586-mingw32msvc
make
Running
Abiword.exe will end up in src/. You need to copy it to /opt/win32/bin to run it on your Linux operating system using wine. Alternatively you may also copy all the required DLLs to src/. Now you can take the abiword.exe along with all the required DLL to a folder in your windows machine to run Abiword.exe.