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. Unable to run program outside Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Unable to run program outside Qt Creator

Scheduled Pinned Locked Moved Solved Installation and Deployment
8 Posts 3 Posters 739 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.
  • D Offline
    D Offline
    diniamo
    wrote on last edited by diniamo
    #1

    I've been spending a whole day trying to figure this out. From all that Googling, I only managed to find out that the problem is with my opencv_world453.dll (I'm using it because I couldn't figure out how to include only the ones I need, if someone could tell me that, I'd appreciate that as well). I'm not 100% sure, but I copied every lib of QT along with every plugin, and the same error occured.

    I have done every step I could find on the internet, I always get the same error:
    e49b0add-a43d-4d6e-a7ca-e9ba1265989a-image.png

    I don't know what else to write here, but feel free to ask for any information you may need.

    jsulmJ 1 Reply Last reply
    0
    • D diniamo

      I've been spending a whole day trying to figure this out. From all that Googling, I only managed to find out that the problem is with my opencv_world453.dll (I'm using it because I couldn't figure out how to include only the ones I need, if someone could tell me that, I'd appreciate that as well). I'm not 100% sure, but I copied every lib of QT along with every plugin, and the same error occured.

      I have done every step I could find on the internet, I always get the same error:
      e49b0add-a43d-4d6e-a7ca-e9ba1265989a-image.png

      I don't know what else to write here, but feel free to ask for any information you may need.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @diniamo said in Unable to run program outside Qt Creator:

      but I copied every lib of QT along with every plugin, and the same error occured

      You need to do this correctly. See https://doc.qt.io/qt-5/windows-deployment.html and use Windows Deployment Tool.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • D Offline
        D Offline
        diniamo
        wrote on last edited by
        #3

        I tried that as well, but I found on another site that I should copy all the files from the 2 said locations and try it like that. Same error.

        jsulmJ 1 Reply Last reply
        0
        • D diniamo

          I tried that as well, but I found on another site that I should copy all the files from the 2 said locations and try it like that. Same error.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @diniamo said in Unable to run program outside Qt Creator:

          I found on another site that I should copy all the files from the 2 said locations

          You should rather believe what official documentation says. There is NO need to call everything. Use the deployment tool and then tell us what problem you get.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • D Offline
            D Offline
            diniamo
            wrote on last edited by
            #5

            But it doesn't work. The error seen on the image occurs either way.
            (Sorry for the late response new users are limited)

            J.HilkJ 1 Reply Last reply
            1
            • D diniamo

              But it doesn't work. The error seen on the image occurs either way.
              (Sorry for the late response new users are limited)

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @diniamo entry point errors usually are because of the wrong libraries, Compiler or architecture miss match.

              delete everything besides your executable, and potential other files your apple explicitly requires, in the installation folder.

              Than run the correct windeployqt tool, the one found in the Qt folder that you used to compile the exe in the first place


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              1 Reply Last reply
              1
              • D Offline
                D Offline
                diniamo
                wrote on last edited by diniamo
                #7

                ddfbf3d5-923c-4499-aec2-4ee52a4bffd1-image.png

                Which one now?
                I used the mingw one before.
                Also windeploy won't copy my opencv library.

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  diniamo
                  wrote on last edited by
                  #8

                  So it seems like I've actually been compiling with msvc and I should have used the windeploy.exe from there. Thanks for the help.

                  1 Reply Last reply
                  1

                  • Login

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