Hi all,

I am trying to build QT 5.6.0 against Visual Studio 2015. I configured the Qt as follows:

configure -static -debug-and-release -commercial -confirm-license -opengl desktop -no-compile-examples -nomake tools -nomake examples -nomake tests -openssl-linked -I C:\OpenSSL-Win32\include -L C:\OpenSSL-Win32\lib\VC\static OPENSSL_LIBS="-lUser32 -lAdvapi32 -lGdi32"
However, I got the following error after some time:


link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFEST DEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.
0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:debug\adueditor.exe @C:\Users\ayav\AppData\Local\Temp\nm3B66.tmp
Qt5SerialBusd.lib(qmodbusdevice.obj) :
error LNK2005: "class QLoggingCategory const & __cdecl QT_MODBUS(void)" (?QT_MODBUS@@YAABVQLoggingCategory@@XZ) already defined in mainwindow.objQt5SerialBusd.lib(qmodbusdevice.obj) :
error LNK2005: "class QLoggingCategory const & __cdecl QT_MODBUS_LOW(void)" (?T_MODBUS_LOW@@YAABVQLoggingCategory@@XZ) already defined in mainwindow.obj debug\adueditor.exe : fatal error LNK1169: one or more multiply defined symbols
found NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0 \VC\BIN\link.EXE"' : return code '0x491'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\VC\BIN\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.
Any thoughts?