dll missing



  • 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


  • Qt Champions 2017

    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.



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


  • Qt Champions 2017

    @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.


  • Banned

    This post is deleted!

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.