Code: Select all
cmake \
-DWITH_ELMERGUI:BOOL=FALSE \
-DWITH_QT5:BOOL=TRUE \
-DWITH_MPI:BOOL=TRUE \
-DWITH_QWT:BOOL=TRUE\
-DWITH_VTK:BOOL=TRUE \
-DWITH_QT5:BOOL=TRUE \
-DQWT_LIBRARY:PATH=/usr/lib/libqwt-qt5.so \
-DWITH_PARAVIEW:BOOL=TRUE \
-DWITH_OCC:BOOL=TRUE \
-DWITH_Hypre:BOOL=TRUE \
-DWITH_Mumps:BOOL=TRUE \
-DQt5Script_DIR:PATH= /usr/lib/x86_64-linux-gnu/ \
-DHypre_INCLUDE_DIR=/usr/include/hypre/ \
-DCMAKE_INSTALL_PREFIX=../install ../elmerfem
No GUI up to now and seeting WITH_ELMERGUI to True does not work in my case, because a deprecated QString function which I cannot activate (my cmake and c++ knowledge equals null). -DQT_DISABLE_DEPRECATED_BEFORE:BOOL=0x000000 did not work. Changing the ElmerGUI.pro file did not work by adding QT += widgets and
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x000000 did also not work.
But building ElmerGUI by cmake instead of qmake like suggested by the README from the ElmerGUI directory did work. At least the viewer is there, this is the minimal working solution for me.
cmake -DWITH_QT5:BOOL=TRUE -DQWT_LIBRARY:PATH=/usr/lib/libqwt-qt5.so
Thanks for helping!
Harald