From 4b14f9468400b8180b82eefed63c69196f0b8b5c Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 20 Feb 2024 16:44:15 +0200 Subject: [PATCH] Using Conan Package Manager. --- Linux-Build-and-Install-Guide.md | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Linux-Build-and-Install-Guide.md b/Linux-Build-and-Install-Guide.md index ad6e734..ce87ce0 100644 --- a/Linux-Build-and-Install-Guide.md +++ b/Linux-Build-and-Install-Guide.md @@ -364,6 +364,39 @@ Similarly to qmake, Qbs supports a wide range of configuration options. Here are These configuration options provide flexibility in customizing the build process according to your specific requirements and preferences. +### Using Conan Package Manager + +Since Qt 6, Valentina requires third-party dependencies, such as the xerces-c library. While we highly recommend installing dependencies through your distribution's package manager, you may decide to build them locally. In such cases, Valentina supports building with the Conan package manager. Conan allows you to build source code locally and use cached versions for subsequent builds of Valentina. + +#### Installation + +To start using Conan, you need to install it using pip: + +```bash +pip3 install 'conan<2.0' +``` + +Note: Currently, Valentina does not support Conan 2.x. + +#### Setup Conan Profile + +After installing Conan, set up a Conan profile for Valentina: + +```bash +conan profile new valentina --detect +``` + +#### Building Dependencies + +Next, navigate to the root directory of your Valentina project and install the project's dependencies using Conan: + +```bash +cd /path/to/valentina +conan install . --build=missing -pr valentina +``` + +By default, the use of Conan is disabled. To enable it, pass `project.enableConan:true` to the Qbs configuration. + ## Build with Qt Creator The easiest way to build Valentina is to use Qt Creator. It provides automation features and allows for easy execution of the application. Additionally, Qt Creator facilitates debugging, which can be helpful in diagnosing crashes.