Sooner or later before any Qt-developer gets the necessary migration of your application on other computers, and then there is the problem of the availability of libraries on the target computer that are needed to start and run the application. This is especially noticeable when the application can transfer that must be executed under of Windows. If the Linux OS the necessary Qt libraries are present by default, such as with of Ubuntu, is a Windows and they can not be.
But finding and assembling all the necessary libraries can be difficult for a newcomer, and quite tedious task for an experienced programmer. But here, thanks to the good people there is a solution. This utility DLL Collector . This utility allows you to program depending on which was written in the framework, Qt library and automatically copy data to the specified folder.
As the author writes, the utility searches for dependencies in runtime process. Therefore your program must run through this utility. DLL Collector collects information about all loadable plug-ins used by your program, but it should not be forgotten that the plugins are loaded when you first use them in your program functions. Thus, you need to run your program on its functionality to DLL Collector Found all libraries.
How works the DLL Collector
Step one. Setup utility
In this step, you must perform the following steps:
- Specift in the name field, the path to the compiled program;
- Specify in the field the path to the bin binaries libraries Qt;
- Specify in the field the path to the plug-ins plugins Qt;
- Specify the path to the folder where you will copy the DLL
- Tick add bin to envitonment
Step Two. Running your application
After the setting is made, run your application by clicking the Run button.
Step Three. Updating the list of plug-ins and libraries
Once your application starts, click the Update button. Highlight a list of plug-ins and libraries. Also, work with your application a bit to DLL Collector certainly found all the dependencies and ponazhimayte Update button several times to make sure that all dependencies found.
Step Four. Copying libraries
Once the library is found, press the Copy button, and all libraries will be copied.
Summing up, I can say that the utility is very useful and much easier life.
At the time of this writing, author uploaded a new version of the program, but personally I have it crash. So I still use an older version, you can download here: DLLCollector
You can also research information about the program on the author page.
Also, do not forget to make an installer for your application, and learn how to do this in the next article .