Which Qt DLL's should I copy to make my program stand-alone?

后端 未结 3 967
我寻月下人不归
我寻月下人不归 2021-02-10 08:31

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 doe

相关标签:
3条回答
  • 2021-02-10 09:00

    Thanks to the link @shoosh provided, I was able to fix the problem. I needed to create sqldrivers subdirectory in the distribution dir with qsqlite.dll library inside. But that was just step one. Do you have any tips and resources on creating a full-blown Windows installer? I'm mainly a Linux programmer so this area is unknown to me.

    0 讨论(0)
  • 2021-02-10 09:05

    Most probably, the qtsqlite.dll itself depends on original SQLite DLL's which you probably need to copy as well.

    Don't forget to include an LGP license copy in your distribution as well as pointers to the original download ressources of the libs you include and their sources. To stay with the law :-)

    0 讨论(0)
  • 2021-02-10 09:10

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

    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.

    0 讨论(0)
提交回复
热议问题