我应该复制哪个Qt DLL以使程序独立运行? [英] Which Qt DLL's should I copy to make my program stand-alone?

查看:95
本文介绍了我应该复制哪个Qt DLL以使程序独立运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用我的应用程序创建分发目录.我已将多个Qt DLL复制到该目录,并且该程序似乎正在运行,但有一个例外:它似乎找不到SQLite的SQL插件.将qtsqlite.dll复制到目录,不允许我的应用程序打开或创建SQLite文件.目录结构必须是什么,或者需要复制哪些其他文件才能使程序读取数据库?

I'm trying to make a distribution directory with my application. I've copied several Qt DLLs to that directory, and the program seems to be working, with one exception: it doesn't seem to find SQL plugin for SQLite. Copying qtsqlite.dll to the directory, doesn't allow my application to open or create SQLite files. What must be the direcotry structure or which additional files need to be copied so that the program can read the database?

推荐答案

,您可以使用 depends.exe 准确查看您的exe的依赖项,并确保它们都包含在内.

you can use depends.exe to see exactly what the dependencies of your exe are and make sure they're all included.

此外,请阅读此页面有关qt插件的信息.它们应该位于一个名为"plugins"的特定目录中,而不是与所有其他dlls一起位于主目录中.

Also, read this page about qt plugins. they are supposed to be in a specific directory called "plugins" and not in the main directory with all the other dlls.

这篇关于我应该复制哪个Qt DLL以使程序独立运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆