Paraview superbuild problem

Hi, I’m trying to build Paraview 5.6 (master) on an openSUSE-Leap-42.3 vm (host windows) with CMake v3.13.4

It seems to me that the compiling order of the prerequisites of Paraview (which compilation has still not begun) is wrong: I’ve chosen the flags:

ENABLE_glproto:BOOL=ON
ENABLE_mesa:BOOL=ON
ENABLE_qt5:BOOL=ON

but it has built qt5 as first (I had to set PARAVIEW_DEFAULT_SYSTEM_GL:BOOL=ON and install mesa-devel package in order to get it as it was looking for libGL…) and now it’s trying to build mesa library that needs glproto that has not been considered.

Probably I’m doing something wrong and the compiling dependecies are not correctly set.

It seems also that repeating all the procedure (from git clone of the superbuild package) changes compiling order.

I’m new to CMake use but is it possible to force the building of each submodule in order to provide the correct sequence?

Please any help will be appreciated.

Alessandro

the preject dependencies are automatic and should work without issues. You may want to starts from scratch with all the options you need.

I’ve just repeated the all procedure from scratch with the same result: it’s trying to compile mesa before glproto and of course it cannot find it.

Do you think I should try with another CMake version?

Maybe there is a bug between glproto et mesa. Feel free to open an issue on our gitlab.

I’m trying now to build an updated superbuild (master, with a git checkout of today) without mesa but using NVIDIA openGL. Now it arrives to paraview compilation but it gives the following error.
I’ve seen from paraview gitlab repository that the file that gives the error (pqMultiViewWidget.cxx) has been changed 3 days ago. Is there any known issue about this problem?

Thank you for your help

    /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.cxx: In constructor ‘pqMultiViewWidget::pqInternals::pqInternals(pqMultiViewWidget*)’:
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.cxx:123:8: error: no matching function for call to ‘QObject::connect(QPointer<pqHierarchicalGridWidget>&, void (pqHierarchicalGridWidget::*)(int, double), pqMultiViewWidget::pqInternals::pqInternals(pqMultiViewWidget*)::__lambda5)’
       });
        ^
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.cxx:123:8: note: candidates are:
In file included from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtWidgets/qwidget.h:45:0,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtWidgets/QWidget:1,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.h:36,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.cxx:32:
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:214:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
     static QMetaObject::Connection connect(const QObject *sender, const char *signal,
                                    ^
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:214:36: note:   candidate expects 5 arguments, 3 provided
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:217:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
     static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
                                    ^
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:217:36: note:   candidate expects 5 arguments, 3 provided
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:469:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
 inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
                                ^
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:469:32: note:   no known conversion for argument 2 from ‘void (pqHierarchicalGridWidget::*)(int, double)’ to ‘const char*’
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:234:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
     static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
                                           ^
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:234:43: note:   template argument deduction/substitution failed:
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.cxx:123:8: note:   mismatched types ‘const typename QtPrivate::FunctionPointer<Func>::Object*’ and ‘QPointer<pqHierarchicalGridWidget>’
       });
        ^
In file included from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtWidgets/qwidget.h:45:0,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtWidgets/QWidget:1,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.h:36,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.cxx:32:
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:266:13: note: template<class Func1, class Func2> static typename std::enable_if<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
             connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
             ^
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:266:13: note:   template argument deduction/substitution failed:
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.cxx:123:8: note:   mismatched types ‘const typename QtPrivate::FunctionPointer<Func>::Object*’ and ‘QPointer<pqHierarchicalGridWidget>’
       });
        ^
In file included from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtWidgets/qwidget.h:45:0,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtWidgets/QWidget:1,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.h:36,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.cxx:32:
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:275:13: note: template<class Func1, class Func2> static typename std::enable_if<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)
             connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
             ^
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:275:13: note:   template argument deduction/substitution failed:
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.cxx:123:8: note:   mismatched types ‘const typename QtPrivate::FunctionPointer<Func>::Object*’ and ‘QPointer<pqHierarchicalGridWidget>’
       });
        ^
In file included from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtWidgets/qwidget.h:45:0,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtWidgets/QWidget:1,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.h:36,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.cxx:32:
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:306:13: note: template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
             connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
             ^
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:306:13: note:   template argument deduction/substitution failed:
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.cxx:123:8: note:   mismatched types ‘const typename QtPrivate::FunctionPointer<Func>::Object*’ and ‘QPointer<pqHierarchicalGridWidget>’
       });
        ^
In file included from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtWidgets/qwidget.h:45:0,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtWidgets/QWidget:1,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.h:36,
                 from /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.cxx:32:
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:314:13: note: template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)
             connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
             ^
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/install/include/QtCore/qobject.h:314:13: note:   template argument deduction/substitution failed:
/home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/paraview/src/Qt/Components/pqMultiViewWidget.cxx:123:8: note:   mismatched types ‘const typename QtPrivate::FunctionPointer<Func>::Object*’ and ‘QPointer<pqHierarchicalGridWidget>’
       });
        ^
[ 98%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqPropertyGroupWidget.cxx.o
[ 98%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqPropertyWidget.cxx.o
Qt/Components/CMakeFiles/pqComponents.dir/build.make:1376: set di istruzioni per l'obiettivo "Qt/Components/CMakeFiles/pqComponents.dir/pqMultiViewWidget.cxx.o" non riuscito
gmake[5]: *** [Qt/Components/CMakeFiles/pqComponents.dir/pqMultiViewWidget.cxx.o] Errore 1
gmake[5]: *** Attesa per i processi non terminati....
CMakeFiles/Makefile2:33787: set di istruzioni per l'obiettivo "Qt/Components/CMakeFiles/pqComponents.dir/all" non riuscito
gmake[4]: *** [Qt/Components/CMakeFiles/pqComponents.dir/all] Errore 2
Makefile:129: set di istruzioni per l'obiettivo "all" non riuscito
gmake[3]: *** [all] Errore 2
CMake Error at /home/local/paraview/BUILD/ParaViewSuperBuild_5.6.0_11.03.2019/superbuild/sb-paraview-build.cmake:47 (message):
  Failed with exit code 2


superbuild/CMakeFiles/paraview.dir/build.make:136: set di istruzioni per l'obiettivo "superbuild/paraview/stamp/paraview-build" non riuscito
make[2]: *** [superbuild/paraview/stamp/paraview-build] Errore 1
CMakeFiles/Makefile2:767: set di istruzioni per l'obiettivo "superbuild/CMakeFiles/paraview.dir/all" non riuscito
make[1]: *** [superbuild/CMakeFiles/paraview.dir/all] Errore 2
Makefile:129: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2

master is ongoing a lot of changes right now. I would recommend building 5.6.0.