Qt 5.15.2 fatal error C1189: #error: "Patternist uses exceptions and cannot be built without." error building qt-everywhere-src-5.15.2
Solved
General and Desktop
-
Hi,
I encounter this error trying to build Qt 5.15.2 with msvc
qt-everywhere-src-5.15.2\qtxmlpatterns\include\QtXmlPatterns\5.15.2\QtXmlPatterns\private\../../../../../src/xmlpatterns/utils/qpatternistlocale_p.h(275): fatal error C1189: #error: "Patternist uses exceptions and cannot be built without." (compilation du fichier source acceltree\qacceltree.cpp)
This is the do_it.cmd script i use to configure qt build from cmd prompt.
CALL "C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Auxiliary/Build/vcvarsall.bat" amd64 set "CMAKE_ROOT=C:\CMake\bin" set "NINJA_ROOT=C:\ninja-win" set "PERL_ROOT=C:\Strawberry\perl\bin" set PATH=%CMAKE_ROOT%;%PATH% set PATH=%NINJA_ROOT%;%PATH% set PATH=%PERL_ROOT%;%PATH% set PATH=C:\Python311-amd64;%PATH% rem Check if the tools are in PATH where perl.exe where python.exe where cmake.exe where ninja.exe set "MY_INSTALL_PATH=qt-5.15.2-build-vs2019" set CL=/MP cmake -G "Visual Studio 16 2019"
-
@NiVa99 said in Qt 5.15.2 fatal error C1189: #error: "Patternist uses exceptions and cannot be built without." error building qt-everywhere-src-5.15.2:
cmake -G "Visual Studio 16 2019"
qt-everywhere-src-5.15.2
Qt5 can not be built with cmake. What exact Qt version are you trying to build (and why?)
-
5.15.2 version amd64 with MSVC2019 and 2022. CMake 3.22.2 ad Ninja last version, Perl etc..
Thank you for help.
NV