Create PostgreSQL plugin using MinGW
Hi folks, I really tried so many time to create PostgreSQL plugin using MinGW with success.
I got to create the libpq.def and libpq.a files using reimp.exe and dlltool.exe utilities from MinGW utilities, but after this I didn’t get to generate the .dll using MinGW.
Someone got this task?
I am using Qt 4.8 and PostgreSQL 9.1
1. Build postgresql libraries as described in http://pgolub.wordpress.com/2008/12/15/building-postgresql-client-library-using-mingw-under-winxp-sp3/.
2. After that you will have libpq.a and libpq.dll files.
3. Then build postgresql plugin for Qt.
I want to generate the plugin that QT will use to connect to PostgreSQL 9.1.
I this case I don’t achieve this, I am only generating one DLL I think.
Yes you build 1 plugin DLL which is loaded by Qt. But this plugin DLL still uses the postgresql plugin DLL itself. You you have to build it before.
Same goes for the mysql plugin for example.