12/28/2022 0 Comments How to compile qt for mac on linuxUsual cd d: does not work anymore – a little “surprise” from Microsoft. ** Do not forget to use /d switch if you want to change drive in command prompt, e.g: cd /d d. Number of physical CPU cores is a good choice for N. Its parameter -j N allows to setup number of parallel processes for compilation. * Jom is nmake replacement for Qt compilation on multi-core CPU. Usually compilation takes about 10 hours, but thanks to jom and Intel SSD drive it took only 2 hours 40 minutes on my machine (Windows 7, 64bits) Remarks Integrate just compiled Qt to IDE using menu Qt > Qt Options > Qt Versions > Add Download and install Qt Visual Studio Add-in.Where N is number of CPU cores you want to utilize for Qt compilation. Run following commands in it (every line is a different command: type it then press Enter):Ĭonfigure -debug-and-release -opensource -platform win32-msvc2010.Start > Programs > Microsoft Visual Studio 2010 > Visual Studio Tools > Visual Studio Command Prompt. Start Visual Studio 2010 Command Prompt:.Update PATH variable to include %QTDIR%\bin.Copy contents of the folder qt-everywhere-opensource-src-4.7.1 to the directory where you intend to install Qt.Download and extract Qt 4.7.1 Source Code.Install Perl if you are going to compile Qt >= 4.8.0.However if you plan to use Qt with Phonon you need to install DirectX SDK first. Visual C 2010 contains all necessary SDKs for Qt compilation.Just replace version number where applicable. July 18 2011: Qt 4.7.3 and Qt 4.8 (beta) has been successfully compiled by this guide. Also install Service Pack 1 for Visual Studio 2010 beforehand – it fixes few bugs related to 圆4 compilation. September 16, 2011: Qt 4.7.4 has been successfully compiled by this guide.Īugust 14, 2011: In order to build Qt for 64 bits just use Visual Studio 圆4 Win64 Command Prompt (2010) in step 8. Also please use jom 1.06 and don’t forget to install Service Pack 1 for Visual Studio. To do 64bit compilation, please use Visual Studio 圆4 Win64 Command Prompt (2010) in step 8. June 4, 2012: As reported by Wenqing, Qt 4.8.2 has been successfully compiled by this guide.Īpril 5, 2012: As reported by Snouty, 32bit version of Qt 4.8.1 has been successfully compiled by this guide.ĭecember 20, 2011: As reported by Evon, 64bit version of Qt 4.8.0 has been successfully compiled by this guide. Be aware that Qt might not be adjusted yet for Windows 8 (as reported here). November 4, 2012: As reported by Mike Pelton, whatnick and Borislav Stanimirov, 32
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |