[Solved] Qt installer
I went through on the following tutorial to create installer:
But there is one topic which is little bit confusing:
I have an application that is an .exe which will be executed by the user, but it uses the Qt Core dll. When the user starts the .exe, the operating system cannot find the .dll beacuse its path is not in the system path (or dll's path.)
The question is:
how can I add the install path to the system path by my setup?
Is your dlls placed in same folder with application? If yes it should work, you don’t need add any path to system path.
Did you read "deployment guide":http://qt-project.org/doc/qt-5/windows-deployment.html ?
Did you put the DLLs in the correct paths relative to your .exe? This page shows you where they should go: http://qt-project.org/wiki/Deploy_an_Application_on_Windows
thanks a lot for your reply. It seems to works on Windows.
If I would like use it on Linux, how can I do that? I will recompile the sources and I prefer the dinamicaly linked libraries insted of the staticaly linked Qt.
For linux if shared libraries are not in system path you can add
also look at "Linux Deployment":http://qt-project.org/doc/qt-5/linux-deployment.html
[quote author="moravas" date="1392794871"]thanks a lot for your reply. It seems to works on Windows.
If I would like use it on Linux, how can I do that?[/quote]You're welcome. For Linux, it depends on which Qt version (if any) has been installed on the system.
If your target PC has the same Qt version as your build, then you just need to copy your executable and run it.
If your target PC has a different version of Qt (or if it doesn't have Qt), you can still use the same technique as the Windows guide; just replace *.dll files with *.so files.
After you have copied the files, follow qxoz's link and copy the shell script to launch your app.