[SOLVED] Importing necessary dlls to application
-
Please read the link I have provided. You can use the windeployqt tool, which is a one-liner ;-)
-
Thank's for that! Now I have all the stuff I need to carry with my executable.
But that will not finally solve my problem, because I'd really like to import all those files into my executable, so I can upload the executable to my website and a user can simply download and run it.
There must be a way to import those files into the executable and export them on users computer to a specific destination... Like an installer, but it should be possible to do it without external tools... -
[quote author="Binary91" date="1415626008"]it should be possible to do it without external tools...[/quote]
maybe it should, but it is not possible right now.
As said, you can try static compilation, but it is not easy to make it work.
-
Oh my god, that sucks a bit.. Well, then I'll have to settle for the solution above, offering my program as a folder like it would be after an installation...
Thank you for your support! :-)
-
You can pack it into a zip, or even to sfx to make it self-executable. But that is still an additional step.
-
Yep, already done. So at least, it's only one file :-P
-
Hi again,
at least, I spent a little time reading the source of AutoHotkey and its command "FileInstall".
Combining that with rummaging the windows MSDN website, I noticed the windows resource system (http://msdn.microsoft.com/en-us/library/windows/desktop/ff468900(v=vs.85).aspx).I changed the pure C code and adjusted it to Qt standard. The result is a useful class that allows simple usage of an import/export routine to create setup files and extract its contents on other computers.
Only problem is, that this code might be Windows dependent. For those who are interested in a platform independent way, feel free to help yourself :-PYou can find the library and the User Interface I did on "this Wiki page":http://qt-project.org/wiki/Import-Export-resources-for-setup-creation :-)
-
code moved to "this wiki page":http://qt-project.org/wiki/Import-Export-resources-for-setup-creation <<
-
code moved to "this wiki page":http://qt-project.org/wiki/Import-Export-resources-for-setup-creation <<
-
code moved to "this wiki page":http://qt-project.org/wiki/Import-Export-resources-for-setup-creation <<