Download KOffice Source Code
Requirements
To compile KOffice you need:
- a C++ compiler which supports exceptions (preferably a recent version of GCC). (see http://gcc.gnu.org for info about getting and installing it.)
Information
KOffice stable is currently available as version 1.6.3, designed to run with KDE 3.3 and later.
You must choose now to run the stable KOffice 1.6.3 or a development version. In case of the
development version this can mean that it is not usable for end use.
If you want the development version (where you need at least KDE 3.3) you can choose between a daily snapshot, or obtain source
regularly via SVN.
Note that we have 3th version, thats the really unstable one for the upcoming 2.0, but that one is most likely not one you want.
Download
The complete source code for KOffice 1.6.3is available for free download via one of the KDE HTTP or FTP mirrors. It's recommended that you download from a mirror located in your country.
The daily snapshots are here. These can be updated using the anonymous Subversion mirror.
The development version via anonymous Subversion (recommended) needs extra instructions, check the anonsvn instructions.
Use anonsvn if you plan to update often, since you will save a
significant amount of time. If you use anonsvn, you need to
run make -f Makefile.cvs before running ./configure
in the instructions below, or follow the instructions on the anonsvn
page.
In any case, you need the branches/koffice/1.6 dir! Make
sure you choose that one.
Instructions
For the stable KOffice 1.6.3 you need Qt 3.3.x, arts >= 1.3, and kdelibs >= 3.3.0 (kdebase >= 3.3.0 is recommended too).
For the development version of KOffice you need Qt 3.3.x, arts >= 1.3, and kdelibs >= 3.3.0.
Qt can be download directly from Trolltech and the KDE development snapshots can be downloaded from a KDE server.
This is the minimum to run KOffice. If you want, there are other packages which contain a lot of different applications, from networking, graphics, multimedia to games. See the appropriate websites below "KDE Family" on the main KDE page.
See also the instructions for compiling kexi
Installing Qt and the base KDE packages
Qt snapshot :
tar xvzf qt-x11-<version>.tar.gz
cd qt-<version>
export QTDIR=$PWD
./configure -system-zlib -qt-gif -system-libpng -system-libjpeg -plugin-imgfmt-mng -thread -no-stl -no-xinerama -no-g++-exceptions
make
And then for each KDE package:
Make sure you have done the QTDIR export in the Qt dir as pointed out above, this is still used!
bunzip2 <package>.tar.bz2 or svn checkout
tar xvf <package>.tar
cd <package>
./configure
make all
su -c "make install"
Note: KDE/KOffice packages must be compiled in the correct order. Compile and install arts first and then kdelibs. After this, other packages may be compiled in any order.
Additionally, all packages mentioned here have to be compiled with the same compiler!
If anything goes wrong during compilation, you might want to check if a solution is listed on the compilation FAQ, although it's a bit outdated.
Install KOffice stable
bunzip2 koffice-XXXXXX.tar.bz2
tar xvf koffice-XXXXXX.tar
cd koffice
./configure <options, see below>
make all
su -c "make install"
Configure options:
If you plan to work on KOffice, and if you have quite some disk space available, use ./configure -enable-debug=full. This adds -g3 to the compilation flags, and enables full debug info in backtraces and in gdb.
Choosing a prefix, i.e. where to install KOffice: you have two choices. Either you just compiled KDE (in particular kdelibs) into its own prefix, then you should use the same prefix for koffice, or you want to install KOffice into its own prefix. If you do that, you'll have to make sure to tell KDE about where you installed KOffice. See the note below. You'll also have to make sure you don't have another version of KOffice installed in the KDE prefix ; they would conflict. It's ok to have two versions of KOffice installed, but then none should be in the "kde prefix". The other solution is to have two versions of KDE installed, with a version of KOffice in each one.
Note: if you used ./configure --prefix to install KOffice in a different
location than the rest of KDE, you'll need to add this to /etc/kderc :
[Directories]
prefixes=/the/prefix/I/used/for/koffice
Another solution is to export KDEDIRS=/the/prefix/I/used/for/koffice:/the/normal/kdedir
Once you told KDE about where KOffice is, you need to run kbuildsycoca, which updates the system configuration cache in KDE, or to restart KDE.
You should now be able to start each individual application, such as kspread, kchart, kpresenter, karbon, kexi, kformula, kword, kivio and kugar, or run the integrated koshell for easy access to all of the applications.
Last update: 2008-02-15
The KOffice Project