Can't get a simple .exe file to run from Command Prompt , but instead getting System Error



  • I'm see this problem with Qt 5.1.1 for Windows 32-bit (MinGW 4.8, OpenGL, 666 MB) (Info)

    What I'm seeing is a System Error window pop up with the following text " The Program can't
    start because Qt5Core.dll is missing from your computer. Try reinstalling the program to fix this
    problem". Also the Command Prompt window appears, it just stays there until you
    press the Ok button on the System Error window and then both windows goes away.

    So I copied this .dll file into the folder containing the .exe file and I still get the same
    error. I even copied the .exe file to the .bin folder that contains all those .dll files ad I still get
    the same error.

    I did not see this with Qt 5.1.1 for Windows 32-bit (VS 2010, 505 MB) (Info), I had to
    get the above version as to compile a project.

    I happen to save the bin folder before uninstalling this version and went to a project's folder
    for a simple QT Console Application that I figured out which .dlls were required to allow the *.exe
    to run from a Command Prompt. I re-ran it and there was no problem .. IT WORKED as before.


  • Lifetime Qt Champion

    Hi,

    Please don't post almost the same question multiple times

    "Duplicate":http://qt-project.org/forums/viewthread/35686/



  • Hi .. I was able to figure out my problem.

    After MUCH research by searching the Internet and trial -n- error ...

    It turns out that I was using the wrong bin folder (C:\Qt\Qt5.1.1\tools\QtCreator\bin) as the source for copy .dll files to the folder
    containing the .exe I was trying to get to work on it's own.

    The error messages I was encounter was NOT clear to this person who is NEW to using QT.

    I ended up using the Folder C:\Qt\Qt5.1.1\5.1.1.\mingw48_32\bin (Qt 5.1.1 for Windows 32-bit (MinGW 4.8, OpenGL, 666 MB)
    as the source for those .dll files that needs to be copied from.

    I guess I was lucky with the other QT version (Qt 5.1.1 for Windows 32-bit (VS 2010, 505 MB) that I was using before I had to uninstall it and install another
    version of QT (Qt 5.1.1 for Windows 32-bit (MinGW 4.8, OpenGL, 666 MB) as to get the project to compile/run correctly.

    I would highly recommend you make a copy of this folder as working folder to be used as the SOURCE because it so easy to end up moving/deleting those files in
    process of getting those .exe files to work such that you would end up having uninstall/re-install the QT again as a starting place.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.