QtSVG 5.15.2 static build [MSVC 2019 x64] Compile error
-
Hello I'm trying to add the QtSVG plugin into my QT 5.15.2 static build using MSVC 2019 x64 I have compiled the Qtbase fine but I can't compile the QtSVG module. I've been trying to make this static build for days, I tried mingw but decided to do msvc. Is there a setting to build QtSVG into the initial build? I've been looking around and only found to compile and add it to the build. Is there a setting in the configure to just build it, I'm willing to rebuild it if there''s an option. Please I'm stuck.
Using VS 2019 Comunity edition
Compile folder : C:\SVG
Qt: 5.15.2
Qt SVG: 5.15.2Build settings:
configure -debug-and-release -static -opensource -opengl desktop -nomake examples -nomake tests -skip qtdoc -openssl-linked OPENSSL_INCDIR="C:\Program Files\OpenSSL-Win64\include" OPENSSL_LIBDIR="C:\Program Files\OpenSSL-Win64\lib\VC\static" OPENSSL_LIBS="-lWs2_32 -lGdi32 -lAdvapi32 -lCrypt32 -lUser32" OPENSSL_LIBS_DEBUG="-llibssl64MDd -llibcrypto64MDd" OPENSSL_LIBS_RELEASE="-llibssl64MD -llibcrypto64MD"qmake
nmakeThen this error:
********************************************************************** ** Visual Studio 2019 Developer Command Prompt v16.7.5 ** Copyright (c) 2020 Microsoft Corporation ********************************************************************** [vcvarsall.bat] Environment initialized for: 'x64' C:\Windows\System32>cd C:\SVG C:\SVG>qmake Info: creating stash file C:\SVG\.qmake.stash Info: creating cache file C:\SVG\.qmake.cache C:\SVG>nmake Microsoft (R) Program Maintenance Utility Version 14.27.29112.0 Copyright (C) Microsoft Corporation. All rights reserved. cd src\ && ( if not exist Makefile C:\Qt\Qt-5.15.2\bin\qmake.exe -o Makefile C:\SVG\src\src.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\nmake.exe" -f Makefile Microsoft (R) Program Maintenance Utility Version 14.27.29112.0 Copyright (C) Microsoft Corporation. All rights reserved. cd svg\ && ( if not exist Makefile C:\Qt\Qt-5.15.2\bin\qmake.exe -o Makefile C:\SVG\src\svg\svg.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\nmake.exe" -f Makefile Microsoft (R) Program Maintenance Utility Version 14.27.29112.0 Copyright (C) Microsoft Corporation. All rights reserved. "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\nmake.exe" -f Makefile.Debug all Microsoft (R) Program Maintenance Utility Version 14.27.29112.0 Copyright (C) Microsoft Corporation. All rights reserved. cl -c -Yc -Fp.pch\debug\Qt5Svgd_pch.pch -Fo.pch\debug\Qt5Svgd_pch.obj -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -Zi -MDd -std:c++17 -utf-8 /wd4530 /wd4577 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd../../lib/Qt5Svgd.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_USING_NAMESPACE -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_SVG_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 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_ZLIB_LIB -I. -I..\..\include -I..\..\include\QtSvg -IC:/SVG/include/QtSvg/5.15.2 -IC:/SVG/include/QtSvg/5.15.2/QtSvg -Itmp -IC:\Qt\Qt-5.15.2\include\QtWidgets\5.15.2 -IC:\Qt\Qt-5.15.2\include\QtWidgets\5.15.2\QtWidgets -IC:\Qt\Qt-5.15.2\include\QtGui\5.15.2 -IC:\Qt\Qt-5.15.2\include\QtGui\5.15.2\QtGui -IC:\Qt\Qt-5.15.2\include\QtCore\5.15.2 -IC:\Qt\Qt-5.15.2\include\QtCore\5.15.2\QtCore -IC:\Qt\Qt-5.15.2\include -IC:\Qt\Qt-5.15.2\include\QtWidgets -IC:\Qt\Qt-5.15.2\include\QtGui -IC:\Qt\Qt-5.15.2\include\QtCore -IC:\Qt\Qt-5.15.2\include\QtZlib -IC:/Qt/Qt-5.15.2/include/QtZlib/5.15.2 -IC:/Qt/Qt-5.15.2/include/QtZlib/5.15.2/QtZlib -I.moc\debug -IC:\Qt\Qt-5.15.2\mkspecs\win32-msvc -TP ..\..\include\QtSvg\QtSvgDepends QtSvgDepends cl -BxC:\Qt\Qt-5.15.2\bin\qmake.exe -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -Zi -MDd -std:c++17 -utf-8 /wd4530 /wd4577 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E C:\Qt\Qt-5.15.2\mkspecs\features\data\dummy.cpp 2>NUL >.moc\debug\moc_predefs.h C:\Qt\Qt-5.15.2\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_USING_NAMESPACE -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_SVG_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 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_ZLIB_LIB --compiler-flavor=msvc --include C:/SVG/src/svg/.moc/debug/moc_predefs.h -IC:/Qt/Qt-5.15.2/mkspecs/win32-msvc -IC:/SVG/src/svg -IC:/SVG/include -IC:/SVG/include/QtSvg -IC:/SVG/include/QtSvg/5.15.2 -IC:/SVG/include/QtSvg/5.15.2/QtSvg -IC:/SVG/src/svg/tmp -IC:/Qt/Qt-5.15.2/include/QtWidgets/5.15.2 -IC:/Qt/Qt-5.15.2/include/QtWidgets/5.15.2/QtWidgets -IC:/Qt/Qt-5.15.2/include/QtGui/5.15.2 -IC:/Qt/Qt-5.15.2/include/QtGui/5.15.2/QtGui -IC:/Qt/Qt-5.15.2/include/QtCore/5.15.2 -IC:/Qt/Qt-5.15.2/include/QtCore/5.15.2/QtCore -IC:/Qt/Qt-5.15.2/include -IC:/Qt/Qt-5.15.2/include/QtWidgets -IC:/Qt/Qt-5.15.2/include/QtGui -IC:/Qt/Qt-5.15.2/include/QtCore -IC:/Qt/Qt-5.15.2/include/QtZlib -IC:/Qt/Qt-5.15.2/include/QtZlib/5.15.2 -IC:/Qt/Qt-5.15.2/include/QtZlib/5.15.2/QtZlib -I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" -I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" qsvgrenderer.h -o .moc\debug\moc_qsvgrenderer.cpp C:\Qt\Qt-5.15.2\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_USING_NAMESPACE -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_SVG_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 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_ZLIB_LIB --compiler-flavor=msvc --include C:/SVG/src/svg/.moc/debug/moc_predefs.h -IC:/Qt/Qt-5.15.2/mkspecs/win32-msvc -IC:/SVG/src/svg -IC:/SVG/include -IC:/SVG/include/QtSvg -IC:/SVG/include/QtSvg/5.15.2 -IC:/SVG/include/QtSvg/5.15.2/QtSvg -IC:/SVG/src/svg/tmp -IC:/Qt/Qt-5.15.2/include/QtWidgets/5.15.2 -IC:/Qt/Qt-5.15.2/include/QtWidgets/5.15.2/QtWidgets -IC:/Qt/Qt-5.15.2/include/QtGui/5.15.2 -IC:/Qt/Qt-5.15.2/include/QtGui/5.15.2/QtGui -IC:/Qt/Qt-5.15.2/include/QtCore/5.15.2 -IC:/Qt/Qt-5.15.2/include/QtCore/5.15.2/QtCore -IC:/Qt/Qt-5.15.2/include -IC:/Qt/Qt-5.15.2/include/QtWidgets -IC:/Qt/Qt-5.15.2/include/QtGui -IC:/Qt/Qt-5.15.2/include/QtCore -IC:/Qt/Qt-5.15.2/include/QtZlib -IC:/Qt/Qt-5.15.2/include/QtZlib/5.15.2 -IC:/Qt/Qt-5.15.2/include/QtZlib/5.15.2/QtZlib -I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" -I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" qgraphicssvgitem.h -o .moc\debug\moc_qgraphicssvgitem.cpp C:\Qt\Qt-5.15.2\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_USING_NAMESPACE -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_SVG_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 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_ZLIB_LIB --compiler-flavor=msvc --include C:/SVG/src/svg/.moc/debug/moc_predefs.h -IC:/Qt/Qt-5.15.2/mkspecs/win32-msvc -IC:/SVG/src/svg -IC:/SVG/include -IC:/SVG/include/QtSvg -IC:/SVG/include/QtSvg/5.15.2 -IC:/SVG/include/QtSvg/5.15.2/QtSvg -IC:/SVG/src/svg/tmp -IC:/Qt/Qt-5.15.2/include/QtWidgets/5.15.2 -IC:/Qt/Qt-5.15.2/include/QtWidgets/5.15.2/QtWidgets -IC:/Qt/Qt-5.15.2/include/QtGui/5.15.2 -IC:/Qt/Qt-5.15.2/include/QtGui/5.15.2/QtGui -IC:/Qt/Qt-5.15.2/include/QtCore/5.15.2 -IC:/Qt/Qt-5.15.2/include/QtCore/5.15.2/QtCore -IC:/Qt/Qt-5.15.2/include -IC:/Qt/Qt-5.15.2/include/QtWidgets -IC:/Qt/Qt-5.15.2/include/QtGui -IC:/Qt/Qt-5.15.2/include/QtCore -IC:/Qt/Qt-5.15.2/include/QtZlib -IC:/Qt/Qt-5.15.2/include/QtZlib/5.15.2 -IC:/Qt/Qt-5.15.2/include/QtZlib/5.15.2/QtZlib -I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" -I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" qsvgwidget.h -o .moc\debug\moc_qsvgwidget.cpp cl -c -FI..\..\include\QtSvg\QtSvgDepends -Yu..\..\include\QtSvg\QtSvgDepends -Fp.pch\debug\Qt5Svgd_pch.pch -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -Zi -MDd -std:c++17 -utf-8 /wd4530 /wd4577 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd../../lib/Qt5Svgd.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_USING_NAMESPACE -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_SVG_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 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_ZLIB_LIB -I. -I..\..\include -I..\..\include\QtSvg -IC:/SVG/include/QtSvg/5.15.2 -IC:/SVG/include/QtSvg/5.15.2/QtSvg -Itmp -IC:\Qt\Qt-5.15.2\include\QtWidgets\5.15.2 -IC:\Qt\Qt-5.15.2\include\QtWidgets\5.15.2\QtWidgets -IC:\Qt\Qt-5.15.2\include\QtGui\5.15.2 -IC:\Qt\Qt-5.15.2\include\QtGui\5.15.2\QtGui -IC:\Qt\Qt-5.15.2\include\QtCore\5.15.2 -IC:\Qt\Qt-5.15.2\include\QtCore\5.15.2\QtCore -IC:\Qt\Qt-5.15.2\include -IC:\Qt\Qt-5.15.2\include\QtWidgets -IC:\Qt\Qt-5.15.2\include\QtGui -IC:\Qt\Qt-5.15.2\include\QtCore -IC:\Qt\Qt-5.15.2\include\QtZlib -IC:/Qt/Qt-5.15.2/include/QtZlib/5.15.2 -IC:/Qt/Qt-5.15.2/include/QtZlib/5.15.2/QtZlib -I.moc\debug -IC:\Qt\Qt-5.15.2\mkspecs\win32-msvc -Fo.obj\debug\ @C:\Users\Ponzi\AppData\Local\Temp\nm719F.tmp qsvggraphics.cpp qsvghandler.cpp qsvgnode.cpp qsvgstructure.cpp qsvgstyle.cpp qsvgfont.cpp qsvgtinydocument.cpp qsvgrenderer.cpp C:\SVG\src\svg\qsvgrenderer.h(51): fatal error C1083: Cannot open include file: 'QtSvg/qtsvgglobal.h': No such file or directory qsvgwidget.cpp C:\SVG\src\svg\qsvgwidget.h(49): fatal error C1083: Cannot open include file: 'QtSvg/qtsvgglobal.h': No such file or directory qgraphicssvgitem.cpp C:\SVG\src\svg\qgraphicssvgitem.h(48): fatal error C1083: Cannot open include file: 'QtSvg/qtsvgglobal.h': No such file or directory qsvggenerator.cpp C:\SVG\src\svg\qsvggenerator.h(51): fatal error C1083: Cannot open include file: 'QtSvg/qtsvgglobal.h': No such file or directory Generating Code... NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\cl.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.
-
Hi and welcome to devnet,
Are you building from a git clone ?
-
Did you check the branch matching your Qt version ?
-
Do you have perl available on your system ?
-
Did you also try with the sources from the official tarball ?