qtinuum / QtnProperty

Extended properties for Qt5
Apache License 2.0
425 stars 153 forks source link

Qt 5.15.2 MinGW build error #56

Open githubuser0xFFFF opened 2 years ago

githubuser0xFFFF commented 2 years ago

Building the demo application with Qt 5.15.2 and MinGW 11 causes the following error

make -f Makefile.Release
make[1]: Entering directory 'C:/CodingXP/QtnProperty/build/Demo'
g++ -c -fno-keep-inline-dllexport -O2 -std=gnu++11 -Wall -Wextra -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQTN_DYNAMIC_IMPORT -DNDEBUG -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SCRIPT_LIB -DQT_SCRIPTTOOLS_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\..\Demo -I. -I..\..\..\QtnProperty -I. -I..\..\..\Qt\5.15.2\mingw81_64\include -I..\..\..\Qt\5.15.2\mingw81_64\include\QtWidgets -I..\..\..\Qt\5.15.2\mingw81_64\include\QtGui -I..\..\..\Qt\5.15.2\mingw81_64\include\QtANGLE -I..\..\..\Qt\5.15.2\mingw81_64\include\QtScript -I..\..\..\Qt\5.15.2\mingw81_64\include\QtScriptTools -I..\..\..\Qt\5.15.2\mingw81_64\include\QtCore -I. -I/include -I..\..\..\Qt\5.15.2\mingw81_64\mkspecs\win32-g++  -o release\MainWindow.o ..\..\Demo\MainWindow.cpp
..\..\Demo\MainWindow.cpp: In constructor 'MainWindow::MainWindow(QWidget*)':
..\..\Demo\MainWindow.cpp:44:56: warning: 'const QRect QDesktopWidget::availableGeometry(int) const' is deprecated: Use QGuiApplication::screens() [-Wdeprecated-declarations]
   44 |         move(QApplication::desktop()->availableGeometry().center() -
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from ..\..\..\Qt\5.15.2\mingw81_64\include\QtWidgets/QDesktopWidget:1,
                 from ..\..\Demo\MainWindow.cpp:5:
..\..\..\Qt\5.15.2\mingw81_64\include\QtWidgets/qdesktopwidget.h:88:67: note: declared here
   88 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const;
      |                                                                   ^~~~~~~~~~~~~~~~~
In file included from C:/CodingXP/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/string:48,
                 from ..\..\..\Qt\5.15.2\mingw81_64\include/QtCore/qbytearray.h:52,
                 from ..\..\..\Qt\5.15.2\mingw81_64\include/QtCore/qstring.h:50,
                 from ..\..\..\Qt\5.15.2\mingw81_64\include/QtCore/qobject.h:47,
                 from ..\..\..\Qt\5.15.2\mingw81_64\include/QtWidgets/qwidget.h:45,
                 from ..\..\..\Qt\5.15.2\mingw81_64\include\QtWidgets/qmainwindow.h:44,
                 from ..\..\..\Qt\5.15.2\mingw81_64\include\QtWidgets/QMainWindow:1,
                 from ..\..\Demo\MainWindow.h:4,
                 from ..\..\Demo\MainWindow.cpp:1:
C:/CodingXP/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/stl_function.h: In instantiation of 'bool std::equal_to<_Tp>::operator()(const _Tp&, const _Tp&) const [with _Tp = MyColor]':
..\..\..\QtnProperty/QtnProperty/Auxiliary/PropertyTemplates.h:282:18:   required from 'bool QtnSinglePropertyBaseAs<QtnSinglePropertyBaseType, ActualValueType, EqPred>::isValueEqualImpl(QtnSinglePropertyBaseAs<QtnSinglePropertyBaseType, ActualValueType, EqPred>::ValueType) [with QtnSinglePropertyBaseType = QtnPropertyQColorBase; ActualValueType = MyColor; EqPred = std::equal_to<MyColor>; QtnSinglePropertyBaseAs<QtnSinglePropertyBaseType, ActualValueType, EqPred>::ValueType = MyColor]'
..\..\..\QtnProperty/QtnProperty/Auxiliary/PropertyTemplates.h:280:15:   required from here
C:/CodingXP/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/stl_function.h:356:20: error: no match for 'operator==' (operand types are 'const MyColor' and 'const MyColor')
  356 |       { return __x == __y; }
      |                ~~~~^~~~~~