Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Question - including .dll into .exe



  • Hello, I have a small problem with my application. When I run it, it asks me for mingwm10.dll, QtGui4.dll and other dlls. I want single exe-file, which will include all needed dlls. I know that I can simply put this dlls into directory with my program, but I need one executable. How to do it?
    P.S. I'm sorry, I'm not good in English.





  • When I try to build qt statically I have another problem. I run cmd, then run "configure -static -platform win32-g++" but it says somewhere at the end "execute: file or path not found (mingw32-make)", "cleaning qmake failed, return code -1"
    How to solve this?



  • Make sure mingw32-make.exe is in your PATH.



  • This takes an amount of time, but I have done it! I use two Qt folders, one with static, other with shared libraries. And I use "UPX":http://upx.sourceforge.net/ for packing application. It is pretty good!
    P.S. Which folders are really needed to buid programs with static libraries in folder "c:/Path/to/Qt/qt"?



  • Uh, I tested my program at another computer, and it still requires "libgcc_s_dw2-1.dll". How to link this library with application?



  • Hi,
    Is the Static linking supposed to work with QML applications as well? I went through the steps mentioned on the link above, the executable builds, but when I run it independently it just shows a white window.

    Thanks!


  • Moderators

    Pavgran: Please make sure you are aware of the licensing implications of static linking. Basically the LGPL licensing option is not available when linking statically.



  • I have the exact same problem.
    Running a static linked QML application and getting a white window.
    What am I doing wrong ?

    [quote author="Onddo" date="1294847742"]Hi,
    Is the Static linking supposed to work with QML applications as well? I went through the steps mentioned on the link above, the executable builds, but when I run it independently it just shows a white window.

    Thanks![/quote]


Log in to reply