How-to: Install & Configure Conan
Conan is a dependency manager for C and C++. It will handle the huge hassle of finding and managing the dependencies for your C++ programs and libraries. It is also the primary way of delivering our SDKs (and starting from 2023, our sample programs) to you. Powerful tools often come with a complex set of features, commands and interactions, and this guide will help you understand the basics and set Conan up the right way to get your hands on our products.
Installation
Conan is a Python 3 program. The easiest way to install it is through Python’s package installer pip. At the time of writing this guide, Vivoka needs Conan version 1.53+, and this requirement goes up regularly.
Check that the operation is successful with conan --version
.
Configuration
Run the following commands:
conan config set general.revisions_enabled=1
conan remote add vivoka-customer https://conan-customer.vivoka.com/artifactory/api/conan/vivoka-customer
conan user <username> -r vivoka-customer -p <password> # Use your VDK login
You can set the password in the CONAN_PASSWORD_VIVOKA_CUSTOMER environment variable if you want to avoid inputting it regularly.
Setting up your compiler
Run the following command to let Conan detect your compiler:
conan profile new --detect default