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

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

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes