C:\Development\qt-everywhere-opensource-src-5.0.1
set PATH=C:\Development\Perl64\bin;C:\Development\Python27;C:\Development\Ruby193\bin;%PATH%
«C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\VsDevCmd.bat»
. set CL=/MP set INCLUDE=C:\Development\icu-50.1.2-shared-vs2012\include;%INCLUDE% set LIB=C:\Development\icu-50.1.2-shared-vs2012\lib;%LIB% set PATH=C:\Development\icu-50.1.2-shared-vs2012\bin;%PATH%
set CL=/MP
command, we most likely indicate to the nmake
utility that we have several kernels: "Therefore, please parallelize the compilation tasks." cd C:\Development\qt-everywhere-opensource-src-5.0.1
set PATH=%PATH%;%CD%\gnuwin32\bin cd .\qtwebkit set WEBKITOUTPUTDIR=%CD%\WebkitBuild cd ..\
set WEBKITOUTPUTDIR=%CD%\WebkitBuild
under the big question, do you need it here? It was taken from the manual on a separate qtwebkit compilation. set INCLUDE && set LIB && set PATH
C:\Development\qt-everywhere-opensource-src-5.0.1\:
configure -prefix C:\Development\Qt\5.0.1_MSVC2012\qtbase -opensource -platform win32-msvc2012 -debug-and-release -shared -c++11 -nomake examples -nomake tests -icu -confirm-license
-prefix C:\Development\Qt\5.0.1_MSVC2012\qtbase
we -prefix C:\Development\Qt\5.0.1_MSVC2012\qtbase
installation location of our Qt.-confirm-license
simply skips the -confirm-license
acceptance request.-platform win32-msvc2012
point handles the platform. It seems to me that it can be determined automatically.-debug-and-release
collects two options at once, both for debugging and without it. More options: -debug
or -release
.-c++11
. Strange, but for some reason this parameter is ignored, although a new standard is declared in VS2012. By the way, while trying to build for MinGW 4.7 was also ignored. I wonder how Linux is for gcc?-nomake examples -nomake tests
do not collect an example for us and tests are unnecessary, but if you want, you can leave out-shared
. This parameter defines the future of your future Qt applications (I don’t know how to say it differently). If it is specified (although, in my opinion, it is defined by default), then all the assembled applications will depend on the presence of installed libraries on the machine. That is, with the transfer even to the neighbor's computer will be trouble. To build independent applications, use -static
. But future applications will grow significantly in size (10 KB against 10 MB in a simple helloworld program with a GUI). configure -help
nmake
command and smoke, drink tea, cook, sleep, etc. After many hours of assembly (or multi-day), you can run the nmake install
command. It will copy your library to the specified directory in the -prefix
parameter.PATH
was a python version 3.3, but I didn’t do this thing:set PATH=%PATH%;%CD%\gnuwin32\bin
nmake
out due to the lack of some kind of win_flex
. I was crazy because it was my third attempt to build the entire library with qtwebkit , and just entered nmake install
. The library was copied, but not completely. Again fell out when trying to copy an uncompiled qtwebkit .C:\Development\icu-50.1.2-shared-vs2012\lib
in the PATH
and restart the studio, as a result, everything starts in the studio without any problems. QtCreator, after setting up this library, refused to launch successfully built applications normally. For some reason they flew with an error. Running the assembled application from the build directory turned out to be missing D3DCOMPILER_46.dll. I don’t know what to do with it. I would be glad if you tell me. set PATH=%PATH%;%CD%\gnuwin32\bin cd .\qtwebkit set WEBKITOUTPUTDIR=%CD%\WebkitBuild perl Tools\Scripts\build-webkit --qt --qmake=”%CD%\\..\\qtbase\\bin\\qmake.exe” --install-libs= (install der) --release --makeargs=%MAKEFLAGS%
nmake
now quarreled with MAKEFLAGS . Launched without this argument: perl Tools\Scripts\build-webkit --qt --qmake=”%CD%\\..\\qtbase\\bin\\qmake.exe” --install-libs= (install der) --release
nmake
began to complain about the absence of MainThreadQt.moc . Therefore, I entered nmake clean
and went to the qt shared folder. Already from there I launched nmake
(now %CD%\gnuwin32\bin
added to the path ), and, miraculously, it works, IT IS GOING TO. And from the moment he fell out (he checked that the collected ones already exist and reached the first unassembled). True, after a while he fell out again. Now let me down python version 3.3. Somewhere on the Internet I read that it is worthwhile to install version 2.7, which I did. Restarted the command line after installing and replacing the path to python in the PATH variable. I re-registered all the set
and entered nmake
. He continued his work.qtwebkit\webcore
he finished qtwebkit\webcore
version and began to “cook” release object handlers, which will take the same time.nmake
collecting qtwebkit for about 8 hours in a row. It has now been more than a day since the last launch of nmake
. I hasten to rejoice (perceived in two ways) - in a day and 6 hours he collected qtwebkit , another 2 - 4 hours were spent at the very beginning on assembling the main library. Another 2 - 3 hours was spent on additional utilities, such as QtDesigner , Linguist and Assistant . The assembly was completed successfully, without failures. The folder with the source files has grown from 700 - 800 MB to 10 GB!C:\Development\Qt\5.0.1_MSVC2012\
weighs 1.22 GB. Through Visual Studio Add-in 1.2.0 for Qt5 to VS2012, everything “clings” remarkably, only one problem, all Qt compiled applications, even QtDesigner require some kind of D3DCOMPILER_46.dll . I found it at C:\Program Files (x86)\Windows Kits\8.0\Redist\D3D\x86\
. And also required the library icudt50.dll , icuin50.dll , icuuc50.dll , which are located in C:\Development\icu-50.1.2-shared-vs2012\lib
.Source: https://habr.com/ru/post/168671/
All Articles