Trying to build QtWebEngine from current sources(git clone git://code.qt.io/qt/qt5.git qt5) followed this instructions https://wiki.qt.io/QtWebEngine_on_Windows, faced with problem where compilation breaks with this error message:
(set PATH=F:/webengine/qt5/gnuwin32/bin;%PATH:)=^)%) & win_bison --no-lines --skeleton=yacc.c --defines=glslang_tab.h --output=glslang_tab.cpp ..\..\..\3rdparty\angle\src\compiler\translator\glslang.y
..\\..\\..\\3rdparty\\angle\\src\\compiler\\translator\\glslang.y:48.1-6: error: invalid directive: '%param'
..\\..\\..\\3rdparty\\angle\\src\\compiler\\translator\\glslang.y:48.10-24: error: syntax error, unexpected {...}
NMAKE : fatal error U1077: '(set' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.EXE"' : return code '0x2'
Tried to google it, with no luck.
Please help!
Related
What does this error message mean? error MSB3073?
1>D:\BuildAgent\work\db3238a9996f31f9\DeployToEnvironment.proj(165,3): error MSB3073: The command ""C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin\SqlPackage.exe" ^
D:\BuildAgent\work\db3238a9996f31f9\DeployToEnvironment.proj(165,3): error MSB3073: /Action:Publish ^
As the title reads, ICC is apparently giving me some issues while compiling Qt 5.4.0 from source. Before trying this, I made a successful static build of Qt using msvc2013 and a copy of the same source files I am using for the ICC build (no static linking modifications on the mkspecs file for the ICC build, of course), and tested it with no issues.
The fact that it gave me no issues on one compiler but it is giving me issues now is why I've come to ask for any sort of help regarding the issue. The Build log is as follows:
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\d3d11.h(6050):warning #597: "CD3D11_QUERY_DESC::operator const D3D11_QUERY_DESC &() const" will not be called for implicit or explicit conversions
operator const D3D11_QUERY_DESC&() const { return *this; }
^
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\d3d11.h(6384):warning #597: "CD3D11_COUNTER_DESC::operator const D3D11_COUNTER_DESC &() const"
will not be called for implicit or explicit conversions
operator const D3D11_COUNTER_DESC&() const { return *this; }
^
C:\Program Files (x86)\Windows Kits\8.1\include\shared\dxgi1_2.h(1271): error: identifier "DXGI_RGBA" is undefined
_In_ const DXGI_RGBA *pColor) = 0;
^
C:\Program Files (x86)\Windows Kits\8.1\include\shared\dxgi1_2.h(1275): error: identifier "DXGI_RGBA" is undefined
_Out_ DXGI_RGBA *pColor) = 0;
^
../../../3rdparty/angle/src/common/mathutil.h(28): remark #3280: declaration hides member "gl::Vector4::x" (declared at line 30)
Vector4(float x, float y, float z, float w) : x(x), y(y), z(z), w(w) {}
^
../../../3rdparty/angle/src/common/mathutil.h(28): remark #3280: declaration hides member "gl::Vector4::y" (declared at line 31)
Vector4(float x, float y, float z, float w) : x(x), y(y), z(z), w(w) {}
^
../../../3rdparty/angle/src/common/mathutil.h(28): remark #3280: declaration hides member "gl::Vector4::z" (declared at line 32)
Vector4(float x, float y, float z, float w) : x(x), y(y), z(z), w(w) {}
^
../../../3rdparty/angle/src/common/mathutil.h(28): remark #3280: declaration hides member "gl::Vector4::w" (declared at line 33)
Vector4(float x, float y, float z, float w) : x(x), y(y), z(z), w(w) {}
^
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Intel\Composer XE 2015\bin\intel64\icl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
C:\Qt\Qt5.4.0-Intel\5.4\Src>
The first two warnings are just a couple from a bunch of warnings that looked pretty much just like those, so I just included those two seeing as most of the build process consisted of throwing a behemoth amount of warnings every 3 seconds and for every file. ICC paranoia, I presume.
What throws me off a little bit is the fact that the build log presents more warnings after the "identifier undefined" error, so I am unsure if that would be the error causing the build to fail or not. If that IS the issue, any idea on what might be causing it and why the msvc2013 build didn't struggle with it?
Differences between builds:
ICC, from Intel x64 Console:
>cd C:\Qt\Qt5.4.0-Intel\5.4\Src
>configure -mp -debug-and-release -angle -nomake tests -nomake examples -prefix C:\Qt\Qt5.4.0-Intel\5.4\ICC_64 -platform win32-icc
>nmake
Didn't modify any of the mkspecs files.
MSVC2013, from VS x64 Console:
>cd C:\Qt\QtSource\Src
>configure -mp -debug-and-release -static -angle -nomake tests -nomake examples -prefix C:\Qt\Qt5.4.0\5.4\msvc2013_64_opengl -platform win32-msvc2013
>nmake
>nmake -install
Modified win32-msvc2013 qmake.conf for static build.
I've got Win 7 x64 and i am trying to build static qt5.2.1 from source winth MSVC 2010 x86.
The problem is
Generating Code...
link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "
/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' versio
n='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture
='*'" /MANIFEST /MANIFESTFILE:release\musicplayer.exe.embed.manifest /OUT:releas
e\musicplayer.exe #C:\Users\AuST\AppData\Local\Temp\nm7949.tmp
Creating library release\musicplayer.lib and object release\musicplayer.exp
mt.exe /nologo /manifest release\musicplayer.exe.embed.manifest /outputr
esource:release\musicplayer.exe;1
cd quickplayer\ && ( if not exist Makefile E:\Lib\qt521static\qtbase\bin
\qmake E:\Lib\qt521static\qtwinextras\examples\winextras\quickplayer\quickplayer
.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BI
N\nmake.exe" -f Makefile
Project ERROR: Plugin qml_winextras is missing a classname entry, please add one
to the qmldir file.
NMAKE : fatal error U1077: 'cd' : return code '0x3'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
What can i do to fix this?
Just in case someone runs into the same issue, not compiling the examples will not work, although it seems an obvious solution. After comparing .qmake.conf in qtwinextras and in another module's directory, I added the following lines to the .qmake.conf (seems like there is a bug with configure for this module):
CONFIG += qt_example_installs
CONFIG += warning_clean
After that, compilation went on fine--of course without examples.
Is it possible to compile Qt for WindowsCE 5.0 using embeddedVisualC++ 4.0 instead of MSVC 2005? I tried by following the official tutorial but couldn't get it to work.
The 'configure' script runs without errors, but when calling nmake to actually build the libraries, I get the following errors:
E:\QT\SDK\QtSources\4.8.0.ce>nmake
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
cd src\winmain\ && NMAKE -f Makefile
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
NMAKE -f Makefile.Debug all
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
cl -c -nologo -Zm200 -Zc:wchar_t- -DDEBUG -D_DEBUG -Zi -MDd -W3 -w34100 -w34189 -EHs-c- -DQT_THREAD_SUPPORT -DUNDER_CE -DWINCE -D_WINDOWS -D_UNICODE -DUNICODE -D_WIN32 -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DSTANDARDSHELL_UI_MODEL -D_WIN32_WCE=0x500 -DARMV4I -D_ARMV4I_ -Darmv4i -D_ARM_ -DARM -D_M_ARM -DARM -D__arm__ -DQ_OS_WINCE_STD -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -D_USE_MATH_DEFINES -DQT_NO_DYNAMIC_CAST -I"..\..\include" -I"tmp" -I"..\..\include\QtCore" -I"e:\QT\SDK\QtSources\4.8.0.ce\include\qtmain" -I"tmp\rcc\debug_shared" -I"tmp" -I"..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"e:\QT\SDK\QtSources\4.8.0\src\winmain" -I"." -I"e:\QT\SDK\QtSources\4.8.0\mkspecs\wince50standard-armv4i-msvc2005" -Fotmp\obj\debug_shared\ #C:\Users\XYZ\AppData\Local\Temp\nma02104.
Command line warning D4002 : ignoring unknown option '-Zc'
Command line warning D4002 : ignoring unknown option '-Z:'
Command line warning D4002 : ignoring unknown option '-Zw'
Command line warning D4002 : ignoring unknown option '-Zc'
Command line warning D4002 : ignoring unknown option '-Zh'
Command line warning D4002 : ignoring unknown option '-Zr'
Command line warning D4002 : ignoring unknown option '-Z_'
Command line warning D4002 : ignoring unknown option '-Zt'
Command line warning D4002 : ignoring unknown option '-Z-'
Command line warning D4002 : ignoring unknown option '-w34100'
Command line warning D4002 : ignoring unknown option '-w34189'
qtmain_win.cpp
E:\Microsoft SDKs\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\winnt.h(383) : error C2467: illegal declaration of anonymous 'struct'
E:\Microsoft SDKs\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\winnt.h(402) : error C2467: illegal declaration of anonymous 'struct'
E:\Microsoft SDKs\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\winnt.h(6040) : error C2467: illegal declaration of anonymous 'struct'
E:\Microsoft SDKs\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\winnt.h(6049) : error C2467: illegal declaration of anonymous 'struct'
E:\Microsoft SDKs\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\winnt.h(6746) : error C2133: 'pEventLogRecords' : unknown size
E:\Microsoft SDKs\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\winnt.h(6752) : error C2133: 'ulOffsets' : unknown size
E:\Microsoft SDKs\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\winbase.h(1130) : error C2467: illegal declaration of anonymous 'struct'
E:\Microsoft SDKs\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\kfuncs.h(109) : error C2144: syntax error : missing ';' before type 'void'
E:\Microsoft SDKs\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\kfuncs.h(109) : error C2501: '_inline' : missing storage-class or type specifiers
E:\Microsoft SDKs\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\kfuncs.h(109) : fatal error C1004: unexpected end of file found
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"E:\Microsoft SDKs\Microsoft eMbedded C++ 4.0\COMMON\EVC\bin\NMAKE.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
Can you verify you have Service Pack 4 installed for eVC? That adds support for Windows CE 5.0.
Next, try creating a project using the eVC wizard of the same type as your QT project that targets the Windows CE 5.0 SDK. Copy the compiler and linker settings from that wizard-created project to your QT project.
Also make sure you don't have language extensions disabled. Try adding -Ze to your compiler flags
-PaulH
I am trying to configure Qt using the OpenGL parameter for a custom WinCE SDK, but I get a compiler error. I found a similar error faced in the http://www.qtcentre.org/threads/37052-WinCE-OpenGL-ES-build-error?s=7aa5ac49753e1c3f1e0b624bb9134faa post.
The link says to install OpenGL SDK from Imagination Technology, link the library, and include the file to solve the error.
When I tried the mentioned steps, I got linker errors.
link /LIBPATH:"c:\Qt\4.7.4_2\lib" /LIBPATH:"c:\Qt\4.7.4_2\lib" /NOLOGO /
NODEFAULTLIB:OLDNAMES.LIB /DEBUG /SUBSYSTEM:WINDOWSCE,6.00 /MACHINE:THUMB /DLL /
SAFESEH:NO /VERSION:4.74 /OUT:....\lib\QtGuid4.dll #C:\DOCUME~1\VARUN~1.JAJ\LOC
ALS~1\Temp\nm8796.tmp
Creating library ....\lib\QtGuid4.lib and object ....\lib\QtGuid4.exp
qegl.obj : error LNK2019: unresolved external symbol __imp_eglBindAPI referenced
in function "public: bool __cdecl QEglContext::createContext(class QEglContext
*,class QEglProperties const *)" (?createContext#QEglContext##QAA_NPAV1#PBVQEglP
roperties###Z)
....\lib\QtGuid4.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\ce\bi
n\x86_arm\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
make.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
Has anyone faced similar problems? Could you please suggest me what to do?