Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.15.2 fatal error C1189: #error: "Patternist uses exceptions and cannot be built without." error building qt-everywhere-src-5.15.2
Forum Updated to NodeBB v4.3 + New Features

Qt 5.15.2 fatal error C1189: #error: "Patternist uses exceptions and cannot be built without." error building qt-everywhere-src-5.15.2

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 472 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NiVa99
    wrote on last edited by
    #1

    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"
    
    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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?)

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NiVa99
        wrote on last edited by
        #3

        5.15.2 version amd64 with MSVC2019 and 2022. CMake 3.22.2 ad Ninja last version, Perl etc..

        Solved. https://forum.qt.io/topic/134494/qt5-15-2-amd64-build-from-src-missing-symbol-export-_cdecl-qunhandledexception

        Thank you for help.
        NV

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved