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. dll missing
Qt 6.11 is out! See what's new in the release blog

dll missing

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.2k 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.
  • Z Offline
    Z Offline
    Zetta
    wrote on last edited by
    #1

    Hi. I am a beginner in this.
    I am developing a program, etc.
    When I open my program from the qtcreator it opens normal. but when I go to release/(name) .exe it tells me that qt5gui.dll, qt5core.dll, qt5network.dll and qt5widgets.dll are missing.
    I tried putting the files in windows/sysWOW64 and it works fine, but as I do so that someone else can open it on their desktop without putting those dll.

    Thank you so much, I waiting for your answers

    K 1 Reply Last reply
    1
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi and welcome to the forums

      What you need is a so called deployment folder.
      It just means , you need to place the DLLS next to the exe to have it run on other systems.
      There is a tool to help get the needed DLLS.
      https://doc.qt.io/Qt-5/windows-deployment.html
      ( how many dlls it needs, depends on what features you used in your program)

      Also skim over this. it explains what the folder is and structure:
      http://www.tripleboot.org/?p=138

      and DO NOT put any of the DLLS in windows/sysWOW64. its not a good idea. :)

      When you have a deployment folder. you then use an install maker to make a setup.exe other people
      can just run and it copies the dlls to the program folder for your program to use.
      That is the normal way.

      Z 1 Reply Last reply
      2
      • mrjjM mrjj

        Hi and welcome to the forums

        What you need is a so called deployment folder.
        It just means , you need to place the DLLS next to the exe to have it run on other systems.
        There is a tool to help get the needed DLLS.
        https://doc.qt.io/Qt-5/windows-deployment.html
        ( how many dlls it needs, depends on what features you used in your program)

        Also skim over this. it explains what the folder is and structure:
        http://www.tripleboot.org/?p=138

        and DO NOT put any of the DLLS in windows/sysWOW64. its not a good idea. :)

        When you have a deployment folder. you then use an install maker to make a setup.exe other people
        can just run and it copies the dlls to the program folder for your program to use.
        That is the normal way.

        Z Offline
        Z Offline
        Zetta
        wrote on last edited by
        #3

        @mrjj thank you very much for answering, I will try

        mrjjM 1 Reply Last reply
        0
        • Z Zetta

          @mrjj thank you very much for answering, I will try

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Zetta
          Just a few hints.
          Make exe in release mode
          never mix Qt DLLs with D in name and no D.
          (debug Qt dlls have D last in name )
          Sometimes on some system, like win 7, the compilers runtimes dlls are also needed.
          Like for visual studio or mingw.

          1 Reply Last reply
          2
          • Z Zetta

            Hi. I am a beginner in this.
            I am developing a program, etc.
            When I open my program from the qtcreator it opens normal. but when I go to release/(name) .exe it tells me that qt5gui.dll, qt5core.dll, qt5network.dll and qt5widgets.dll are missing.
            I tried putting the files in windows/sysWOW64 and it works fine, but as I do so that someone else can open it on their desktop without putting those dll.

            Thank you so much, I waiting for your answers

            K Offline
            K Offline
            khushbu
            Banned
            wrote on last edited by
            #5
            This post is deleted!
            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