Please consider adding python-mpi4py as a dependency.
![]() |
VOOZH | about |
| Git Clone URL: | https://aur.archlinux.org/mmg.git (read-only, click to copy) |
|---|---|
| Package Base: | mmg |
| Description: | Anisotropic tetrahedral remesher and moving mesh generator |
| Upstream URL: | http://www.mmgtools.org/ |
| Licenses: | GPL |
| Conflicts: | mmg3d |
| Provides: | mmg3d |
| Replaces: | mmg3d |
| Submitter: | haawda |
| Maintainer: | gpettinello |
| Last Packager: | gpettinello |
| Votes: | 8 |
| Popularity: | 0.000004 |
| First Submitted: | 2020-06-02 22:27 (UTC) |
| Last Updated: | 2025-06-21 12:07 (UTC) |
Please consider adding python-mpi4py as a dependency.
With vtk>=9 find_package(VTK) in mmgConfig.cmake breaks find_pacakge(mmg) for every project (related bug report: https://bugs.archlinux.org/task/72653)
Patch fixing the issue, enabling vtk and exporting /usr/include/vtk include path to cmake projects: http://ix.io/3Ekn/diff (tested with elemrfem-git)
Merge with git am -s < <(curl -s http://ix.io/3Ekn)
@haada: thanks, ~btw. why drop the vtk any issue there?~ ok, now I see, vtk:9.0.3 has broken CMake config ¯\_(ツ)_/¯
elmerfem-git maintainer here: I would like to use automatically generated mmgConfig.cmake instead of hand crafted FindMMG.cmake but need some fix on your side as current packaging scheme result in broken mmgTargets.cmake because of missing static libs.
CMake Error at /usr/lib64/cmake/mmg/MmgTargets.cmake:123 (message):
The imported target "Mmg::libmmg2d_a" references the file
"/usr/lib/libmmg2d.a"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib64/cmake/mmg/MmgTargets.cmake"
but not all the files it references.
Call Stack (most recent call first):
/usr/lib64/cmake/mmg/mmgConfig.cmake:36 (include)
I've also reported upstream the issue mentioned by @gpettinello and created a rudimental fix for it. https://github.com/MmgTools/mmg/issues/109
Could you check out and perhaps merge this patch: http://ix.io/3CBY/diff
Merge with: git am -s < <(curl -s http://ix.io/3CBY)
I get an error while compiling gmsh: while linking il says that in libmmg.so there is a missing reference to vtkIOMPIImage_AutoInit_Destruct() How to fix it?
Edit: if I run ld /usr/lib/libmmg.so I get the same error. There is probably a link error
@sylphio libmmg.so and other libs are linked with VTK libraries.
Why is vtk required? As far as I can tell for the documentation of mmg, vtk is optional.
Building in a clean chroot still does not work:
-- Could NOT find ELAS (missing: ELAS_INCLUDE_DIR ELAS_LIBRARY)
CMake Warning at CMakeLists.txt:266 (MESSAGE):
Elas is a library to solve the linear elasticity problem (see
https://github.com/ISCDtoolbox/LinearElasticity to download it). This
library is needed to use the lagrangian motion option. If you have already
installed Elas and want to use it, please set the CMake variable or
environment variable ELAS_DIR to your Elas directory.
CMake Error at /usr/lib/cmake/vtk-8.2/Modules/vtkGUISupportQt.cmake:19 (find_package):
By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5" with any of
the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
to a directory containing one of the above files. If "Qt5" provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
/usr/lib/cmake/vtk-8.2/vtkModuleAPI.cmake:45 (include)
/usr/lib/cmake/vtk-8.2/vtkModuleAPI.cmake:15 (vtk_module_load)
/usr/lib/cmake/vtk-8.2/vtkModuleAPI.cmake:152 (_vtk_module_config_recurse)
/usr/lib64/cmake/vtk-8.2/VTKConfig.cmake:143 (vtk_module_config)
CMakeLists.txt:284 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/build/mmg/src/mmg-5.5.2/CMakeFiles/CMakeOutput.log".
See also "/build/mmg/src/mmg-5.5.2/CMakeFiles/CMakeError.log".
To compile the package, 'proj' is needed as a dependency.