1 Before building the Qt library, the Qt SQL module can be enabled for
2 specific databases using 'configure'. 'configure' is located at the
5 Specific databases drivers can be enabled using one of the following
8 ./configure [-qt-sql-<driver>] [-plugin-sql-<driver>]
10 or disabled using the following option:
12 ./configure [-no-sql-<driver>]
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
18 For example, to build the PostgreSQL driver directly into the Qt
19 library, configure Qt like this:
21 ./configure -qt-sql-psql
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,
27 ./configure -qt-sql-psql -I/usr/local/include
29 If instead you need to build the PostgreSQL driver as a dynamically
30 loaded plugin, configure Qt like this:
32 ./configure -plugin-sql-psql
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.