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 16 Mar 2017, 01:38 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?

    J 1 Reply Last reply 16 Mar 2017, 05:35
    0
    • A amaclean
      16 Mar 2017, 01:38

      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?

      J Online
      J Online
      jsulm
      Lifetime Qt Champion
      wrote on 16 Mar 2017, 05:35 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 16 Mar 2017, 22:05 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

        J 1 Reply Last reply 17 Mar 2017, 06:05
        0
        • A amaclean
          16 Mar 2017, 22:05

          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

          J Online
          J Online
          jsulm
          Lifetime Qt Champion
          wrote on 17 Mar 2017, 06:05 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 17 Mar 2017, 22:53
          0
          • J jsulm
            17 Mar 2017, 06:05

            @amaclean Maybe you should file a bug report?

            A Offline
            A Offline
            amaclean
            wrote on 17 Mar 2017, 22:53 last edited by
            #5

            @jsulm Thanks, already done.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 17 Mar 2017, 22:54 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 18 Mar 2017, 05:09 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
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 18 Mar 2017, 21:30 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

                  2/8

                  16 Mar 2017, 05:35

                  6 unread
                  • Login

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