How To Compile Qt with Visual Studio. This post is a step- by- step guide on how to compile Qt 4. MSVC 2. 01. 0. Although we use Qt 4. Qt by MSVC 2. 01. Intel Compiler for both platforms x. All kudos go to numerous contributors, who spend their time to do all the tweaking and testing (see updates below). In particular there are instructions on how to build Qt 5 for x. Vincenzo Mercuri. Updates. December 2. Vincenzo Mercuri shared instructions for building Qt 5. December 1. 9, 2. Vincenzo Mercuri informed that he have compiled Qt 4. Also he shared his instructions for building Qt with Intel C++ Compiler into static library. November 4, 2. 01. As reported by Mike Pelton, whatnick and Borislav Stanimirov, 3. . Qt 4. 8. 3 have been successfully compiled by this guide, by both Visual Studio 2. Be aware that Qt might not be adjusted yet for Windows 8 (as reported here). June 4, 2. 01. 2: As reported by Wenqing, Qt 4. April 5, 2. 01. 2: As reported by Snouty, 3. Qt 4. 8. 1 has been successfully compiled by this guide. December 2. 0, 2. As reported by Evon, 6. Qt 4. 8. 0 has been successfully compiled by this guide. To do 6. 4bit compilation, please use Visual Studio x. Win. 64 Command Prompt (2. Also please use jom 1. Service Pack 1 for Visual Studio. September 1. 6, 2. Qt 4. 7. 4 has been successfully compiled by this guide. August 1. 4, 2. 01. In order to build Qt for 6. Visual Studio x. 64 Win. Command Prompt (2. Also install Service Pack 1 for Visual Studio 2. July 1. 8 2. 01. 1: Qt 4. Qt 4. 8 (beta) has been successfully compiled by this guide. Just replace version number where applicable. Build instructions. Visual C++ 2. 01. SDKs for Qt compilation. Microsoft Silverlight library, learning resources, downloads, support, and community. Evaluate and find out how to install and use Silverlight. MSDN Magazine Issues and Downloads. Read the magazine online, download a formatted digital version of each issue, or grab sample code and apps. Oracle acquired Sun Microsystems in 2010, and since that time Oracle's hardware and software engineers have worked side-by-side to build fully integrated systems and. ![]() However if you plan to use Qt with Phonon you need to install Direct. X SDK first. Install Perl if you are going to compile Qt > = 4. Download and extract Qt 4. Source Code. (Qt 4. Latest snapshot). Copy contents of the folder qt- everywhere- opensource- src- 4. Qt. In our case this is C: \Qt\4. Set up environmental variables. QTDIR=C: \Qt\4. 7. QMAKESPEC=win. 32- msvc. Update PATH variable to include %QTDIR%\bin. Download the latest version of jom. Extract jom files to C: \Qt\jom folder. Start Visual Studio 2. Command Prompt: Start > Programs > Microsoft Visual Studio 2. Visual Studio Tools > Visual Studio Command Prompt. Run following commands in it (every line is a different command: type it then press Enter): cd c: \Qt\4. NWhere N is number of CPU cores you want to utilize for Qt compilation. Larger is better. Download and install Qt Visual Studio Add- in. Run Visual Studio 2. Integrate just compiled Qt to IDE using menu Qt > Qt Options > Qt Versions > Add. Usually compilation takes about 1. Intel SSD drive it took only 2 hours 4. Windows 7, 6. 4bits)Remarks* Jom is nmake replacement for Qt compilation on multi- core CPU. Its parameter - j N allows to setup number of parallel processes for compilation. Number of physical CPU cores is a good choice for N.** Do not forget to use /d switch if you want to change drive in command prompt, e. Usual cd d: does not work anymore – a little “surprise” from Microsoft. Contributions* As Evon pointed in comments, Qt folder has huge size (approx. GB) after compilation. One can safely shrink its size by deleting temporary files created during the process. Once compiled Qt doesn’t depend on these intermediate files – and they can be erased without affecting Qt functionality. Run as last command in step 1. Note that PDB files will be deleted too (the files are rarely needed, only for debugging of Qt itself).** Rob provided his compilation script based on nmake with multi- core support. Loading ..
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2017
Categories |