TimsBuildDoc
From AbiWiki
Contents |
UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY
<H2>AbiWord Development: Build Instructions (from Tim)</H2>
Just for reference here is step-by-step instructions on how I did my abiword build, feel free to change this of course, thats what TWiki is all about! These instructions should work for a WindowsXP/2000 system.
<H3>Contents</H3>
Requirements
To build requires Cygwin (provides several standard Unix tools for Windows) and Microsofts Visual C/C++ (MSVC 6 is usually used, VC 5 can build the main AbiWord executable but may not be able to build the extra libraries required by some of the plugins, MS VC 7 can also be used but you will need to distribute its C Runtime library DLL)
Steps
- install cygwin (I installed it to c:\cygwin)
- make a folder called abiword (mine is c:\abiword)
- create cvsinit.bat in abiword folder with the following lines in it:
<pre> @echo off set CVSROOT=:pserver:anoncvs@anoncvs.abisource.com:/cvsroot set HOME=c:\abiword set HOMEDRIVE=c:\ set HOMEPATH=\abiword cvs login </pre>
- create cmd.exe shortcut in abiword folder
- copy vcvars32.bat to abiword folder
- create init.bat in abiword folder
<pre> set path=;c:\cygwin\bin vcvars32 </pre>
To download the source, double-click the cmd.exe shortcut and type ==cvsinit==, and login with a password of ==anoncvs== <br /> Type ==cvs -z4 co abi expat zlib abidistfiles wv libpng libiconv nsis popt== <br /> This will download the abiword source folders into your abiword directory.
To build the source, double-click the cmd.exe shortcut you created earlier and type ==init==. CD to the abi folder and type ==make==.
At this point it should start to build. If it is successful you will get a binary file in ==D:\AbiWord\abi\src\WIN32_1.3.10_i386_OBJ\bin==
Notes
- For cygwin you will need to install is ash, bash, binutils, cvs, cygwin, diffutils, fileutils, gawk, gdbm, gettext, grep, libintl1, make, pcre, sed, sh-utils, tar, and texutils. Everything else is optional as far as I can tell.
- Note: for AbiWord 1.1.x releases (well at least as of 2002/11/11) the exact cygwin files required are cp, cut, cvs, [cygpath], [cygwin1.dll], echo, expr, make, mkdir, pwd, rm, sed, sh (this can be a renamed bash, or possibly renamed ash), tar (only required for make distribution), and uname
- vcvars32.bat was found in ==C:\Program Files\Microsoft Visual Studio\VC98\Bin== on my system.
- I had to change the name of popt\config.h.msvc to config.h in order for popt to compile.
- Building takes about 10 minutes on my Athlon Duron 950MHz. (It usually takes me [Jeremy] about 30+ minutes on my PII 366)
- Dont forget to look at [[[BuildDotTxt|BuildDotTxt]] BUILD.TXT] in the root abi folder of the source tree. Note: for 1.1.x releases this refers you to updated documentation in abi/docs/
Contributors
- Main.TimLaDuca - 09 Jun 2002
- Main.JesperSkov - 12 Jun 2002
- Main.PerditionC - 16 Jun 2002
- Main.GilbertMark - 18 Sep 2003