How to Deploy a Qt Widgets Applications on Windows

Поделиться
HTML-код
  • Опубликовано: 14 дек 2024

Комментарии • 89

  • @coolbrotherf127
    @coolbrotherf127 2 года назад +17

    You're a life saver. Idk why their documentation is so cryptic, I couldn't find out how to do this anywhere else.

    • @Zero-se4xb
      @Zero-se4xb 8 месяцев назад +2

      Bro it's so bad. Then people on forum's are like "did you even read the documentation?" 😭

  • @dhyey2316
    @dhyey2316 8 месяцев назад +2

    This was very helpfull. Thanks man

  • @Muhammad-phi
    @Muhammad-phi 3 месяца назад +1

    The most informative video among Qt tutorials

  • @JustinTime101
    @JustinTime101 3 месяца назад

    even in sept 2024 i couldnt find any info on how to accomplish this, THANK YOU SO MUCH! you saved me a probable 4 extra hours of banging my head trying to figure it out.

  • @ilmu011
    @ilmu011 2 года назад +1

    At 1:24 it is also important not to delete any .dll files that were generated by other libraries. Generally the release build folder will already contain the .dll files from libraries that are included from vcpkg for example, which are also needed to run the program. So you can delete anything other than the .exe and the .dll files

  • @rickfuzzy
    @rickfuzzy 4 месяца назад

    Quick and concise. Nice work

  • @rizkiepratama
    @rizkiepratama Год назад

    Thanks this guide is to the point and much clearer than the other one i've read / watch. Kudos.

  • @DonsT199
    @DonsT199 2 года назад

    Thank you so much . just started Qt and trying this for more than 1 hour.. simply explained thanks a lot man...

  • @nicolacasali8304
    @nicolacasali8304 Год назад

    Thank you. Those were very clear and easy instructions.

  • @richardgg2889
    @richardgg2889 Год назад +1

    Wow, thanks for putting it this simple (y)

  • @aleksybalazinski
    @aleksybalazinski 3 года назад +1

    Thanks a lot man, super easy to follow!!

  • @琢也小林-o4d
    @琢也小林-o4d Год назад

    Thank you!! Very Useful.

  • @MdBinMonjurAzmine
    @MdBinMonjurAzmine 3 месяца назад

    thanks man your the best!!

  • @befu155
    @befu155 3 года назад +2

    Thanks for the video. Easy to follow. It solved my problem to run built QT executables without QT Creator :-)

  • @Ibbiins
    @Ibbiins 11 месяцев назад

    You sir, are a gentleman and a scholar 🍷

  • @sinakarimi8273
    @sinakarimi8273 4 месяца назад

    God bless you,saved my day

  • @PhantasyAI0
    @PhantasyAI0 Год назад +2

    Can you make a video on doing a static build? Meaning all libraries and everything are in the .exe so we can ship it without dll's so on? PLEASE bro I know this is a old video, can't figure out how to do it.

  • @sagivalia5041
    @sagivalia5041 2 года назад

    Very well explained and concise.

  • @frankreeser4400
    @frankreeser4400 Год назад

    Very useful and to the point! Thank you.

  • @shashanksnayak
    @shashanksnayak 3 года назад

    Great video man!! Thanks alot

  • @QonCalculations
    @QonCalculations 2 года назад +1

    Thanks..Got it done smoothly

  • @MahmoudSayed-hg8rb
    @MahmoudSayed-hg8rb Год назад +2

    Thanks man. I was starting to collapse

    • @VelcodeCS
      @VelcodeCS  Год назад +2

      Ah, the collapse! Good times!

  • @re_allyedge
    @re_allyedge 3 года назад

    Such a cool channel, helped a lot

  • @MaksGMaks
    @MaksGMaks Год назад +1

    I try your method but... it still requires another dll, libgcc_s_seh-1 and libstdc++-6. When I put this files to project folder it goes into error 0xc0000007b on win11 or 0xc0000005 in win7

  • @anujraymajhi812
    @anujraymajhi812 3 года назад

    really ...i mean it.... you saved the day man...

  • @riemanncode4512
    @riemanncode4512 3 года назад +3

    it gives me back the following error: "the execution of the code cannot continue because libgcc_s_seh-1.dll was not find". If I try to copy and paste that file manually it will give me back another error so that I'm not able to run myfile.exe... How can I solve this? thanks

    • @riemanncode4512
      @riemanncode4512 3 года назад

      I followed this procedure (ruclips.net/video/hCXAgB6y8eA/видео.html&ab_channel=Produxtive) and now it's working.. it seems like using windeployqt from powershell it's not giving me back some important .dll

    • @VelcodeCS
      @VelcodeCS  3 года назад

      Not sure what you were doing, but I've done it with PowerShell. Glad it is working for you now.

  • @tahashaker3231
    @tahashaker3231 11 месяцев назад

    Very useful, thank you so much

  • @somasundaram79
    @somasundaram79 2 года назад

    Useful video. I was able to create windows standalone app just like that .

  • @catorlife
    @catorlife 8 месяцев назад

    hello, I see you are doing this through Visual Studio (which use extension), is there anyway to do this in Qt Creator? I try your way in video but looks like the .exe file build by Qt Creator didn't work for this method
    well it did install some .dll files into the folder but when I run the .exe file I show "The procedure entry point _Z9qBadAllocv coud not be located in the dynamic link library"

  • @smallfarminventor
    @smallfarminventor 9 месяцев назад

    Nice work thanks so much!

  • @Broughtvulture
    @Broughtvulture Год назад

    ur a sasvior thanks for this tutorial

  • @MohamadAmen469
    @MohamadAmen469 3 года назад

    thanks bro, you helped my a lot, i was scared from the deploying part

  • @gianlucarenzi7706
    @gianlucarenzi7706 Год назад

    Unluckly this way of working does not work for me. I have Qt 5.15 latest, and MSVC 2019 and using Qt Creator the .../../release folder has the exe file, and it runs. When adding all libraries and stuff with windeployqt ../../../release/myApp.exe and clicking on it from the icon, it does not start. It does say anything. It simply does not start at all. I tried running from PowerShell either but, it returns to the prompt without openinig anything. Any clue?

  • @rydjaradat
    @rydjaradat 3 года назад

    Thank you very much this saved me a lot of time ..... Good job.

  • @jakesutton9822
    @jakesutton9822 Год назад

    This helped a lot thanks do

  • @oukzizyasmine5800
    @oukzizyasmine5800 3 года назад

    sir lah irdi 3lik (God bless you )

    • @VelcodeCS
      @VelcodeCS  3 года назад +1

      Thanks! You too! What language is that?

  • @saharbadis
    @saharbadis 2 года назад

    thanks very very much... you help me a lot

  • @mr.artist486
    @mr.artist486 11 месяцев назад

    That's really helpful explanation. Thank a lot for this tutorial!!! I just have one question, whenever I double click on .exe file, it first runs a terminal window and then it runs the application window. How can I avoid that? How can I avoid the terminal window that is appearing after double click on executable file?
    Thanks,

    • @VelcodeCS
      @VelcodeCS  11 месяцев назад

      You have to change your build to a non command prompt build. I believe it's called Win32 build for GUI applications. In my Qt6 setup video, I show (although I don't mention it) how to in the cmake file. It should provide you a hint.

  • @HaseebHeaven
    @HaseebHeaven 3 года назад

    Thanks alot for this.

  • @thorstenfricke3257
    @thorstenfricke3257 10 месяцев назад

    thank you!!!!!

  • @ilmu011
    @ilmu011 3 года назад

    Incredibly helpful, thanks!
    I didn't know you could hold shift to "open powershell here"
    Until now I always had to navigate to folders from C:\ xD

    • @VelcodeCS
      @VelcodeCS  3 года назад

      You're welcome! I certainly took into my tool belt the hold-shift-to-open shortcut, very useful :D

  • @lopo8000
    @lopo8000 2 года назад

    Thank You first i didn't watch the video but after watching it's very helpfull i was having those error of qcore.dll

    • @VelcodeCS
      @VelcodeCS  2 года назад

      Glad you figured it out!

  • @Smmmile
    @Smmmile 2 года назад

    Thanks very much.

  • @paulhoshovsky877
    @paulhoshovsky877 Год назад

    Thanks for the video. A slightly different situation to consider. My app will run within QT Creator 11.0.2 and on other machines that do not have QT installed. The difference is that the button icon images do not show up outside of Creator. I used windeployqt with the --compile-runtime and the --release option with no change. I use the MingGW 32 bit compiler and discover that windeployqt (as noted elsewhere) does not include a number of DLLs. adding the missing ones eventually causes my app not to execute. Any ideas on how to get the button images to be embedded in the app? thanks

    • @VelcodeCS
      @VelcodeCS  Год назад

      windeploy will only get you the dlls to run your application. The resources your application needs at runtime need to be further configured. For example, you may need to have as part of your deployment a script that copies your resources over to the deployed folder (for example). You also have to make sure the paths are set properly, which may or may not be different from your build. I hope this helps!

  • @MrThegame000
    @MrThegame000 3 года назад +1

    Hello, great video mate, simple and clear. Do you konow how can I deploy it if I have downloaded external libs in my project ?

    • @VelcodeCS
      @VelcodeCS  3 года назад

      You would have to include those library dlls in the same directory where your exe is (can copy paste). It's what I've done with executables of mine that use other libraries, and it works.

    • @MrThegame000
      @MrThegame000 3 года назад

      @@VelcodeCS But in my .pro file (in the original project folder), I mentionned the path of my libs (ex. C:/Program/Libs.) And in the release folder where .exe is, how is it supposed to browser those lib in an other system since it can be a different path of libs. like ( D:/Program ).

    • @VelcodeCS
      @VelcodeCS  3 года назад +1

      @@MrThegame000 So, by putting in the .pro file, it knows where to look for said libs (as you stated). The only way the user in another system can run your application when in need of those libs is for you to provide those libs as well (it is what Qt does for example. The qtdeploy.exe just copies the dlls needed to the directory where you have the .exe). With that being said, you either copy paste those libs and send them together to the other system, or you'll have to install them in the other machine and add their location to the path.
      In essence, the executable runs and looks at the current directory and the PATH variable. If it can't find the libs it needs in either, then it'll give you missing lib errors. Does that make sense?

    • @MrThegame000
      @MrThegame000 3 года назад

      @@VelcodeCS Hello, again ! My apologies for my late answer. Thank you for this explanation. If I want to go with this solution " you either copy paste those libs and send them together to the other system". I should just paste them ( both .lib and .dlls files) in the release directory ?

    • @VelcodeCS
      @VelcodeCS  3 года назад

      @@MrThegame000 You should only need the dlls, but you would have to give it a try and see. I use another library called VTK, and, when deploying the application, I copy the VTK library dlls over. Then I can run the application in other machines.

  • @saikaushik6520
    @saikaushik6520 3 года назад

    Hey can you help, how to run with Cmd using Microsoft compiler I need to automate the process using bat script

    • @VelcodeCS
      @VelcodeCS  3 года назад

      I made it part of my cmake build by running that same command. I think you should be able to do the same in your bat file.

  • @syrym_the_professor
    @syrym_the_professor 10 месяцев назад

    What if I want to have only an exe file?

  • @mauriliomotasilva3613
    @mauriliomotasilva3613 Год назад

    This way the application opens but the database does not. Can you give me any tips?

    • @VelcodeCS
      @VelcodeCS  Год назад

      It depends on your database setup. I would need more information on that to help.

  • @jeevans3810
    @jeevans3810 3 года назад

    Thanks

  • @ngzod3477
    @ngzod3477 3 года назад

    ty

  • @p.r.167
    @p.r.167 5 месяцев назад

    it does not work for me
    I have an error like missing dll

  • @mehrdadakbari1721
    @mehrdadakbari1721 2 года назад

    Is there any way to make it a single exe file ?

    • @VelcodeCS
      @VelcodeCS  2 года назад

      I think there are ways to package everything together, but that's beyond Qt (I think).

  • @pranavtelang3355
    @pranavtelang3355 3 года назад +4

    Very useful, thank you so much for adding the information about environments that also helped me a lot.. (◠‿◕)

  • @spicygaming9528
    @spicygaming9528 Год назад +1

    Nah we found him the one who uses the light theme

  • @zdspider6778
    @zdspider6778 8 месяцев назад

    You could just make a .bat file with the following contents:
    "C:\Qt\6.6.2\mingw_64\bin\windeployqt6.exe" "C:\Other
    otepadapp\NotepadTut.exe"
    pause

  • @darshanshrm
    @darshanshrm 3 года назад

    I want to make installer of my qt application

    • @VelcodeCS
      @VelcodeCS  3 года назад

      I don't have much experience on making installers, but all the files that make up the app after using the executable. You can include all of that with your installer. Just a thought.

    • @NitishRaj
      @NitishRaj 3 года назад

      Pack them using NSIS. You may find on my channel.

    • @darshanshrm
      @darshanshrm 3 года назад

      Actually my application needs administrator privileges like everytime it want administrator password before run , So i want a installer that require administrator password only installing time and after installation application will not ask for the administrator password . Is that possible

    • @АндрейЯнкович-ю9н
      @АндрейЯнкович-ю9н 2 года назад

      just use CQtDeployer tool

  • @ajoshdoingthings541
    @ajoshdoingthings541 11 месяцев назад

    Ye, that's still an issue with Qt 6.6.1
    So i made an app for that xD

  • @أحمدإبراهيم-ز2و6ض
    @أحمدإبراهيم-ز2و6ض 9 месяцев назад

    Unluckly this way of working does not work for me. I have Qt 6.6 latest, and MSVC 2019 and using Qt Creator the .../../release folder has the exe file, and it runs. When adding all libraries and stuff with windeployqt ../../../release/myApp.exe and clicking on it from the icon, it does not start. It does say anything. It simply does not start at all. I tried running from PowerShell either but, it returns to the prompt without openinig anything. Any clue?

  • @lvrodrigues
    @lvrodrigues 10 месяцев назад

    Thanks