Answer the question
In order to leave comments, you need to log in
How to run exe ve Qt Creator??
I run the compiled exe. An error appears .... there are no dll files. I run windeploqt, the necessary dlls are added, but not all. Missing libgcc_s_dw2-1.dll. I take it from the mingw/bin folder. And again an error... could not find the entry point.
In general, everything is in the screenshots .... tell me what to do. And maybe ... at some stage I was mistaken.
Answer the question
In order to leave comments, you need to log in
blog.harrix.org/article/1015
Good detailed and, most importantly, working instructions.
1. If it’s stupid, then run the software, it will swear at the lack of a library, look for this library in the depths of mingw, copy it to the directory with the executable file. Repeat the procedure until the software stops complaining about the lack of libraries.
2. A little more technologically advanced: take the dependency walker , open your executable file with it, see which libraries it depends on (you need to look in depth, and not just the first level) look for and copy the libraries similarly to step 1.
3. Cleverly: write the path mingw/bin in the PATH environment variable and enjoy. There is no need to copy anything.
But if you decide to distribute your software to other people, this will not save you from the need to eliminate dependencies, i.e. you will still need to either build all the libraries in the same directory as the executable, or force the user to install mingw and write its path to the PATH variable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question