Creating a Qt Release Providing MSVC ++ Runtime Library Error

I have a perfectly working application (exe with about 16 DLLs) when building in debug mode. However, as soon as I switch to Release, you will get exe and all the DLL files, all the necessary DLL files copied from the QtSDK bin file, I get a runtime error.

How exactly should I eliminate what is happening? Is this a common problem? I do not get any entry points etc. To even start with .. just a common runtime error.

The only similar question I found is here , but this is from a much older version of Qt. 4.7.4 has only one bin folder.

Change 1 . I commented everything from my main.cpp, except to create my MainWindow object and everything from my MainWindow constructor, so it should just open an empty window - Runtime library error.

enter image description here

Note. Saving in release mode and starting the debugger starts the application in order. Debug -> Start and Debug External Application also results in an error in this Runtime Library.

+4
source share
2 answers

I apologize to everyone. The QtSingleApplication libraries seem to be working incorrectly. I implemented this to force open all files open for a single instance. I recompiled it and it still does not work, but just using QApplication seems to allow the runtime library. I will need to learn a little QtSingleApplication and understand why this is a pain.

Thanks for the quick comments whatever :)

0
source

Add also libEGL.dll.

See this error for more details: https://bugreports.qt-project.org/browse/QTBUG-28766

+1
source

Source: https://habr.com/ru/post/1441163/


All Articles