Results 1 to 20 of 20

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

Threaded View

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

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

    Hi,

    I want to distribute one executable file of my application which should be able to connect to a PostgreSQL database. After I did spend hours on compiling a static version of Qt I hoped that I can get one executables which has no external dependencies on any DLL.

    So that's what I did so far:

    1. As descripted in this article I changed the VS environmet to be able to create static Qt.

    2.
    configure -static -platform win32-msvc.net -qt-sql-psql -I C:\Programme\PostgreSQL\8.1\include -L C:\Programme\PostgreSQL\8.1\lib\ms
    After that I did run
    nmake sub-src
    I thought that the nmake process will create a static version of the qsql plugin!!

    3. I changed the main function of my project and added the following lines:
    Qt Code:
    1. #include <QtPlugin>
    2.  
    3. Q_IMPORT_PLUGIN(qsqlpsql)
    To copy to clipboard, switch view to plain text mode 

    The tool compiled succesfull without any errors. After that I checked the dependencies of my new executable and saw that it refers to the LIBPQ.DLL which, of course, refers to some other DLLs, too.

    Is there anything I have to change for a static version of my tool. I do not want these dependencies to the libpq.dll.

    Any suggestions.

    Thanks in advance.
    --Heisp
    Last edited by jacek; 22nd February 2007 at 19:07. Reason: changed [code] to [quote]

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.