April 25, 2012

leonunes leonunes
Lab Rat
2 posts

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

Thanks,

Leo Nunes

2 replies

April 25, 2012

VanDerSam VanDerSam
Lab Rat
39 posts

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.

April 25, 2012

leonunes leonunes
Lab Rat
2 posts

Sorry, I think that I was not so clear.

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.

Please tell me if I am wrong.

Leo

 
  ‹‹ trying to install Qt 4.8.1 binaries on MAC OS X 10.7 and confused      Deployment cancelled due to CODA app connection ››

You must log in to post a reply. Not a member yet? Register here!