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

Making the exe deployable



  • Hello,

    I designed a GUI software in qt and made it deployable using "windeployqt.ext". It worked just fine.
    Then, I had to add some control for a ethernet to GPIO board and needed to integrate the dlls provided by the GPIO board manufacturer. Following their example code, I integrated it and it worked fine if I open the GUI in QT creator.
    However, when I generated the deployable version using the same way I did, it did not work. Initially, it complained about some missing DLLs. After I added the missing DLLs, the error pops up when I launch the software saying "The application was unable to start correctly (0xc000007b)"
    I really have no idea why this error is coming out and why it works fine in QT creator.
    Can anyone shed some light to it please?
    Thanks,

    Gonggdori



  • Thank you all for your help.
    I was able to see that one of the DLLs were different when I used it on the development PC vs when it was used in the deployment system. Copying the DLL from the development PC to the deployment system fixed the issue.
    It was funny that the DLL provided by the manufacturer did not work. :(
    Thanks again for your help



  • @gongdori even when you missed to stated your development and runtime environments, I assume both are Windows...

    You may want to use dependency walker tool to check the DLLs "provided by the GPIO board manufacturer" to see what other files these DLLs are depending on that is available on your Qt Creator environment but seems lacking in your runtime environment.

    In any case, it looks ins't related to Qt itself since everything was fine with your application before you did this feature enhancements.



  • Hi, also, usually that error "The application was unable to start correctly (0xc000007b)" occurs when there's a mixup of 32-bit and 64-bit flavors of the same DLL.
    For example, if you manually copied msvcp140.dll etc. you'll find the 32-bit versions in Windows\SysWOW64 and the 64-bit versions in Windows\System32.



  • Thank you all for your help.
    I was able to see that one of the DLLs were different when I used it on the development PC vs when it was used in the deployment system. Copying the DLL from the development PC to the deployment system fixed the issue.
    It was funny that the DLL provided by the manufacturer did not work. :(
    Thanks again for your help



  • @gongdori said in Making the exe deployable:

    windeployqt.ext

    I didn't read or hear about "windeployqt.ext" may you please tell me what is it? I'm using open source distro of Qt



  • @tansgumus said in Making the exe deployable:

    I didn't read or hear about "windeployqt.ext" may you please tell me what is it? I'm using open source distro of Qt

    Two things please. The post is marked as "solved" so the idea is that no more activity should occur in it. You may want to start a new post with your question. And regarding that, you may want to search for "windeployqt.exe"...


Log in to reply