Results 1 to 20 of 20

Thread: Want a static database plugin - tried a lot but have still DLL dependecies.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Posts
    31
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1

    Exclamation Re: Want a static database plugin - tried a lot but have still DLL dependecies.

    btw, the bug (or feature?) of libpq.a building still exists (that's why my problem occured). Maybe it can be useful for someone.

    Here is description. You will never get real static libpq.a if you have done building of shared version of libpq before. You MUST delete pseudo-static libpq.a before building real static libpq.a

    Folder "\src\interfaces\libpq\":
    Here is failure scenario:
    1. make install (dynamic libpq.dll and pseudo-static libpq.a were created)
    2. make install enable_shared=no (get real static libpq.a - fails).
    Real static libpq.a wasn't created. Insted of it we can see old, pseudo-static libpq.a.

    Another failure scenario:
    1. make install enable_shared=no (real static libpq.a was created - indeed).
    2. make install (dynamic libpq.dll and pseudo-static libpq.a were created).
    Real static libpq.a was overwritten by pseudo-static libpq.a!

    Here is successfull, working scenario:
    1. make install (dynamic libpq.dll and pseudo-static libpq.a were created).
    2. delete pseudo-static libpq.a.
    3. make install enable_shared=no (get real static libpq.a).
    So that's only possible way to get both shared and real static libpq libraries.

    Strange, why pseudo-static libp.q can overwrite real static one but can't vice-versa?

    I think lot of bugs peoples have with libpq are based on that bug...

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Want a static database plugin - tried a lot but have still DLL dependecies.

    It's neither a bug nor a feature. It's just the way make works. Basically if you change configuration options you should always issue "make clean" afterwards (or "before" in that case).

Similar Threads

  1. Threads and database connection
    By probine in forum Qt Programming
    Replies: 9
    Last Post: 7th August 2013, 08:30
  2. Replies: 16
    Last Post: 23rd May 2008, 10:12
  3. plugin loading problem
    By naresh in forum Qt Programming
    Replies: 6
    Last Post: 9th June 2007, 19:05
  4. Filling combobox from database
    By Philip_Anselmo in forum Qt Programming
    Replies: 3
    Last Post: 11th May 2006, 17:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.