RINGMesh
Version 5.0.0
A programming library for geological model meshes
|
RINGMesh is tested under Linux (64 bits) and Windows (64 bits). You will need CMake (version >= 2.8.11). There is no other dependency (everything you need is shipped with RINGMesh). Follow the Linux, Mac OS or Windows instructions below.
To clone RINGMesh you need Mercurial (https://www.mercurial-scm.org/). You also need to have Git (https://git-scm.com/) for RINGMesh subrepositories (without it the cloning will fail). Make sure that Git binary directory is in your computer path (environment variable). Under Windows, after installing Git you should have in your path environment variable: C: Files. Warning: TortoiseGit (https://tortoisegit.org/) does not install Git, whereas TortoiseHg (https://www.mercurial-scm.org/wiki/TortoiseHg) installs Mercurial (tested on Windows 10).
Execute cmake command in a RINGMesh/build directory.
To configure using default options:
To define the options, use the cmake interface:
To compile you need the following packages (on Debian-based linux):
Note: you need gcc/g++ version higher or equal to 4.8 to compile RINGMesh.
Then, to compile RINGMesh, go to RINGMesh root directory and:
To build in debug, go to build/ringmesh/Debug instead.
Note: if you get this error during geogram gfx compilation "No rule to make target '/usr/lib/x86_64-linux-gnu/libGL.so'" (occured for Ubuntu 17.04), do:
Eclipse-cdt project is provided (.project and .cproject). You can import RINGMesh into Eclipse: File>Import...>General>Existing Projects into Workspace. Click on next, then select the root directory (RINGMesh directory) then click on Finish. There are two build configurations: release and debug. There is a target to clean and compile. There are also targets to build/rebuild geogram.
You can also build the documentation through eclipse (see available targets). See the documentation section for more details.
Launch CMake GUI, indicate where is the source code as the path to RINGMesh root and where to put the binaries as this_root/build/ringmesh. Configuration options can be set in using the interface.
RINGMesh has previously been compiled with:
Make sure that you have installed C++ package for VisualStudio through the VisualStudio installer. You can either launch building in VisualStudio or calling cmake in command line in the build directory created at the configuration step:
The available compilation modes are:
See the documentation section for more details.
As in Linux.
As in Windows but with the Xcode generator (use "-G Xcode" if you use cmake in command lines).
You need to install the Mac OS "Command Line Developer Tools".
Note: you need gcc/g++ version higher or equal to 4.2 to compile RINGMesh. In Mac OS, clang is used.
As in Linux except for the packages.
You need to install Xcode IDE. Open the build/ringmesh/RINGMesh.xcodeproj with Xcode IDE, and then compile (as in Windows with VisualStudio). Or use these command lines:
To build in Debug, replace "Release" by "Debug" after "-configuration".
See the documentation section for more details.
As in Linux.
As in Windows with VisualStudio but with Xcode.
The documentation can be generated using Doxygen. Two targets are available:
Then you can go in doc/devkit[-lite]/html and open the index.html with your web browser. A ringmesh.qch file is generated in doc/devkit[-lite]/html (to load in Qt Assistant).