Compiling postgresql plugin win32

AgarFu heaven at
Sun Jan 30 14:13:56 CET 2005

Hi I've compile postgresql sql plugin against postgresql8.0.0 using MinGW

If you want to do it you have to download postgresql 8.0.0 src, and msys, compile posrgresql libpq.a.
The easyest way is to build psql, yo just have to do ./configure --without-zlib and then go to psql source dir
and then make.

When it finish copy libpq.a to <mingw path>\lib\ then, apply the patches and qmake, mingw32-make

qmake -o Makefile "INCLUDEPATH+=C:\<PostgreSQL-src>\src\include \
 C:\<PostgreSQL-src>\src\include\port\win32  \


I've done the patches looking at ODBC plugin that works perfect but there are some things tha't I don't understand.
The patches are far to be perfect, they are in the state "Them work for me TM".

Can any body explain to me where are declarations of this methods?

QPSQLDriver::win32_open(db, user, password, host, port)
QPSQLDriver::open(db, user, password, host, port)
QPSQLDriver::win32_open(db, user, password, host, port,  connOpts)
QPSQLDriver::open(db, user, password, host, port, connOpts)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: driver-psql.diff
Type: application/octet-stream
Size: 1373 bytes
Desc: not available
Url :
-------------- next part --------------
RCS file: /cvsroot/kde-cygwin/qt-3/plugins/src/sqldrivers/psql/,v
retrieving revision
diff -r1.1.1.3
< 	LIBS	*= libpqdll.lib
> 	LIBS	*= libpq

More information about the kde-cygwin mailing list