Unsolved Qt static build VS2015
-
Hello, i'm trying to build static version of Qt using this guide. I get strange error and what lies behind it i really don't know, hope u may have some idea. The error is on picture:
https://postimg.org/image/53hkwxfgp/
It seems the error related to the mingw compiler somehow, but why?Btw i have installed Mingw on my machine.Thanks in advance!
I used the following configure options- configure -prefix C:\Qt\QtStatic -opensource -platform win32-msvc2012 -debug-and-release -shared -c++11 -nomake examples -nomake tests -icu -confirm-license
-
Image upload does not work here, see https://forum.qt.io/topic/62615/how-to-insert-image-on-this-forum/19
-
thanks for answer! can you view it now?
-
Sorry, should ha specified it better. You need to upload the image on another site like https://postimage.org/
-
Why do you use win32-msvc2012 if you want to use VS2015?
Why do you use -shared if you want to have a static build? -
@jsulm said in Qt static build VS2015:
Why do you use win32-msvc2012 if you want to use VS2015?
Why do you use -shared if you want to have a static build?- switched to msvs2013 but result is same.
- yes, that's my mistake.
i'll try to do it again and will come back here with some result. Thanks anyway! Btw is it really possible and can be achieved or it's just a huge pain?
-
@Ivan-Netskin It is possible, but I don't really see a big advantage. You have to build Qt by yourself, which is not always an easy task. You can use http://doc.qt.io/qt-5/windows-deployment.html to collect all needed DLLs.
-
Hi
Note: If you use static linking (of Qt),
you must supply the source code for the program or
own a Qt license to use it closed sourced. -
Okay:
- I changed the QMAKESPEC system variable to win32-msv2013(since i've installed qt with msvc 2013 compiler)
2)then start the Developer Command Prompt for VS2015
3)ran the following configure command :
configure -prefix C:\Development\Qt\Static\qtbase -opensource -platform win32-msvc2013 -debug-and-release -static -c++11 -nomake examples -nomake tests -icu -confirm-license
and while configuring i'm getting the following error
it seems the error somehow related to the MinGW since the error means:
g++ is not a valid command. Any help is highly appreciated, thanks in advance! - I changed the QMAKESPEC system variable to win32-msv2013(since i've installed qt with msvc 2013 compiler)
-
@Ivan-Netskin said in Qt static build VS2015:
then start the Developer Command Prompt for VS2015
VS2015? You said you installed MSVC2013, right?
Regarding last error: you should clean up and do a new build.