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. [SOLVED] Qt 5.0.0 built with VS2012 : app exe doesn't run when outside Qt Creator
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Qt 5.0.0 built with VS2012 : app exe doesn't run when outside Qt Creator

Scheduled Pinned Locked Moved General and Desktop
8 Posts 5 Posters 23.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.
  • C Offline
    C Offline
    Code_ReaQtor
    wrote on last edited by
    #1

    I have Qt 5.0.0 that I built with VS2012 successfully.

    My applications (projects) executes normally when compiled+run inside Qt Creator (2.6.0) but when I execute the exe files outside, it doesn't.

    Compilation doesn't throw any errors plus running the apps outside Qt Creator doesn't pop-up any dialog boxes about any error.
    ... or simply "NOTHING HAPPENS"

    I added all the DLLs it need together with the exe and it isnt working. I used dependency walker to check but everything is satisfied.

    Any help? thanks!

    Please visit my open-source projects at https://github.com/Code-ReaQtor.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You need to copy windows QPA plugin to <your app dir>/plugins/platforms. The plugin (qwindows.dll) can be found in your Qt installation folder (qtbase/plugins/platforms).

      (Z(:^

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Code_ReaQtor
        wrote on last edited by
        #3

        Dear sierdzio,

        I followed your instructions but it still doesn't work:

        My app directory contains the following

        • app.exe
        • libGLESv2.dll
        • Qt5Core.dll
        • Qt5Gui.dll
        • Qt5Widgets.dll
        • plugins (folder)
          ** platforms (folder)
          *** qwindows.dll
          *** qminimal.dll

        I did the same with the debug build and this time a messageBox popped-up:

        bq. Debug Error!
        Program: <project_path>\debug\Qt5Cored.dll
        Module: 5.0.0
        File: kernel\qguiapplication.cpp
        Line: 780
        Failed to load platform plugin "windows". Available platforms are:
        minimal
        windows

        I typed all what I saw in the messagebox. It has 3 buttons, abort, retry and ignore. All the buttons were "useless" since app terminates. Maybe this can help. Thanks.

        PS: Still runs inside Qt Creator.... I think I am just missing something

        Please visit my open-source projects at https://github.com/Code-ReaQtor.

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

          "platforms" should be directly on the level of your app, not in the "plugins" directory.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Code_ReaQtor
            wrote on last edited by
            #5

            [quote author="Krzysztof Kawa" date="1357925061"]"platforms" should be directly on the level of your app, not in the "plugins" directory.[/quote]

            I also did that and failed. Same message popped-up but the words "windows" and "minimal" are repeated like this:

            bq. minimal
            windows
            minimal
            windows

            Please visit my open-source projects at https://github.com/Code-ReaQtor.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Code_ReaQtor
              wrote on last edited by
              #6

              works now!

              copying libEGL.dll or *libEGLd.dll into the app directory is also needed

              too bad the app doesn't pop-up any messages that it is needed!

              Please visit my open-source projects at https://github.com/Code-ReaQtor.

              1 Reply Last reply
              0
              • W Offline
                W Offline
                WizzZZ
                wrote on last edited by
                #7

                You might want to read this:

                http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html

                helped me a lot!

                There is only 10 types of people in the world: those who understand binary and those who don't.

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  rwxc
                  wrote on last edited by
                  #8

                  Thank you!! It works indeed after libEGL.dll got copied.

                  [quote author="Code_ReaQtor" date="1358250411"]works now!

                  copying libEGL.dll or *libEGLd.dll into the app directory is also needed

                  too bad the app doesn't pop-up any messages that it is needed![/quote]

                  Indeed! That's what I expected too.

                  Cheers

                  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