Paraview 5.8.0 Master: Error in Qt/Components/pqAnimationViewWidget.cxx
Hello,
It looks like this commit
Commit cdae80af authored 4 months ago by Nicolas Vuaille's avatar Nicolas Vuaille
Has caused ParaView 5.8.0 Master to break when compiling with gcc 4.8.5 on RHEL 7.7
In Particular this call
QObject::disconnect(iter.key(), &pqAnimationCue::keyframesModified, nullptr, nullptr);
on line 501 of Qt/Components/pqAnimationViewWidget.cxx is broken as can be seen from the error messages below.
This change was introduced after 5.8.0-RC3 which does not have the issue.
Thanks,
Joe Hennessey
/home/joeh/PV/Build_5.8.0-master_mesa/superbuild/paraview/src/Qt/Components/pqAnimationViewWidget.cxx: In member function 'void pqAnimationViewWidget::onSceneCuesChanged()':
/home/joeh/PV/Build_5.8.0-master_mesa/superbuild/paraview/src/Qt/Components/pqAnimationViewWidget.cxx:501:91: error: no matching function for call to 'pqAnimationViewWidget::disconnect(const QPointer<pqAnimationCue>&, void (pqAnimationCue::*)(), std::nullptr_t, std::nullptr_t)'
QObject::disconnect(iter.key(), &pqAnimationCue::keyframesModified, nullptr, nullptr);
^
/home/joeh/PV/Build_5.8.0-master_mesa/superbuild/paraview/src/Qt/Components/pqAnimationViewWidget.cxx:501:91: note: candidates are:
In file included from /home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtWidgets/qwidget.h:45:0,
from /home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtWidgets/QWidget:1,
from /home/joeh/PV/Build_5.8.0-master_mesa/superbuild/paraview/src/Qt/Components/pqAnimationViewWidget.h:36,
from /home/joeh/PV/Build_5.8.0-master_mesa/superbuild/paraview/src/Qt/Components/pqAnimationViewWidget.cxx:33:
/home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtCore/qobject.h:342:17: note: static bool QObject::disconnect(const QObject*, const char*, const QObject*, const char*)
static bool disconnect(const QObject *sender, const char *signal,
^
/home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtCore/qobject.h:342:17: note: no known conversion for argument 2 from 'void (pqAnimationCue::*)()' to 'const char*'
/home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtCore/qobject.h:344:17: note: static bool QObject::disconnect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&)
static bool disconnect(const QObject *sender, const QMetaMethod &signal,
^
/home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtCore/qobject.h:344:17: note: no known conversion for argument 2 from 'void (pqAnimationCue::*)()' to 'const QMetaMethod&'
/home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtCore/qobject.h:346:17: note: bool QObject::disconnect(const char*, const QObject*, const char*) const
inline bool disconnect(const char *signal = Q_NULLPTR,
^
/home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtCore/qobject.h:346:17: note: candidate expects 3 arguments, 4 provided
/home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtCore/qobject.h:349:17: note: bool QObject::disconnect(const QObject*, const char*) const
inline bool disconnect(const QObject *receiver, const char *member = Q_NULLPTR) const
^
/home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtCore/qobject.h:349:17: note: candidate expects 2 arguments, 4 provided
/home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtCore/qobject.h:351:17: note: static bool QObject::disconnect(const QMetaObject::Connection&)
static bool disconnect(const QMetaObject::Connection &);
^
/home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtCore/qobject.h:351:17: note: candidate expects 1 argument, 4 provided
/home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtCore/qobject.h:358:24: note: template<class Func1, class Func2> static bool QObject::disconnect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2)
static inline bool disconnect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
^
/home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtCore/qobject.h:358:24: note: template argument deduction/substitution failed:
/home/joeh/PV/Build_5.8.0-master_mesa/superbuild/paraview/src/Qt/Components/pqAnimationViewWidget.cxx:501:91: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<pqAnimationCue>'
QObject::disconnect(iter.key(), &pqAnimationCue::keyframesModified, nullptr, nullptr);
^
In file included from /home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtWidgets/qwidget.h:45:0,
from /home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtWidgets/QWidget:1,
from /home/joeh/PV/Build_5.8.0-master_mesa/superbuild/paraview/src/Qt/Components/pqAnimationViewWidget.h:36,
from /home/joeh/PV/Build_5.8.0-master_mesa/superbuild/paraview/src/Qt/Components/pqAnimationViewWidget.cxx:33:
/home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtCore/qobject.h:375:24: note: template<class Func1> static bool QObject::disconnect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, void**)
static inline bool disconnect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
^
/home/joeh/PV/Build_5.8.0-master_mesa/install/include/QtCore/qobject.h:375:24: note: template argument deduction/substitution failed:
/home/joeh/PV/Build_5.8.0-master_mesa/superbuild/paraview/src/Qt/Components/pqAnimationViewWidget.cxx:501:91: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<pqAnimationCue>'
QObject::disconnect(iter.key(), &pqAnimationCue::keyframesModified, nullptr, nullptr);
^
[ 97%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqCameraDialog.cxx.o
gmake[5]: *** [Qt/Components/CMakeFiles/pqComponents.dir/pqAnimationViewWidget.cxx.o] Error 1
gmake[5]: *** Waiting for unfinished jobs....
[ 97%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqCameraKeyFrameWidget.cxx.o
gmake[4]: *** [Qt/Components/CMakeFiles/pqComponents.dir/all] Error 2
gmake[3]: *** [all] Error 2
CMake Error at /home/joeh/PV/Build_5.8.0-master_mesa/superbuild/sb-paraview-build.cmake:47 (message):
Failed with exit code 2
make[2]: *** [superbuild/paraview/stamp/paraview-build] Error 1
make[1]: *** [superbuild/CMakeFiles/paraview.dir/all] Error 2
make: *** [all] Error 2
Edited by Kitware Robot