Error when compiling pqStandardViewFrameActionsImplementation.cxx with ParaView 5.8.0-RC1
When compiling Qt/ApplicationComponents/pqStandardViewFrameActionsImplementation.cxx using the ParaView superbuild for ParaView 5.8.0-RC1 and using the default version of Qt 5.9.2 compiled by the superbuild with gcc 4.8.5 on RHEL 7.7 the following errors occur
/home/joeh/PV/Build_5.8.0-RC1_gl2/superbuild/paraview/src/Qt/ApplicationComponents/pqStandardViewFrameActionsImplementation.cxx: In constructor 'pqStandardViewFrameActionsImplementation::pqStandardViewFrameActionsImplementation(QObject*)':
/home/joeh/PV/Build_5.8.0-RC1_gl2/superbuild/paraview/src/Qt/ApplicationComponents/pqStandardViewFrameActionsImplementation.cxx:141:94: error: no matching function for call to 'pqStandardViewFrameActionsImplementation::connect(QPointer<QShortcut>&, void (QShortcut::*)(), pqStandardViewFrameActionsImplementation::pqStandardViewFrameActionsImplementation(QObject*)::__lambda8)'
this->ShortCutGrow, &QShortcut::activated, []() { triggerAction("actionGrowSelection"); });
^
/home/joeh/PV/Build_5.8.0-RC1_gl2/superbuild/paraview/src/Qt/ApplicationComponents/pqStandardViewFrameActionsImplementation.cxx: In constructor 'pqStandardViewFrameActionsImplementation::pqStandardViewFrameActionsImplementation(QObject*)':
/home/joeh/PV/Build_5.8.0-RC1_gl2/superbuild/paraview/src/Qt/ApplicationComponents/pqStandardViewFrameActionsImplementation.cxx:143:98: error: no matching function for call to 'pqStandardViewFrameActionsImplementation::connect(QPointer<QShortcut>&, void (QShortcut::*)(), pqStandardViewFrameActionsImplementation::pqStandardViewFrameActionsImplementation(QObject*)::__lambda8)'
this->ShortCutShrink, &QShortcut::activated, []() { triggerAction("actionShrinkSelection"); });
^
if lines 140-143 are commented out execution can continue but this is not a good fix as it just disables the actions
//QObject::connect(
//this->ShortCutGrow, &QShortcut::activated, []() { triggerAction("actionGrowSelection"); });
//QObject::connect(
//this->ShortCutShrink, &QShortcut::activated, []() { triggerAction("actionShrinkSelection"); });
Thanks,
Joe Hennessey