Qt-interest Archive, December 2007
SQLite depnds files
Message 1 in thread
Hi All,
What's the needed files (for M$ Windows & Linux) to run an application
built by Qt which is using SQLite database?
I tried to ship with my application the following files, but it still
couldn't connect to database:
myApplication.exe
databaseFile
QtSql4.dll
QtGui4.dll
QtCore4.dll
mingwm10.dll
QtXml4.dll
qsqlite4.dll
--
[ signature omitted ]
Message 2 in thread
Hi,
> What's the needed files (for M$ Windows & Linux) to run an application
> built by Qt which is using SQLite database?
SQLite is *usually* built into the Qt libraries, or into a plugin associated
with Qt libraries, so you need to ship the Qt libraries and the plugin.
In the case of plugins, Qt libraries will look for plugins in specific
folders. This is documented here:
http://doc.trolltech.com/4.3/deployment-windows.html#qt-plugins
> I tried to ship with my application the following files, but it still
> couldn't connect to database:
>
>
> myApplication.exe
>
> databaseFile
>
> QtSql4.dll
>
> QtGui4.dll
>
> QtCore4.dll
>
> mingwm10.dll
>
> QtXml4.dll
These are just Qt libraries - no Qt plugins. Has SQLite ben built directly
into QtSql4.dll?
> qsqlite4.dll
Where did you find this qsqlite4.dll? Are you using an external SQLite library
instead of the one shipped with Qt?
--
[ signature omitted ]
Message 3 in thread
> What's the needed files (for M$ Windows & Linux) to run an application
> built by Qt which is using SQLite database?
You should to forget Linux. Just declare Qt4 as a requirements for its
package management. That's all.
> I tried to ship with my application the following files, but it still
> couldn't connect to database:
You should use the following file structure for Windows:
- app.exe
- dbfile
- QtSql4.dll
- QtCore4.dll
- QtGui4.dll
(- more Qt libs if needed like QtXml4.dll etc.)
- sqldrivers\qtsqlite4.dll (directory is required here)
(- imageformats\qgif4.dll etc. if your app requires plugable image support)
See e.g. http://public.yarpen.cz/sqliteman-1.1-20071202-win.zip as a
reference.
cheers
Petr
--
[ signature omitted ]