Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Can't get a simple .exe file to run from Command Prompt , but instead getting System Error

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

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 2.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jasonzz
    wrote on 5 Dec 2013, 00:22 last edited by
    #1

    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.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 5 Dec 2013, 08:25 last edited by
      #2

      Hi,

      Please don't post almost the same question multiple times

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jasonzz
        wrote on 5 Dec 2013, 21:58 last edited by
        #3

        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.

        1 Reply Last reply
        0

        1/3

        5 Dec 2013, 00:22

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved