Mmg install fails

Good day support

I don’t have admin rights to /usr/local on our computer cluster.
So, I typed the following two Linux commands

cmake -D CMAKE_INSTALL_PREFIX=…mymmg …
make install

when inside the mmg/build folder.

I don’t complain about the generation by cmake. However make install fails:

Scanning dependencies of target mmg3d
[ 98%] Building C object CMakeFiles/mmg3d.dir/src/mmg3d/mmg3d.c.o
[100%] Linking CXX executable bin/mmg3d_O3
[100%] Built target mmg3d
Install the project…
– Install configuration: “Release”
CMake Error at cmake_install.cmake:41 (file):
file cannot create directory: /include/mmg/mmg2d. Maybe need
administrative privileges.

make: *** [Makefile:129: install] Error 1

subfolder mmg/mymmg was never created

Any hints most welcome

Regards,
Marc

It’s ok my mistake one has to create folder mymmg using mkdir before running command cmake

Hello Marc,
What version of CMake are you using? It can create the folder on my machines normally.
(Although creating it by hand is not big trouble)
Yours,
Luca

Hi Luca
Sorry a bit late The version is 3.16.5 Although my bigger problem is really to use mmgtools libraries in an independent software package Elmer which does not seem to be able to locate it in spite of my using the linux export command. But that is probably a problem with Elmer’s cmake options and so mmgtools is off the hook in that access.
Best,
Marc

Hello Marc,
Thanks for the feedback. Hope you have managed to get Elmer see Mmg right.
Best,
Luca