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



    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.


  • 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


  • Moderators

    [quote author="leonunes" date="1335372421"]
    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.
    [/quote]
    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.