Changeset 803


Ignore:
Timestamp:
Oct 21, 2010, 5:42:58 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:
 
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/README.OS2

    r792 r803  
    8282    Note that you will also need the above OpenSSL libraries and pthread.lib to
    8383    be able to use this MySQL build.
     84
     85  - PostgersSQL 9.0.1 or later to support the PostgresSQL Qt plugin. The
     86    PostgresSQL libraries are available at:
     87
     88      http://download.smedley.info/postgresql-9.0.1-os2-20101012.zip
     89
     90    Note that you will also need libc064x.dll for this PostgresSQL build and a
     91    patched PostgresSQL DLL that fixes one critical bug (this will not be
     92    necessary for the next PostgresSQL build as it will incorporate the fix):
     93
     94      http://download.smedley.info/libc064x.zip
     95      http://smedley.info/libpq.zip
     96
     97    Note that you will also need the above OpenSSL libraries and pthread.lib to
     98    be able to use this PostgresSQL build.
    8499
    85100
     
    181196      set MYSQL_INCLUDEPATH=<path_to_MySQL>\include'
    182197      set MYSQL_LIBS=-L<path_to_MySQL>\lib -lmysqlclient_r -L<path_to_OpenSSL>\lib -llibssl -llibcrypto -L<path_to_pthread> -lpthread
     198
     199    Also add MySQL DLLs to BEGINLIBPATH if they are not already there as shown
     200    above.
     201
     202  - Unzip the PostgresSQL archive to some directory and set the following
     203    environment variables to tell the Qt configure script the library location:
     204
     205      set PSQL_INCLUDEPATH=<path_to_PostgresSQL>\include'
     206      set PSQL_LIBS=-L<path_to_PostgresSQL>\lib -llibpq -L<path_to_OpenSSL>\lib -llibssl -llibcrypto -L<path_to_pthread> -lpthread
     207
     208    Also add PostgresSQL DLLs to BEGINLIBPATH if they are not already there as
     209    shown above.
    183210
    184211
  • trunk/configure.cmd

    r792 r803  
    943943                end
    944944            end
     945            when (drv == "psql") then do
     946                if (G.CFG_SQL_psql \== "no") then do
     947                    /* detect PostgresSQL libraries */
     948                    G.PSQL_INCLUDEPATH = GetEnv('PSQL_INCLUDEPATH')
     949                    G.PSQL_LIBS = GetEnv('PSQL_LIBS')
     950                    if (G.PSQL_INCLUDEPATH \== '' & G.PSQL_LIBS \== '')  then do
     951                        call SayVerbose 'PostgresSQL include path : 'G.PSQL_INCLUDEPATH
     952                        call SayVerbose 'PostgresSQL libraries    : 'G.PSQL_LIBS
     953                        call SayVerbose
     954                        /* qt sources for some reason include mysql headers directly, so
     955                         * add a prefix here to fix that */
     956                        if (G.CFG_SQL_psql == "auto") then
     957                            G.CFG_SQL_psql = "plugin"
     958                    end
     959                    else do
     960                        call SayVerbose,
     961'Warning: PostgresSQL libraries are not specified, PostgresSQL plugin is disabled.'G.EOL||,
     962'Use PSQL_INCLUDEPATH and PSQL_LIBS environment variables to specify'G.EOL||,
     963'the location of the libraries.'G.EOL||G.EOL
     964                        G.CFG_SQL_psql = 'no'
     965                    end
     966                end
     967            end
    945968            when (drv == "sqlite") then do
    946969                if (G.CFG_SQL_sqlite \== "no") then do
     
    17421765    if (G.MYSQL_LIBS \== "") then
    17431766        call lineout qmake_cache_new, 'MYSQL_LIBS = 'G.MYSQL_LIBS
     1767
     1768    if (G.PSQL_INCLUDEPATH \== "") then
     1769        call lineout qmake_cache_new, 'PSQL_INCLUDEPATH = 'G.PSQL_INCLUDEPATH
     1770    if (G.PSQL_LIBS \== "") then
     1771        call lineout qmake_cache_new, 'PSQL_LIBS = 'G.PSQL_LIBS
    17441772
    17451773    if (G.QT_EDITION \== "QT_EDITION_OPENSOURCE") then
  • trunk/src/plugins/sqldrivers/psql/psql.pro

    r2 r803  
    11TARGET   = qsqlpsql
     2os2:TARGET_SHORT = qpsql
    23
    34HEADERS         = ../../../sql/drivers/psql/qsql_psql.h
     
    1920}
    2021
     22os2 {
     23    INCLUDEPATH *= $$PSQL_INCLUDEPATH
     24    LIBS        *= $$PSQL_LIBS   
     25}
     26
    2127include(../qsqldriverbase.pri)
Note: See TracChangeset for help on using the changeset viewer.