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] "Can't start because QtGui4.dll is missing from your computer"
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] "Can't start because QtGui4.dll is missing from your computer"

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 67.1k 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.
  • V Offline
    V Offline
    vezprog
    wrote on last edited by
    #1

    I am developing on windows in debug mode. When I build my application, and go to the built folder in debug, this error occures when trying to open the exe.

    "the program can't start because qtgui4.dll is missing from your computer, Try reinstalling the program to fix this problem".

    Any idea what is going on, or has anyone seen this before?

    P.S. I downloaded the QtSDK (Qt4) online and installed it directly. I am using the QtCreator to develop.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      p-himik
      wrote on last edited by
      #2

      You can read about it in "this article":http://developer.qt.nokia.com/doc/qt-4.7/deployment-windows.html#id-4dd365a0-4e08-4810-9d5b-5be62a8baaca

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Seba84
        wrote on last edited by
        #3

        Hello dvez43,

        I dealt with this problem some weeks ago and I found a fast solution. You should:

        1. Go to the directory: QtSDK\QtCreator\bin
        2. Select all the libraries you need (.dll)
        3. Copy them to your programs folder

        This should work. Anyway, the proper way is the one described above by p-himik.
        Hope this helps you.

        Regards,
        Sebastian

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          The approach indicated by Seba84 works, and is quite reasonable I think. I use it all the time. The underlying problem you have is that when you start your application from within Qt Creator, the environment variables (paths and stuff like that) are different then when you start your application directly. That means that in that last scenario, the application cannot find the libraries (they are not in your path) that it could find when starting from Creator. Because the current directory is always a valid search path, putting the DLL's there always works. And it is one way to avoid DLL hell...

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vezprog
            wrote on last edited by
            #5

            Thank you very much for your replies! I will test this.

            1 Reply Last reply
            0
            • V Offline
              V Offline
              vezprog
              wrote on last edited by
              #6

              The method you stated is working. I started working on another project but had to come back to this issue. I added my Qt library directory to the environment variable PATH. Works like a charm now. Thank you!

              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