Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Create PostgreSQL plugin using MinGW
Forum Updated to NodeBB v4.3 + New Features

Create PostgreSQL plugin using MinGW

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 4.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    leonunes
    wrote on 25 Apr 2012, 11:01 last edited by
    #1

    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 Reply Last reply
    0
    • V Offline
      V Offline
      VanDerSam
      wrote on 25 Apr 2012, 16:19 last edited by
      #2
      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.
      1 Reply Last reply
      0
      • L Offline
        L Offline
        leonunes
        wrote on 25 Apr 2012, 16:47 last edited by
        #3

        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

        1 Reply Last reply
        0
        • R Offline
          R Offline
          raven-worx
          Moderators
          wrote on 23 Sept 2013, 07:06 last edited by
          #4

          [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.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved