Current location - Health Preservation Learning Network - Healthy weight loss - How to automatically add build version number in Qt software
How to automatically add build version number in Qt software
When you enter the decompressed source package, you can use the. /configure–help command. Then we only need to select the parameter part, and we can see that the parameter -release is obvious, that is, Qt is compiled in release mode. Generally speaking, the library should be a released version after the system is completed. -release corresponds to the above, which is naturally a debug version. If you develop it, you can choose it. -debug-and-release, the son of the above two. -Developer.-Build, I was wrong. Developers can also use this. After choosing this, they can conduct automatic testing, but they haven't used it yet. They can study it in the future. The -opensource-commercial parameter refers to whether the compilation is a commercial version or an open source version, depending on the specific situation. The two parameters -shared-static refer to whether the lib of Qt is compiled dynamically or statically, which naturally depends on personal needs. -No-quick-quick is closely related to these two. If you have confidence in the performance of your computer, choose the first option, and all engineering files will generate makefiles. Then the compilation time is estimated to be enough to finish watching Transformers. If you choose the second option, add subdirectories and libraries in makefiles, which will speed up the compilation. -no-largefile-largefile, as the name implies, does it support large files? Generally speaking, there will be no large files larger than 4G in embedded systems, so choose the first one. -no-exceptions-exceptions Anyone who is good at computer English should understand that this is naturally an exception. If selected, the compiler supports throwing exceptions, otherwise it does not. -Accessibility-Accessibility support, to be honest, I really don't know what this is for. When you find out, explain it again -no-stl-stl all supports stl. Stl, it should be thought that c++ programmers should all understand. Worst of all, they have always heard of big names. No-SQL-<; Driver & gt-Qt-SQL-<; Driver & gt- plug-in-SQL-<; Driver & gt This can be well explained. Generally speaking, for an excellent project development, the database is essential, and qt also comes with most database drivers, which can perfectly support the use of the database. For the use of database, we can directly use qt driver or compile in the form of plug-in. Generally speaking, the simplest method is to compile directly, but you can add driver plug-ins by using plug-ins according to different needs, which is more flexible. Among them,