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!
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.
I'm writing a Qt based project using Visual Studio 2008 Compiler . In the debug mode every thing is OK and the program compiled and linked successfully but when I switch to release mode and I start to compile I get this error during linking :
1>Linking...
1>MSVCRT.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain#16 referenced in function ___tmainCRTStartup
1>release\\MobnaPC.exe : fatal error LNK1120: 1 unresolved externals
But main function has defined!
Thank you in advance
I am working with a Qt based project in visual c++. Initially I installed Qt 4.7.3 and imported its libraries in visual c++. Everything was working fine. yesterday, I ran "configure" command on command on command prompt. After that I am receiving error messages while compiling the program.
So I uninstalled Qt 4.7.3 and installed 4.7.4 and configured again the libraries. But still I am receiving the same error messages.
Qwt.lib(moc_qwt_scale_widget.obj) : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QWidget::staticMetaObject" (?staticMetaObject#QWidget##2UQMetaObject##B)
1>Qwt.lib(moc_qwt_dyngrid_layout.obj) : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QLayout::staticMetaObject" (?staticMetaObject#QLayout##2UQMetaObject##B)
1>..\Debug\project.exe : fatal error LNK1120: 9 unresolved externals
1>
Can anyone please help me in this issue.
Its a linker error.. you need to compile your headers that contain Q_OBJECT macro with moc compiler. Look at this guys solutions
Q_OBJECT Problem in Visual C++