Advanced Build Notes
Last updated: 14 Dec 2005
How to set compile-time options?
Note: We are no longer using $KEXI_OPTIONS environment directory. This caused a problem for unsermake. Now, configure options are used instead.
^ toc
Available options
- Stable options (enabled by default, if relevant libraries are found)
- --enable-mysql
- --enable-pgsql
- Experimental options (disabled by default)
- --enable-kexi-reports
- --enable-scripting (enable the scripting plugin. Needs koffice/libs/kross to be compiled and installed.
Note: Please always use --enable-debug=full for testing, as this will produce better backtraces if Kexi crashes.
^ toc
Example how to compile Kexi from svn
If you have unsermake, see the next section.
svn co -N svn://anonsvn.kde.org/home/kde/trunk/koffice/ kexi-svn
cd kexi-svn
svn co svn://anonsvn.kde.org/home/kde/branches/KDE/3.4/kde-common/admin
svn up kexi
svn up -N lib
svn up lib/koproperty
svn up lib/kross
svn up lib/kofficecore
mkdir lib/{kformula,kofficeui,kopainter,koscript,kotext,kwmf,store}
make -f Makefile.cvs
./configure --enale-scripting \
--enable-reports \
--enable-debug=full
make
make install
Note: 'make -f Makefile.cvs' is only needed to execute once, 'configure' and then make, can be run many times.
^ toc
Unsermake'ing it
This seems to be the best way to build Kexi on it's own, but you need
Unsermake for it to work properly.
svn co -N svn://anonsvn.kde.org/home/kde/trunk/koffice/ kexi-svn
cd kexi-svn
svn co svn://anonsvn.kde.org/home/kde/branches/KDE/3.4/kde-common/admin
svn up kexi
svn up -N lib
svn up lib/koproperty
svn up lib/kross
svn up lib/kofficecore
make -f Makefile.cvs
./configure --enable-scripting \
--enable-reports \
--enable-debug=full
unsermake
unsermake install
^ toc
Notes for developers
^ toc
Defines
Some of above configure options, if set to true, have defines assigned, so you can check their existence in your code.
- --enable-kexi-reports --> KEXI_REPORTS_SUPPORT
- --enable-scripting --> KEXI_SCRIPTS_SUPPORT
Example:
#ifdef KEXI_REPORTS_SUPPORT
//some code depending on reports
#endif
|