Jump to content

KDb/Build: Difference between revisions

From KDE Community Wiki
< KDb
Jstaniek (talk | contribs)
No edit summary
Jstaniek (talk | contribs)
Line 2: Line 2:


==Requirements==
==Requirements==
Required software components:
*C++ compiler
*C++ compiler
*Qt 4.5 or newer
*Qt 4.5 or newer (both libraries and development files/tools)
*SQLite 3.6.16 or newer (both the library and development files)
 
Optional components:
*libpq 7.3 or newer for PostgreSQL support (both the access library and development files)
{{Note|PostgreSQL Server installation is not needed for building Predicate or software that uses Predicate. The server is needed only for running the actual database service. Any installaton on separate (e.g. remote) machine can be reused.}}
 
*mysql client (both the access library and development files)
{{Note|MySQL Server installation is not needed for building Predicate or software that uses Predicate. The server is needed only for running the actual database service. Any installaton on separate (e.g. remote) machine can be reused.}}


==Get the source code==
==Get the source code==

Revision as of 16:36, 19 December 2010

Template:ForDevelopers

Requirements

Required software components:

  • C++ compiler
  • Qt 4.5 or newer (both libraries and development files/tools)
  • SQLite 3.6.16 or newer (both the library and development files)

Optional components:

  • libpq 7.3 or newer for PostgreSQL support (both the access library and development files)

Note

PostgreSQL Server installation is not needed for building Predicate or software that uses Predicate. The server is needed only for running the actual database service. Any installaton on separate (e.g. remote) machine can be reused.


  • mysql client (both the access library and development files)

Note

MySQL Server installation is not needed for building Predicate or software that uses Predicate. The server is needed only for running the actual database service. Any installaton on separate (e.g. remote) machine can be reused.


Get the source code

See the Download page. Download Predicate source code as explained on the Download page. The root directory of the source code will be referred as {predicate-source-dir}.

Build recipe

Configuration

For your convenience, cmakepredicate.sh script has been prepared with default configuration settings. You can find it in tools/ subdirectory of the source code. Use it as follows:

mkdir {predicate-build-dir}

You can set $PREDICATE_INSTALL_PREFIX environment.

Better pick your {predicate-build-dir} outside of the source code.

cd {predicate-build-dir}
{predicate-source-dir}/tools/cmakepredicate.sh {predicate-source-dir}

Build

You need to type the above configuration command only once, to configure the cmake-based buildsystem. Then just type:

 make
 make install