qt 5 problem in building with visual studio 2015



  • I tried to build qt 5.4 statically with visual studio 2015 so I passed to configure :
    configure -static -release -prefix E:\programs\qt6 -openssl -I C:\openssl\include -L C:\openssl\lib -openssl-linked -script -l Gdi32 -l crypt32 -l User32 OPENSSL_LIBS="-lssleay32 -llibeay32" -confirm-license -platform win32-msvc2013 -icu -I E:\programs\icu\include -L E:\programs\icu\lib

    I passed 2013 after I edited its specs to use visual 2015 instead

    and I got configuration which has icu support

    then run jom then jom install

    but I saw that qtscript and qtwebkit weren't built so I tried to build them manually
    I run
    qmake -o Makefile qtscript.pro
    then nmake
    but I get :

    Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
    Copyright (C) Microsoft Corporation. All rights reserved.

    cd src\ && ( if not exist Makefile E:\programs\qt6\bin\qmake.exe E:\programs\mingw-packages\qt-everywhere-opensource-src-5.4.2\qtscript\src\src.pro -o Makefile ) && "E:\Adobe Acrobat X\visual\VC\BIN\nmake.exe" -f Makefile
    

    Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
    Copyright (C) Microsoft Corporation. All rights reserved.

    cd script\ && ( if not exist Makefile E:\programs\qt6\bin\qmake.exe E:\programs\mingw-packages\qt-everywhere-opensource-src-5.4.2\qtscript\src\script\script.pro -o Makefile ) && "E:\Adobe Acrobat X\visual\VC\BIN\nmake.exe" -f Makefile
    

    Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
    Copyright (C) Microsoft Corporation. All rights reserved.

    "E:\Adobe Acrobat X\visual\VC\BIN\nmake.exe" -f Makefile.Release
    

    Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
    Copyright (C) Microsoft Corporation. All rights reserved.

    cl -c -Yc -Fp.pch\release\Qt5Script_pch.pch -Fo.pch\release\Qt5Script_pch.obj -nologo -Zm200 -Zc:wchar_t -FS -wd4291 -wd4344 -wd4396 -wd4503 -wd4800 -wd4819 -wd4996 -wd4396 -wd4099 -O2 -MT -Zc:strictStrings -D_HAS_EXCEPTIONS=0 -GR -DUNICODE -DWIN32 -DJSC=QTJSC -Djscyyparse=qtjscyyparse -Djscyylex=qtjscyylex -Djscyyerror=qtjscyyerror -DWTF=QTWTF -DQT_NO_USING_NAMESPACE -DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DQT_BUILD_SCRIPT_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DLOG_DISABLED=1 -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DNOMINMAX -D_CRT_RAND_S -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DNDEBUG -DJS_NO_EXPORT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB -I"." -I"..\3rdparty\javascriptcore\JavaScriptCore" -I"..\3rdparty\javascriptcore" -I"..\3rdparty\javascriptcore\JavaScriptCore\assembler" -I"..\3rdparty\javascriptcore\JavaScriptCore\bytecode" -I"..\3rdparty\javascriptcore\JavaScriptCore\bytecompiler" -I"..\3rdparty\javascriptcore\JavaScriptCore\debugger" -I"..\3rdparty\javascriptcore\JavaScriptCore\interpreter" -I"..\3rdparty\javascriptcore\JavaScriptCore\jit" -I"..\3rdparty\javascriptcore\JavaScriptCore\parser" -I"..\3rdparty\javascriptcore\JavaScriptCore\pcre" -I"..\3rdparty\javascriptcore\JavaScriptCore\profiler" -I"..\3rdparty\javascriptcore\JavaScriptCore\runtime" -I"..\3rdparty\javascriptcore\JavaScriptCore\wrec" -I"..\3rdparty\javascriptcore\JavaScriptCore\wtf" -I"..\3rdparty\javascriptcore\JavaScriptCore\wtf\symbian" -I"..\3rdparty\javascriptcore\JavaScriptCore\wtf\unicode" -I"..\3rdparty\javascriptcore\JavaScriptCore\yarr" -I"..\3rdparty\javascriptcore\JavaScriptCore\API" -I"..\3rdparty\javascriptcore\JavaScriptCore\ForwardingHeaders" -I"..\3rdparty\javascriptcore\JavaScriptCore\generated" -I"C:\openssl\include" -I"E:\programs\icu\include" -I"..\..\include" -I"..\..\include\QtScript" -I"..\..\include\QtScript\5.4.2" -I"..\..\include\QtScript\5.4.2\QtScript" -I"tmp" -I"..\3rdparty\javascriptcore\JavaScriptCore\os-win32" -I"E:\programs\mingw-packages\qt-everywhere-opensource-src-5.4.2\qtscript\src\3rdparty\javascriptcore\WebKit\qt\Api" -I"..\3rdparty\javascriptcore\JavaScriptCore\pcre" -I"E:\programs\mingw-packages\qt-everywhere-opensource-src-5.4.2\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\tmp" -I"..\3rdparty\javascriptcore\JavaScriptCore" -I"..\3rdparty\javascriptcore\JavaScriptCore\parser" -I"..\3rdparty\javascriptcore\JavaScriptCore\bytecompiler" -I"..\3rdparty\javascriptcore\JavaScriptCore\debugger" -I"..\3rdparty\javascriptcore\JavaScriptCore\runtime" -I"..\3rdparty\javascriptcore\JavaScriptCore\wtf" -I"E:\programs\mingw-packages\qt-everywhere-opensource-src-5.4.2\qtscript\src\script\..\3rdparty\javascriptcore\JavaScriptCore\unicode" -I"..\3rdparty\javascriptcore\JavaScriptCore\interpreter" -I"..\3rdparty\javascriptcore\JavaScriptCore\jit" -I"..\3rdparty\javascriptcore\JavaScriptCore\profiler" -I"..\3rdparty\javascriptcore\JavaScriptCore\wrec" -I"..\3rdparty\javascriptcore\JavaScriptCore\API" -I"..\3rdparty\javascriptcore\JavaScriptCore\bytecode" -I"..\3rdparty\javascriptcore\JavaScriptCore\assembler" -I"..\3rdparty\javascriptcore\JavaScriptCore\generated" -I"." -I"parser" -I"E:\programs\mingw-packages\qt-everywhere-opensource-src-5.4.2\qtbase\include\QtCore\5.4.2" -I"E:\programs\mingw-packages\qt-everywhere-opensource-src-5.4.2\qtbase\include\QtCore\5.4.2\QtCore" -I"E:\programs\mingw-packages\qt-everywhere-opensource-src-5.4.2\qtbase\include" -I"E:\programs\mingw-packages\qt-everywhere-opensource-src-5.4.2\qtbase\include\QtCore" -I".moc\release" -I"E:\programs\qt6\mkspecs\win32-msvc2013"  -TP ..\..\include\QtScript\QtScriptDepends
    

    QtScriptDepends
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(23): error C2039: 'int_least8_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(23): error C2873: 'int_least8_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(23): error C2039: 'int_least16_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(23): error C2873: 'int_least16_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(24): error C2039: 'int_least32_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(24): error C2873: 'int_least32_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(24): error C2039: 'int_least64_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(24): error C2873: 'int_least64_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(25): error C2039: 'uint_least8_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(25): error C2873: 'uint_least8_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(25): error C2039: 'uint_least16_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(25): error C2873: 'uint_least16_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(26): error C2039: 'uint_least32_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(26): error C2873: 'uint_least32_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(26): error C2039: 'uint_least64_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(26): error C2873: 'uint_least64_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(28): error C2039: 'int_fast8_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(28): error C2873: 'int_fast8_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(28): error C2039: 'int_fast16_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(28): error C2873: 'int_fast16_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(29): error C2039: 'int_fast32_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(29): error C2873: 'int_fast32_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(29): error C2039: 'int_fast64_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(29): error C2873: 'int_fast64_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(30): error C2039: 'uint_fast8_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(30): error C2873: 'uint_fast8_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(30): error C2039: 'uint_fast16_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(30): error C2873: 'uint_fast16_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(31): error C2039: 'uint_fast32_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(31): error C2873: 'uint_fast32_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(31): error C2039: 'uint_fast64_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(31): error C2873: 'uint_fast64_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(33): error C2039: 'intmax_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(33): error C2873: 'intmax_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(34): error C2039: 'uintmax_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(34): error C2873: 'uintmax_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(43): error C2039: 'int_least8_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(43): error C2873: 'int_least8_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(43): error C2039: 'int_least16_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(43): error C2873: 'int_least16_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(44): error C2039: 'int_least32_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(44): error C2873: 'int_least32_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(44): error C2039: 'int_least64_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(44): error C2873: 'int_least64_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(45): error C2039: 'uint_least8_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(45): error C2873: 'uint_least8_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(45): error C2039: 'uint_least16_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(45): error C2873: 'uint_least16_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(46): error C2039: 'uint_least32_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(46): error C2873: 'uint_least32_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(46): error C2039: 'uint_least64_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(46): error C2873: 'uint_least64_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(48): error C2039: 'int_fast8_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(48): error C2873: 'int_fast8_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(48): error C2039: 'int_fast16_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(48): error C2873: 'int_fast16_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(49): error C2039: 'int_fast32_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(49): error C2873: 'int_fast32_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(49): error C2039: 'int_fast64_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(49): error C2873: 'int_fast64_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(50): error C2039: 'uint_fast8_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(50): error C2873: 'uint_fast8_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(50): error C2039: 'uint_fast16_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(50): error C2873: 'uint_fast16_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(51): error C2039: 'uint_fast32_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(51): error C2873: 'uint_fast32_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(51): error C2039: 'uint_fast64_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(51): error C2873: 'uint_fast64_t': symbol cannot be used in a using-declaration
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(53): error C2039: 'intmax_t': is not a member of 'global namespace'' E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(53): error C2873: 'intmax_t': symbol cannot be used in a using-declaration E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(54): error C2039: 'uintmax_t': is not a member of 'global namespace''
    E:\Adobe Acrobat X\visual\VC\INCLUDE\cstdint(54): error C2873: 'uintmax_t': symbol cannot be used in a using-declaration
    NMAKE : fatal error U1077: '"E:\Adobe Acrobat X\visual\VC\BIN\cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"E:\Adobe Acrobat X\visual\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

    then I tried to build qtwebkit but I got

    The WebKit build was disabled for the following reasons:

    • ICU is required

    although I configured qt with icu and it was compiled without problems but there is no any effect !!!


  • Lifetime Qt Champion

    Hi,

    IIRC, QtWebKit static build has been disabled a long time ago. And if you really want to use it then you should rather use a recent version of Qt with @Konstantin-Tokarev QtWebKit reboot.



  • Also note that Qt 5.4 was released before VS2015 came out, you should use at least Qt 5.6 with this compiler



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.