~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/sql/README.module

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Before building the Qt library, the Qt SQL module can be enabled for
 
2
specific databases using 'configure'.  'configure' is located at the
 
3
top of your QTDIR.
 
4
 
 
5
Specific databases drivers can be enabled using one of the following
 
6
options:
 
7
 
 
8
        ./configure [-qt-sql-<driver>] [-plugin-sql-<driver>]
 
9
 
 
10
or disabled using the following option:
 
11
 
 
12
        ./configure [-no-sql-<driver>]
 
13
 
 
14
Where <driver> is the name of the driver, for example 'psql'.  This
 
15
will configure the Qt library to compile the specified driver into
 
16
the Qt lib itself.
 
17
 
 
18
For example, to build the PostgreSQL driver directly into the Qt
 
19
library, configure Qt like this:
 
20
 
 
21
        ./configure -qt-sql-psql
 
22
 
 
23
In addition, you may need to specify an extra include path, as some
 
24
database drivers require headers for the database they are using,
 
25
for example:
 
26
 
 
27
        ./configure -qt-sql-psql -I/usr/local/include
 
28
 
 
29
If instead you need to build the PostgreSQL driver as a dynamically
 
30
loaded plugin, configure Qt like this:
 
31
 
 
32
        ./configure -plugin-sql-psql
 
33
 
 
34
To compile drivers as dynamically loaded plugins, see the
 
35
QTDIR/plugins/src/sqldrivers directory.  Use 'configure -help'
 
36
for a complete list of configure options.  See the Qt documentation
 
37
for a complete list of supported database drivers.