Qt4_VS10 程序打包发布

时间:2023-11-25 16:25:56

源地址:http://www.2cto.com/kf/201306/217205.html

目录结构如下:

--------------------------------------------------------------------------------
----[imageformats]
qgif4.dll
qgifd4.dll
qico4.dll
qicod4.dll
qjpeg4.dll
qjpegd4.dll
qmng4.dll
qmngd4.dll
qsvg4.dll
qsvgd4.dll
qtga4.dll
qtgad4.dll
qtiff4.dll
qtiffd4.dll
----[codecs]
qcncodecs4.dll
qcncodecsd4.dll
qjpcodecs4.dll
qjpcodecsd4.dll
qkrcodecs4.dll
qkrcodecsd4.dll
qtwcodecs4.dll
qtwcodecsd4.dll
----[sqldrivers]
qsqlmysql4.dll
qsqlmysqld4.dll
qsqloci4.dll
qsqlocid4.dll
demo.exe
msvcp100.dll
msvcr100.dll
QtCore4.dll
QtCored4.dll
QtGui4.dll
QtGuid4.dll
QtSql4.dll
QtSqld4.dll
--------------------------------------------------------------------------------

上列的imageformats(图像格式),codecs(编码),sqldrivers(数据库设备)文件夹均是[QTDIR]\plugins\目录下用到,当然具体添加哪些根据具体程序来。
目录主结构下的QtCore4.dll、QtCored4.dll等是根据Qt程序添加的模块来,如.pro文件中的QT+=gui,QT+=core,QT+=sql等,就需要添加相应的dll。文件位于[QTDIR]\bin。
主目录中msvcp100.dll 和 msvcr100.dll属于VS2010的动态链接库,位于 F:\Program Files\Microsoft Visual Studio 10.0\VC\redist\x86\Microsoft.VC100.CRT(本机)。