Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Errors when building CMake and VTK

Errors when building CMake and VTK

Scheduled Pinned Locked Moved Solved Installation and Deployment
msvc2017error c3615cmakevtk
8 Posts 3 Posters 4.6k 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.
  • A Offline
    A Offline
    amaclean
    wrote on last edited by A Former User
    #1

    I am using Qt Prebuilt MSVC-2015 64bit. The Qt version is 5.8.0-1. Building VTK and CMake with VS 2017.

    This error occurs: 'error C3615: constexpr function QAlgorithmsPrivate::qt_builtin_ctz' cannot result in a constant expression

    It seems the fix for this problem, see: http://lists.qt-project.org/pipermail/development/2016-December/028026.html
    never made it into the release.

    Any ideas when this will be fixed?

    jsulmJ 1 Reply Last reply
    0
    • A amaclean

      I am using Qt Prebuilt MSVC-2015 64bit. The Qt version is 5.8.0-1. Building VTK and CMake with VS 2017.

      This error occurs: 'error C3615: constexpr function QAlgorithmsPrivate::qt_builtin_ctz' cannot result in a constant expression

      It seems the fix for this problem, see: http://lists.qt-project.org/pipermail/development/2016-December/028026.html
      never made it into the release.

      Any ideas when this will be fixed?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @amaclean If you follow the link you will see that the patch is already merged in 5.8 branch: https://codereview.qt-project.org/#/c/177743/
      But you can download the patch from the above link and apply it before building.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        amaclean
        wrote on last edited by
        #3

        Thanks for that, I can verify that the merge I referred to did make it into the release. So the problem is a different one.

        Here is a possible fix:
        The problem relates to the Qt macro:
        Q_DECL_CONSTEXPR

        If it is commented out in lines 593 to 714 of qalgorithms.h then the builds work for CMake and VTK and any other Qt build using VS2017.

        Regards

        jsulmJ 1 Reply Last reply
        0
        • A amaclean

          Thanks for that, I can verify that the merge I referred to did make it into the release. So the problem is a different one.

          Here is a possible fix:
          The problem relates to the Qt macro:
          Q_DECL_CONSTEXPR

          If it is commented out in lines 593 to 714 of qalgorithms.h then the builds work for CMake and VTK and any other Qt build using VS2017.

          Regards

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @amaclean Maybe you should file a bug report?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply
          0
          • jsulmJ jsulm

            @amaclean Maybe you should file a bug report?

            A Offline
            A Offline
            amaclean
            wrote on last edited by
            #5

            @jsulm Thanks, already done.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              Can you share the link please ? That will make it easier to find :)

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • A Offline
                A Offline
                amaclean
                wrote on last edited by amaclean
                #7

                Here it is: https://bugreports.qt.io/browse/QTBUG-59575
                It seems that the patch https://codereview.qt-project.org/#/c/177743/ never made it into the release.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  It went in but after the release of 5.8.0. So if you need it, either check the 5.9 alpha or build from Git.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1

                  • Login

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