![]() |
![]() |
Rapid Database Application Development
|
Development |
"Microsoft Access for Linux"
|
|
Compiling Kexi from Subversion
Simple version: you can also download the source tarball. Introduction
The KDE project uses the Subversion
This page describes how to build Kexi from the KDE's anonymous Subversion repository. You'll need a copy of Subversion
(not available for now)
If you're new to Subversion, there are instructions for using it:
Note that these instructions explain how to build Kexi only, not entire KOffice.
If you are using Subversion because you want to help develop Kexi, you might want to read step 5 only of Working with Existing Applications in KDE CVS
You can also browse Kexi source code tree Things to Remember
Short version
First, using unsermake instead of automake is recommended - it is faster and convenient way for performing compilations. Read the documentation how to get and install unsermake The following is a short summary of the process. See subsequent sections for step-by-step instructions:
To skip compilation of certain KOffice apps, type something like: export DO_NOT_COMPILE="kchart kdgantt kformula koshell krita kugar kword" If you're using automake: make -f Makefile.cvs
Use "unsermake -f Makefile.cvs" instead if you're using unsermake ./configure --enable-debug=full --prefix=`kde-config --prefix` perl admin/am_edit # shouldn't be necessary - why is it needed sometimes? And finally, if you're using automake, type this to build Kexi and install: cd koffice/lib && make && make install cd ../kexi && make && make install
or, if you're using unsermake unsermake && unsermake install (to install you may need root priviledges) ^ tocRequirements ^ tocDisk space
Package requirementsKexi can be built on KDE 3.2 or newer. The kdelibs development files are required to build Kexi, plus the development files for building support for database servers. The kdelibs files may be packaged for your distribution as something like kdelibs-dev or kdelibs-devel. See the Notes section below for lists of packages required for building on Debian.
If you can tell us which packages are needed to build Kexi on your distribution, please email us Building ^ tocBuilding from 'trunk''Trunk' is usually used for the latest development version, and this section explains how to build it. NOTE: trunk is now in transition to KDE4, so could not compile. Please replace every occurence of 'trunk/koffice/' with 'branches/koffice/1.6/koffice/' below. First, check out a copy from the anonymous subversion server: svn co -N svn://anonsvn.kde.org/home/kde/trunk/koffice/ cd koffice svn co svn://anonsvn.kde.org/home/kde/branches/KDE/3.5/kde-common/admin svn up kexi svn up lib Note that we've not used /trunk/KDE/kde-common/admin, but the KDE 3.5 branch instead, because /trunk/KDE/ is currently assigned for KDE4. Then build the configure script and Makefiles: make -f Makefile.cvs
(use "unsermake -f Makefile.cvs" instead if you're using unsermake It might be a good idea to have a quick look at which configuration options are available: ./configure --help Now configure Kexi, using your chosen configure options, e.g.: ./configure --enable-debug=full --prefix=`kde-config --prefix` And finally, if you're using automake, type this to build Kexi and install: cd koffice/lib; make; make install cd ../kexi; make; make install
or, if you're using unsermake cd koffice/lib && unsermake && unsermake install cd ../kexi && unsermake && unsermake install (to install you may need root priviledges) ^ tocManaging different versions of Kexi
GNU Stow Compiling additional components ^ tocForm Designer(obsolete) To compile Form Designer (FAQ) as a standalone application, compile and install Kexi as above, then: cd kexi/formeditor/test/ make make install This installs the KFormDesigner program. ^ tocMS Access Migration DriverTo build the MS Access Migration driver, first ensure that Kexi itself is installed properly and working. Then get the driver's source code and build as follows: svn co -N svn://anonsvn.kde.org/home/kde/trunk/kdenonbeta/ cd kdenonbeta svn co svn://anonsvn.kde.org/home/kde/branches/KDE/3.5/kde-common/admin svn up keximdb make -f Makefile.cvs ./configure --enable-debug=full --prefix=`kde-config --prefix` And finally, if you're using automake, type this to build Kexi and install: make make install
or, if you're using unsermake unsermake unsermake install (to install you may need root priviledges) You may need to use the --with-kexidb-includes= or --with-kexidb-libraries= configure options. ^ tocCommand line testsCommand line tests are available in the kexi/tests/newapi/ subdirectory. See the README document there for more information. ^ tocNotes ^ tocKnown problems
./kexi/kdeinit_kexi.la.cpp:3: error: visibility arg must be one of "default", "hidden", "protected" or "internal"
#define KDE_EXPORT attribute ((visibility("visible"))) and replace it with: #define KDE_EXPORT attribute ((visibility("default"))) Then, continue compilation. ^ tocCompiling and installing Kexi to "nonsystem" KDE directoryThe question is: How do I modify my KDEDIRS environment, so that Kexi that I built from Subversion can find all services and mime types and works properly?
Solution: http://mail.kde.org/pipermail/kexi/2005-October/000025.html PostgreSQL supportSupport for PostgreSQL servers requires the "pq" C library and "pqxx" library (higher level one utilizing pq). pq library: We recommend that you use packages for your distribution with the appropriate pq development files. The following Kexi configure options are available if the configure script cannot find the pq development files:
--with-pgsql-includes=DIR
--with-pgsql-libraries=DIR
pqxx library: We recommend that you use packages for your distribution with the appropriate pqxx development files, but you can also compile from source If you compile it yourself, note that you'll need the shared pqxx library. By default pqxx is built as a static library, so ensure that when you configure pqxx, you use the --enable-shared option: ./configure --enable-shared=yes make su -c "make install" The PostgreSQL driver will be compiled only if the shared library (i.e. libpqxx.so, not static libpqxx.a) is found during Kexi configure phase. You will be informed by configure script if the library was not found. The following Kexi configure options are available if the configure script cannot find the pqxx development files:
--with-pqxx-includes=DIR
--with-pqxx-libraries=DIR^ toc Building Kexi on DebianFor a basic Kexi installation, you should: apt-get install build-essential kdelibs4-dev automake1.7 libreadline5-dev If you want to build with support for PostgreSQL servers, use: apt-get install libpqxx-dev and if you want to build support for MySQL servers, use: apt-get install libmysqlclient-dev
Debian packages apt-get install debhelper cdbs The following is useful for developers who want to modify KexiDB's parser: apt-get install flex |
|||||
|