D
D
Dmitry Orlik2018-10-27 10:24:07
C++ / C#
Dmitry Orlik, 2018-10-27 10:24:07

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.
5bd41260aa14a012486398.png5bd4126b5f646803554695.png5bd41273c8a98502005420.png5bd4127cc9660477713927.png5bd4128403046419876995.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
d0lph1n, 2018-10-27
@Rusik1337

blog.harrix.org/article/1015
Good detailed and, most importantly, working instructions.

R
res2001, 2018-10-27
@res2001

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 question

Ask a Question

731 491 924 answers to any question