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

Building on Qt 5.12 LTS on Windows generates lots of errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.12.0
    • Build System
    • Windows

    Description

      Hey guys!

       

      I'm trying to build my project on Qt 5.12 LTS and I'm getting lots of errors that I wasn't having in 5.9.3. I have tried either the official offline installer and a manually compiled version of Qt but both fails on building. I'm using C++14, maybe could it be a bug on MingW language support? The errors are like the sample below. I have attached the full output as a compressed text file, hope it helps.

       

      In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39:0,
      {{ from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,}}
      {{ from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,}}
      {{ from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtWidgets/QtWidgetsDepends:3,}}
      {{ from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtWidgets/QtWidgets:3,}}
      {{ from src\baseobjectview.h:28,}}
      {{ from src\baseobjectview.cpp:19:}}
      C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread: In function 'bool std::operator==(std::thread::id, std::thread::id)':
      C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:276:26: error: no match for 'operator==' (operand types are 'std::thread::native_handle_type {aka ptw32_handle_t}' and 'std::thread::native_handle_type {aka ptw32_handle_t}')
      {{ return __x._M_thread == __y._M_thread;}}
      {{ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~}}
      C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:270:3: note: candidate: bool std::operator==(std::thread::id, std::thread::id)
      {{ operator==(thread::id __x, thread::id __y) noexcept}}
      {{ ^~~~~~~~}}
      C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:270:3: note: no known conversion for argument 1 from 'std::thread::native_handle_type {aka ptw32_handle_t}' to 'std::thread::id'
      In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/memory:81:0,
      {{ from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:39,}}
      {{ from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39,}}
      {{ from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,}}
      {{ from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,}}
      {{ from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtWidgets/QtWidgetsDepends:3,}}
      {{ from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtWidgets/QtWidgets:3,}}
      {{ from src\baseobjectview.h:28,}}
      {{ from src\baseobjectview.cpp:19:}}
      C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr.h:378:5: note: candidate: template<class _Tp> bool std::operator==(std::nullptr_t, const std::shared_ptr<_Tp>&)
      {{ operator==(nullptr_t, const shared_ptr<_Tp>& __a) noexcept}}
      {{ ^~~~~~~~}}
      C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr.h:378:5: note: template argument deduction/substitution failed:
      In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39:0,
      {{ from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,}}
      {{ from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,}}
      {{ from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtWidgets/QtWidgetsDepends:3,}}
      {{ from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtWidgets/QtWidgets:3,}}
      {{ from src\baseobjectview.h:28,}}
      {{ from src\baseobjectview.cpp:19:}}
      C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:276:33: note: 'std::thread::native_handle_type {aka ptw32_handle_t}' is not derived from 'const std::shared_ptr<_Tp>'
      {{ return __x._M_thread == __y._M_thread;}}

       

      If you need more info please let me know.

      Thanks in advance.

      Attachments

        1. qt_512_build_error_qtcreator.png.png
          197 kB
          Raphael A. Silva
        2. qt_512_build_error.zip
          101 kB
          Raphael A. Silva

        Activity

          People

            kkohne Kai Köhne
            rkhaotix Raphael A. Silva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: