Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Application file can not run
Forum Updated to NodeBB v4.3 + New Features

Application file can not run

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.6k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    romeo.rbw
    wrote on last edited by
    #1

    Hi...
    I make an application in a PC, it compiles using msvc 2010 release in Qt Creator.
    I copied the .exe file to another PC that have no Qt. I already copy .dll files to windows/system32, but it is still not work, the message display is:
    Run time error
    This application has requested the runtime to terminate it in an unusual way
    Please contact...

    And then I try to open Windows explorer in the first PC and try to run the application directly from the original release directory, it can not still run too.
    It seems it only run using Qt Creator.

    Could you have any have suggestion and help?
    Thanks

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      To solve your issue carefully explore the documentation about "deploying an application on Windows":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html If you want just to copy an exe and run it on another computer then you should build Qt statically and after that to link your app to it.

      http://anavi.org/

      1 Reply Last reply
      0
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Which dlls did you copy? The default package has some dependencies from ANGLE usage so you might have missed those. Also the visual studio runtime must be installed on the target machine or you need to provide dlls from it too.

        Other thing - please don't put stuff in system32. "It works" is not an argument. This is very window95ish garbage generation. There are proper places to distribute your libraries to so that the system and the user can easily cleanup after your app. Use them.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          romeo.rbw
          wrote on last edited by
          #4

          Hi..very kind from you all,
          I copied QtCore4.dll, QtGui4.dll, QtOpenGL4.dll, and others four dll from openCV: opencv_core220.dll, opencv_highgui220.dll, opencv_imgproc220.dll, and opencv_video220.dll
          I will explore more from your suggestion.

          1 Reply Last reply
          0

          • Login

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