简体   繁体   中英

how to setup Qt5 static in window 10 using command line

i am compile dynamic Qt5 and getting binaries successfully. but when i move my binaries to other compile i am getting QT5gui.dll missing Error . so now i want to setup Qt5 statically . and also want to know how to set environment variables please help me .

a good guide for this (static deployment) can be found here: https://boffinblogger.blogspot.com/2018/12/static-compile-of-qt-5120-using-visual.html

It will take quite some time to run the nmake/jom step if you have a computer with a lower number of cores. Definitely use Jom instead of nmake if you can.

Also, if your only problem is that when you move the dynamic binaries you get the dll errors, you need to run windeployqt.exe in the location of your exe (example path: C:\\Qt\\5.12.1\\msvc2017_64\\bin\\windeployqt.exe). open cmd, cd to the location of your new program and paste the path of the windeployqt.exe for the qt version that you used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM