compilation error with mmg

Discussion about building and installing Elmer
oxi
Posts: 6
Joined: 16 Mar 2020, 11:46
Antispam: Yes

Re: compilation error with mmg

Post by oxi »

Just for the sake of completeness: On actual Debian testing this compilation works:

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
Before I had to fetch two more packages from the repository, libqt5svg5-dev and qtscript5-dev.

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
otokonohito1982
Posts: 3
Joined: 03 Sep 2020, 21:01
Antispam: Yes

Re: compilation error with mmg

Post by otokonohito1982 »

oxi wrote: 02 Apr 2020, 14:00 Stupid me, it was in the mmg forum:

cmake -D LIBMMG_SHARED=ON -D USE_SCOTCH=ON -DTEST_LIBMMG=ON -D LIBMMG_STATIC=OFF ..

does the job.

Harald
This does not work in my case. How do I remove libmmg?
Post Reply