![]() For Microsoft Visual Studio to create the library and compile all the demos, examples, tools and tutorials type: nmake The actual commands needed to build Qt depends on your development system. This is usually done by selecting Microsoft Visual Studio 2005|Visual Studio Tools| from the Start menu. For instance, you need to do this if you have Visual Studio 2005 installed and want to compile Qt using the 圆4 compiler because the 32-bit and 64-bit compiler both use the same qmake specification file. In some cases you need to set up the compilation environment before running configure in order to use the right compiler. This is done by pasing -platform to configure for example: configure -platform win32-msvc If you have multiple compilers installed, and want to build the Qt library using a specific compiler, you must specify a qmake specification. The Configuration Options for Qt page gives a brief overview of these. Type configure -help to get a list of all available options. ![]() To configure the Qt library for your machine, type the following command in a Visual Studio command prompt: C: Note: If you don't use the configured shells, which is available in the application menu, in the Open Source Versions of Qt, configure requires that sh.exe is not in the path or that it is run from msys. This will depend on your choice of software development environment. You may also need to ensure that the locations of your compiler and other build tools are listed in the PATH variable. This is done by adding c:\Qt\4.8.5\bin to the PATH variable.įor newer versions of Windows, PATH can be extended through the Control Panel|System|Advanced|Environment variables menu. In order to build and use Qt, the PATH environment variable needs to be extended: PATH - to locate qmake, moc and other Qt tools Note: The install path must not contain any spaces or Windows specific file system characters. Uncompress the files into the directory you want Qt installed e.g. For example on Windows 2000, %USERPROFILE% should be something like C:\Documents and Settings\usernameįor the open source version you do not need a license file. This renaming process must be done using a command prompt on Windows, not with Windows Explorer. If you have the commercial edition of Qt, copy the license file from your account on into your home directory (this may be known as the userprofile environment variable) and rename it to. Step 1: Install the License File (commercial editions only) Integration with Visual Studio is available as part of the Qt Commercial Edition. Open Source Versions of Qt is not officially supported for use with any version of Visual Studio. If you have obtained a binary package for this platform, consult the installation instructions provided instead of the ones in this document. Qt for Windows has some requirements that are given in more detail in the Qt for Windows Requirements document.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |