Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Building Qt 5.0.1 in Windows 8 with Visual Studio 2012

$
0
0
Hi everyone! I’m new to Qt, so excuse me if this is a basic question. I’m trying to build 32bit Qt 5.0.1 in Windows 8 (64bit) with Visual Studio 2012. I have downloaded qt-everywhere-opensource-src-5.0.1.zip and extracted it into c:\sdk\Qt\Qt5.0.1_src. Afterwards I open the VS2012 ×86 Native Tools Command Prompt and run the following batch to configure and build Qt: (the source is in c:\sdk\Qt\Qt5.0.1_src, the batch is in c:\sdk\Qt, and the Qt build will be at c:\sdk\Qt\Qt5.0.1_release_vc110_w32 after completion): Call Setup_32bit_env_vars.bat MKDIR Qt5.0.1_release_vc110_w32 CD Qt5.0.1_release_vc110_w32 SET log_file=..\build.log C:\SDK\Qt\Qt5.0.1_src\qtbase\configure.exe -prefix C:\SDK\Qt\Qt5.0.1_release_vc110_w32 -release -opensource -confirm-license -shared -make tools -make libs -nomake examples -nomake tests -qt-sql-mysql -l libmysql -qt-sql-odbc -l odbc32 -qt-sql-sqlite -l SQLite3 -platform win32-msvc2012 -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -openssl -l libeay32 -l ssleay32 -mp  >> %log_file%  2>&1 C:\SDK\QT\JOM\jom.exe -j 8  >> %log_file%  2>&1 ECHO Finished building! The above mentioned Setup_32bit_env_vars.bat is as follows: SET QTDIR=C:\SDK\Qt\Qt5.0.1_src\qtbase SET QMAKESPEC=C:\SDK\Qt\Qt5.0.1_src\qtbase\mkspecs\win32-msvc2012 SET PATH=C:\SDK\Python\ActivePython2.7_w32\;C:\SDK\Python\ActivePython2.7_w32\Scripts;C:\SDK\Python\ActivePython2.7_w32\DLLs;C:\SDK\Perl\StrawberryPerl5.16_w32\c\bin;C:\SDK\Perl\StrawberryPerl5.16_w32\perl\site\bin;C:\SDK\Perl\StrawberryPerl5.16_w32\perl\bin;C:\SDK\Ruby\Ruby200_w32\bin;C:\SDK\icu4c_50.1.2\bin;C:\SDK\OpenSSL\openssl-1.0.1e_release_vc110_w32\bin;C:\SDK\Qt\Qt5.0.1_src\qtbase\bin;C:\SDK\Qt\Qt5.0.1_src\qtbase\gnuwin32\bin;%PATH% SET INCLUDE=C:\SDK\icu4c_50.1.2\include;C:\SDK\OpenSSL\openssl-1.0.1e_release_vc110_w32\include;C:\SDK\mysql-5.6.10\include;C:\Program Files (x86)\Windows Kits\8.0\Include\um;C:\SDK\SQLite_3.7.15.2\source\SQLite3;%INCLUDE% SET LIB=C:\SDK\icu4c_50.1.2\lib;C:\SDK\OpenSSL\openssl-1.0.1e_release_vc110_w32\lib;C:\SDK\mysql-5.6.10\libmysql\release;C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86;C:\SDK\SQLite_3.7.15.2\bin\release_vc110_w32;%LIB% The script listed above completes successfully without any errors and I get the Qt dlls at C:\SDK\Qt\Qt5.0.1_release_vc110_w32\bin. The problem is that I only get the following dlls: libEGL.dll, libGLESv2.dll, Qt5Concurrent.dll, Qt5Core.dll, Qt5Gui.dll, Qt5Network.dll, Qt5OpenGL.dll, Qt5PrintSupport.dll, Qt5Sql.dll, Qt5Test.dll, Qt5Widgets.dll, Qt5Xml.dll My question is: What should I do to build the remaining libraries like Qt5Multimedia.dll, Qt5Qml.dll, Qt5Quick.dll, Qt5Script.dll, Qt5Svg.dll, Qt5WebKit.dll, … I read that Qt5 is now more modular, but couldn’t find any instructions on how to build the remaining modules. Do I need to download something more? Please help!! Note: If I use nmake instead of jom I get the error listed bellow. Is this a known bug, or nmake requires a different kind of setup? ...  cd libGLESv2\ && ( if not exist Makefile C:\SDK\Qt\Qt5.0.1_release_vc110_w32\bin\qmake C:\SDK\Qt\Qt5.0.1_src\qtbase\src\angle\src\libGLESv2\libGLESv2.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile install   Microsoft (R) Program Maintenance Utility Version 11.00.51106.1 Copyright (C) Microsoft Corporation.  All rights reserved.    "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile.Release install   Microsoft (R) Program Maintenance Utility Version 11.00.51106.1 Copyright (C) Microsoft Corporation.  All rights reserved.   NMAKE : fatal error U1073: don't know how to make 'C:\SDK\Qt\Qt5.0.1_release_vc110_w32\lib\translator_common.lib' ...

Viewing all articles
Browse latest Browse all 18427

Trending Articles