[SOLVED] Is the static build option for Qt 5.1.1 broken?
-
Hi all,
I'm new to Qt and have just finished my first desktop application. I would like to try and deploy a stand alone application and therefore have tried to build it statically but I have an issue from step one! I try to setup Qt to build statically by typing the following in the command line:
"
cd C:\path\to\Qt
configure -static <any other options you need>"
I'm pretty certain I'm in the right directory but i receive the following error:
"configure is not recognized as an internal or external command"So:
- Do I have a problem with my PATH and if so what must I add to it?
- is it just a problem with Qt 5.1.1 (as stated here: http://stackoverflow.com/questions/18940926/making-static-buildstandalone-application-with-qt) and if so what can I do to fix this?
Any help would be appreciated!
-
Can you find the configure.bat or configure.exe in your current directory?
-
Hi and welcome to devnet,
To add to 1+1=2, did you download Qt's sources ? Or installed them when you installed Qt ?
-
Thanks for the quick replies! @1+1=2 No I can't find them, @SGaist is that my problem I need to download Qt sources, as I can't find them in my Qt folder which makes me think that I have not downloaded (or installed them)! Where do I get them and how do I install them.
(sorry if this is a simple question, just want to make sure I do it right) -
Just download the zip source file (even if its bigger than the tar.gz) to have the sources with the correct line endings.
-
Thanks SGaist! Works! Now for the next problem:
I'm just trying to follow the Qt tut on building statically on windows(found here: http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html)and when i get to the step:
mingw32-make sub-src
I receive the following error:
mingw32-make: *** No rule to make target `sub-src'. Stop.I have read a few ppl have encountered this problem but there does not seem to be an easy way around it!
(I'm slightly confused as to why the Qt tutorial for deploying on windows is almost impossible to follow!) -
just call mingw32-make
-
Thanks SGaist, that did work but kept encountering error after error and after readying many blogs with ppl encountering the same problems I decided to stop wasting time and made it a dynamic build! It pretty sad though that Qt is so awesome up until the deployment point where it gets impossible for first timers like me!