Qt Static Build Configuration
-
Hi Qt Forum,
I have recently built the static version of Qt 5.10.1 using the qt-everywhere-src. During the build process I use the following command.
configure -release -nomake examples -nomake tests -skip qtwebengine -opensource -static -prefix C:\QT\qt-everywhere-src-5.10.1 -redo -recheck-all
I wish to understand all of the options and the documentation about the available options seems to be lacking, or i can't find it. My question is what does the -opensource option do? I have a Qt commercial licence so do I need to remove it or should I use another flag?
Furthermore, if i want to build Qt for a 64 bit application what changes do I make to this process?
Thanks in Advance
-
With opensource you are basically stating that you are planning to use the opensource licenses as descrbied on the Qt download page. I guess the other option is commercial and you have to give the license number. Presumably the information is somehow compiled into the libraries. When you are not using the opensource flag there shold a question pop up during the configuration process.
You did not state which compiler and OS you are using?
Basically the compilation 64 vs 32 bit depends on the tool chain you are using for compilation. For MinGW 64 bit compilation you can find this wiki entry.
[koahnig added] Sorry, just saw your MSVC2015 tag. There is only an old entry for VS
-
Thanks for the reply.
I am using MSVC2015 as the compiler on Windows 7. If i remove the -opensource and set it off it just states that:
This is the Qt Open Source Edition. You have already accepted the terms of the Open Source license.
And then it goes on to compile.
-
Not sure, but probably you have to do a "nmake distclean" in between or it finds your license information. However, this is the opensource forum. You would need to approach the commercial, they have to able to give the proper answer.