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.
After that I did runconfigure -static -platform win32-msvc.net -qt-sql-psql -I C:\Programme\PostgreSQL\8.1\include -L C:\Programme\PostgreSQL\8.1\lib\ms
I thought that the nmake process will create a static version of the qsql plugin!!nmake sub-src
3. I changed the main function of my project and added the following lines:
Qt Code:
#include <QtPlugin> 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




Reply With Quote
Bookmarks