Using Conan Package Manager.

Roman Telezhynskyi 2024-02-20 16:44:15 +02:00
parent 797a219c55
commit 4b14f94684

@ -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. 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 ## 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. 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.