From 5a7ed78f39d67445f6f62ed61f238a12a21c296f Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Tue, 1 Feb 2022 14:55:04 +0100 Subject: [PATCH] update build docs --- src/README.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/README.md b/src/README.md index 64568cab7..a203158c8 100644 --- a/src/README.md +++ b/src/README.md @@ -14,34 +14,35 @@ The source code of MeshLab is structured in the following directories: ## Build MeshLab -MeshLab builds with the three major compilers: `gcc`, `clang`, and `msvc`. It requires [Qt](https://www.qt.io/) >= 5.15. +MeshLab builds with the three major compilers: `gcc`, `clang`, and `msvc`. It requires [Qt](https://www.qt.io/) 5.15. After setting up the Qt environment: - git clone --recursive https://github.com/cnr-isti-vclab/meshlab - mkdir meshlab/src/build - cd meshlab/src/build - cmake .. - make - +``` +git clone --recursive https://github.com/cnr-isti-vclab/meshlab +mkdir meshlab/src/build +cd meshlab/src/build +cmake .. +make +``` You can also use [QtCreator](https://www.qt.io/product) to build meshlab: -1. Install QtCreator and Qt >= 5.12; +1. Install QtCreator and Qt 5.15; 2. Open `CMakeLists.txt` inside `src`; 3. Select your favourite shadow build directory; 4. Build meshlab. -MeshLab has a plugin architecture and therefore all the plugins are compiled separately; some of them are harder to be compiled. Don't worry: if a plugin fails to compile, just remove it and you lose just that functionality. - ### Platform specific notes On __osx__ some plugins exploit openmp parallelism (screened poisson, isoparametrization) so you need a compiler supporting it and the clang provided by xcode does not support openmp. You can install all the required libraries by running the following command in a terminal: - brew install llvm libomp +``` +brew install llvm libomp +``` On __Windows__, we suggest to build meshlab using QtCreator. Before trying to build, you should: * install VisualStudio >= 2017 with the C++ development package; - * install Qt >= 5.12 and QtCreator. + * install Qt 5.15 and QtCreator. -then, open the CMakeLists.txt file and try to build MeshLab. +then, open the CMakeLists.txt file and build MeshLab.