Last change
on this file since 447 was 2, checked in by Dmitry A. Kuminov, 16 years ago |
Initially imported qt-all-opensource-src-4.5.1 from Trolltech.
|
File size:
1.2 KB
|
Line | |
---|
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.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.