Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59575

Unable to build Qt programs with MSVC 2017 and Qt 5.8.0-1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.8.0
    • Core: Other
    • None
    • Qt Prebuilt MSVC-2017 64bit. The Qt version is 5.8.0-1. Windows 10

    Description

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

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

      This is unrelated to this patch that is already merged in 5.8 branch: https://codereview.qt-project.org/#/c/177743/

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

      One possible solution is to comment it out in lines 593 to 714 of qalgorithms.h then the builds work for CMake and VTK and any other Qt build using VS2017. I have attached qalgorithms.h with these changes.

      Attachments

        Issue Links

          Activity

            People

              thiago Thiago Macieira
              amaclean Andrew Maclean
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: