Crossbuilding AbiWord for Win32

From AbiWiki

(Difference between revisions)
Jump to: navigation, search
(Building)
(Running)
 
(11 intermediate revisions not shown)
Line 1: Line 1:
== Introduction ==
== 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.
+
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 [http://www.winehq.org/ Wine]. Provided that you have Wine installed on Ubuntu, you can follow these steps to build Abiword for your Windows.
 +
 
== Getting the source tree ==
== Getting the source tree ==
-
Checkout the branch
+
Checkout the source tree from the trunk.
 +
  svn co http://svn.abisource.com/abiword/trunk/
-
http://svn.abisource.com/abiword/branches/gsoc2009unicode/
+
== Cross Building ==
-
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.
+
=== 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.
-
http://www.abisource.com/mailinglists/abiword-dev/2009/Apr/0012.html
+
'''On Fedora,''' install mingw32-glib2, mingw32-boost, mingw32-libjpeg, mingw32-libpng, mingw32-libxslt, mingw32-libgsf. Read the [http://fedoraproject.org/wiki/MinGW/Tips tips from Fedora]
 +
=== Get all the dependencies===
-
== Cross Building ==
+
'''On Ubuntu:''' unpack all the dependencies to the folder /opt/win32. Here the win32 folder will finally have the sub folders bin, include, lib, and share. Now you will have /opt/win32 as base directory for the win32 stuff.
-
* 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.
+
'''On Fedora:''' you need to compile fribidi and wv.
 +
=== Build ===
-
* Now use the commands:
+
 
-
    source /opt/win32/bin/mingw-env.sh
+
'''On Ubuntu'''
 +
 
 +
Now use the commands:
 +
  source /opt/win32/bin/mingw-env.sh
Go to to source tree and run
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
+
  CPPFLAGS="-I/opt/win32/include" ./autogen.sh --prefix=/opt/abiword --host=i686-pc-linux-gnuaout --target=i586-mingw32msvc
 +
 
 +
'''On Fedora'''
 +
 
 +
  mingw32-configure --prefix=/opt/abiword
 +
 
 +
Then
   make
   make
 +
  make install
== Running ==
== 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.
+
abiword.exe will end up in src/. You need to copy it to /opt/abiword/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 on Windows.

Current revision as of 01:10, 25 February 2013

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 Ubuntu, you can follow these steps to build Abiword for your Windows.


Getting the source tree

Checkout the source tree from the trunk.

  svn co http://svn.abisource.com/abiword/trunk/ 

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.

On Fedora, install mingw32-glib2, mingw32-boost, mingw32-libjpeg, mingw32-libpng, mingw32-libxslt, mingw32-libgsf. Read the tips from Fedora

Get all the dependencies

On Ubuntu: unpack all the dependencies to the folder /opt/win32. Here the win32 folder will finally have the sub folders bin, include, lib, and share. Now you will have /opt/win32 as base directory for the win32 stuff.

On Fedora: you need to compile fribidi and wv.

Build

On Ubuntu

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

On Fedora

  mingw32-configure --prefix=/opt/abiword

Then

  make
  make install

Running

abiword.exe will end up in src/. You need to copy it to /opt/abiword/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 on Windows.

Personal tools